Updated Branches:
  refs/heads/master 94cd470a0 -> e82695629

CLOUDSTACK-4089: UI > zone wizard > VMware hypervisor > physical network > edit 
traffic type > set default value for vSwitchName field upon selected 
vSwitchType.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e8269562
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e8269562
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e8269562

Branch: refs/heads/master
Commit: e826956290c5788a5eb9dd774b64e5f1d8cc3a1f
Parents: 94cd470
Author: Jessica Wang <jessicaw...@apache.org>
Authored: Fri Aug 30 15:18:32 2013 -0700
Committer: Jessica Wang <jessicaw...@apache.org>
Committed: Fri Aug 30 15:20:29 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/zoneWizard.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e8269562/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';
                          }                         
                        }
                        

Reply via email to