mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - network page - Associate new IP - pass domainId and account to API call if network type is Shared.
This commit is contained in:
parent
c125496691
commit
8e82266f6b
|
|
@ -590,9 +590,12 @@
|
|||
add: {
|
||||
label: 'Acquire new IP',
|
||||
addRow: 'true',
|
||||
action: function(args) {
|
||||
action: function(args) {
|
||||
var apiCmd = "associateIpAddress";
|
||||
if(args.context.networks[0].type == "Shared")
|
||||
apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
|
||||
$.ajax({
|
||||
url: createURL('associateIpAddress'),
|
||||
url: createURL(apiCmd),
|
||||
data: {
|
||||
networkId: args.context.networks[0].id
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue