Skip to content

Commit 7ee71df

Browse files
author
Jessica Wang
committed
CLOUDSTACK-1974: Dedicate Guest VLAN Range - UI - Infrastructure menu - physical network - Guest - Dedicated Guest VLAN Range tab - Dedicate VLAN Range dialog - change VLAN Range field from textbox to dropdown that lists all existing Guest VLAN Ranges under the physical network.
1 parent 19a1116 commit 7ee71df

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

ui/scripts/system.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,20 @@
21532153
createForm: {
21542154
title: 'Dedicate VLAN Range',
21552155
fields: {
2156-
vlanrange: { label: 'VLAN Range(s)', validation: { required: true } },
2156+
vlanrange: {
2157+
label: 'VLAN Range',
2158+
select: function(args) {
2159+
var items = [];
2160+
if(args.context.physicalNetworks[0].vlan != null && args.context.physicalNetworks[0].vlan.length > 0) {
2161+
var vlanranges = args.context.physicalNetworks[0].vlan.split(";");
2162+
for(var i = 0; i < vlanranges.length ; i++) {
2163+
items.push({id: vlanranges[i], description: vlanranges[i]});
2164+
}
2165+
}
2166+
args.response.success({data: items});
2167+
},
2168+
validation: { required: true }
2169+
},
21572170
account: { label: 'label.account', validation: { required: true } },
21582171
domainid: {
21592172
label: 'label.domain',

0 commit comments

Comments
 (0)