diff --git a/v2/src/app/wizard/network.tpl.html b/v2/src/app/wizard/network.tpl.html index 2635c74..2ffbff5 100644 --- a/v2/src/app/wizard/network.tpl.html +++ b/v2/src/app/wizard/network.tpl.html @@ -92,8 +92,8 @@

Autofill Hostname

diff --git a/v2/src/app/wizard/wizard.js b/v2/src/app/wizard/wizard.js index 88529fa..f450948 100644 --- a/v2/src/app/wizard/wizard.js +++ b/v2/src/app/wizard/wizard.js @@ -549,6 +549,16 @@ angular.module('compass.wizard', [ dataService.getClusterHosts(cluster.id).success(function(data) { $scope.servers = data; + + // Assume all hosts in the same cluster have same interface settings + if($scope.servers[0].networks) { + if(Object.keys($scope.servers[0].networks).length != 0) { + $scope.interfaces = $scope.servers[0].networks; + wizardFactory.setInterfaces($scope.interfaces); + } + } + + $scope.tableParams = new ngTableParams({ page: 1, // show first page count: $scope.servers.length + 1 // count per page