Skip to content

Commit ec9bbd4

Browse files
committed
bug 12579
Only use openfirewall=false when firewall.rule.ui.enabled is true
1 parent 6935ae8 commit ec9bbd4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎ui/scripts/network.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,10 +1060,13 @@
10601060
add: {
10611061
label: 'Add VMs',
10621062
action: function(args) {
1063+
var openFirewall = g_firewallRuleUiEnabled == "true" ? false : true;
1064+
10631065
$.ajax({
10641066
url: createURL('createLoadBalancerRule'),
1067+
10651068
data: $.extend(args.data, {
1066-
openfirewall: false,
1069+
openfirewall: openFirewall,
10671070
publicipid: args.context.ipAddresses[0].id
10681071
}),
10691072
dataType: 'json',
@@ -1244,10 +1247,13 @@
12441247
add: {
12451248
label: 'Add VM',
12461249
action: function(args) {
1250+
var openFirewall = g_firewallRuleUiEnabled == "true" ? false : true;
1251+
12471252
$.ajax({
12481253
url: createURL('createPortForwardingRule'),
1254+
12491255
data: $.extend(args.data, {
1250-
openfirewall: false,
1256+
openfirewall: openFirewall,
12511257
ipaddressid: args.context.ipAddresses[0].id,
12521258
virtualmachineid: args.itemData[0].id
12531259
}),

0 commit comments

Comments
 (0)