mirror of https://github.com/apache/cloudstack.git
revert 12ca1d9102 since it's a partial UI change.
This commit is contained in:
parent
4bdaffb66a
commit
a6c6f4851b
|
|
@ -295,36 +295,17 @@
|
|||
var trafficData = $trafficType.data('traffic-type-data') ?
|
||||
$trafficType.data('traffic-type-data') : {};
|
||||
var hypervisor = getData($trafficType.closest('.zone-wizard')).zone.hypervisor;
|
||||
var fields = {
|
||||
label: {
|
||||
label: hypervisor + ' ' + _l('label.traffic.label'),
|
||||
defaultValue: trafficData.label
|
||||
}
|
||||
};
|
||||
|
||||
if (hypervisor === 'VMware') {
|
||||
$.extend(fields, {
|
||||
vlanid: { label: 'VLAN ID' },
|
||||
switchType: {
|
||||
label: 'label.switch.type',
|
||||
select: function(args) {
|
||||
args.response.success({
|
||||
data: [
|
||||
{ id: 'vmwaresvs', description: 'VMware SVS' },
|
||||
{ id: 'vmwaredvs', description: 'VMware DVS' },
|
||||
{ id: 'nexusdvs', description: 'Nexus DVS' }
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
cloudStack.dialog.createForm({
|
||||
form: {
|
||||
title: _l('label.edit.traffic.type'),
|
||||
desc: _l('message.edit.traffic.type'),
|
||||
fields: fields
|
||||
fields: {
|
||||
label: {
|
||||
label: hypervisor + ' ' + _l('label.traffic.label'),
|
||||
defaultValue: trafficData.label
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
after: function(args) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue