mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6438: WIP: If VM has additional IPs, keep showing in add screen
This commit is contained in:
parent
3962577329
commit
1ad532f57e
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user