Skip to content

Commit d9cc453

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3753: UI > Infrastructure > zone > physical network > Guest > remove Add VLAN Range action since VLAN Range(s) is editable through Edit action.
1 parent 59fedb1 commit d9cc453

1 file changed

Lines changed: 0 additions & 62 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,68 +1117,6 @@
11171117
notification: {
11181118
poll: pollAsyncJobResult
11191119
}
1120-
},
1121-
1122-
addVlanRange: {
1123-
label: 'Add VLAN Range',
1124-
title: 'Add VLAN Range',
1125-
1126-
messages: {
1127-
confirm: function(args) {
1128-
return 'Are you sure you want to add another VLAN Range to this guest network?';
1129-
},
1130-
notification: function(args) {
1131-
return 'VLAN Range added';
1132-
}
1133-
},
1134-
1135-
createForm: {
1136-
title: 'Add VLAN Range',
1137-
fields: {
1138-
startvlan: {
1139-
label: 'Vlan Start',
1140-
validation: {
1141-
required: true
1142-
}
1143-
},
1144-
endvlan: {
1145-
label: 'Vlan End',
1146-
validation: {
1147-
required: true
1148-
}
1149-
}
1150-
}
1151-
1152-
},
1153-
1154-
action: function(args) {
1155-
var array1 = [];
1156-
if (args.data.startvlan != "" && args.data.endvlan != "") {
1157-
var newVlanRange = todb(args.data.startvlan) + "-" + todb(args.data.endvlan);
1158-
if(selectedPhysicalNetworkObj.vlan == "")
1159-
array1.push("&vlan=" + newVlanRange);
1160-
else
1161-
array1.push("&vlan=" + selectedPhysicalNetworkObj.vlan + "," + newVlanRange);
1162-
}
1163-
$.ajax({
1164-
url: createURL("updatePhysicalNetwork&id=" + selectedPhysicalNetworkObj.id + array1.join("")),
1165-
dataType: "json",
1166-
success: function(json) {
1167-
var jobId = json.updatephysicalnetworkresponse.jobid;
1168-
args.response.success({
1169-
_custom: {
1170-
jobId: jobId
1171-
}
1172-
});
1173-
},
1174-
error: function(json) {
1175-
args.response.error(parseXMLHttpResponse(json));
1176-
}
1177-
});
1178-
},
1179-
notification: {
1180-
poll: pollAsyncJobResult
1181-
}
11821120
}
11831121
},
11841122

0 commit comments

Comments
 (0)