CLOUDSTACK-6438: WIP: If VM has additional IPs, keep showing in add screen

This commit is contained in:
Brian Federle 2014-05-01 13:13:28 -07:00
parent 3962577329
commit 1ad532f57e

View File

@ -3380,6 +3380,28 @@
return item.id == instance.id;
}).length;
// Check if there are any remaining IPs
if (!notExisting) {
$.ajax({
url: createURL('listNics'),
async: false,
data: {
virtualmachineid: instance.id
},
success: function(json) {
var nics = json.listnicsresponse.nic;
$(nics).map(function (index, nic) {
if (nic.secondaryip) {
notExisting = true;
return false;
}
});
}
})
}
return nonAutoScale && isActiveState && notExisting;
}
);