CLOUDSTACK-4089: UI > zone wizard > VMware hypervisor > physical network > edit traffic type > set default value for vSwitchName field upon selected vSwitchType. (cherry picked from commit ff4f931cd8b29983b5ad82675ccc65b651839a62)
Signed-off-by: animesh <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/97cb5f38 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/97cb5f38 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/97cb5f38 Branch: refs/heads/4.2 Commit: 97cb5f386144780367909f6f0edf194a7be95353 Parents: 38a7aba Author: Jessica Wang <[email protected]> Authored: Fri Aug 30 15:18:32 2013 -0700 Committer: animesh <[email protected]> Committed: Tue Sep 3 16:29:37 2013 -0700 ---------------------------------------------------------------------- ui/scripts/ui-custom/zoneWizard.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/97cb5f38/ui/scripts/ui-custom/zoneWizard.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js index a1c5803..695534f 100644 --- a/ui/scripts/ui-custom/zoneWizard.js +++ b/ui/scripts/ui-custom/zoneWizard.js @@ -340,11 +340,14 @@ }); if (useNexusDvs == true) { trafficData.vSwitchType = 'nexusdvs'; + fields.vSwitchName.defaultValue = 'epp0'; } else { trafficData.vSwitchType = 'vmwaredvs'; + fields.vSwitchName.defaultValue = 'dvSwitch0'; } } else { //useDvs == false trafficData.vSwitchType = 'vmwaresvs'; + fields.vSwitchName.defaultValue = 'vSwitch0'; } }
