Skip to content

Commit 4524e01

Browse files
committed
ui: fix enable static nat only towards primary interface and not on any other interface
1 parent 9ff819d commit 4524e01

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/scripts/network.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
url: createURL('listNics'),
9292
data: {
9393
virtualmachineid: instance.id,
94-
networkId: network.id
94+
networkid: (args.context.networkid != undefined) ? args.context.networkid : network.id
9595
},
9696
success: function(json) {
9797
var nic = json.listnicsresponse.nic[0];
@@ -2465,6 +2465,10 @@
24652465
networkid: $tierSelect.val(),
24662466
vpcid: args.context.vpc[0].id
24672467
});
2468+
$.extend(args.context, {
2469+
networkid: $tierSelect.val(),
2470+
vpcid: args.context.vpc[0].id
2471+
});
24682472
} else if ('networks' in args.context && !args.context.ipAddresses[0].isportable) {
24692473
$.extend(data, {
24702474
networkid: args.context.networks[0].id

0 commit comments

Comments
 (0)