File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
samples/vsphere/vcenter/setup Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 49
49
_testbed .config ['ESX_HOST1' ] = args .esxhost1
50
50
if (args .esxhost2 ):
51
51
_testbed .config ['ESX_HOST2' ] = args .esxhost2
52
+ if (args .esxpassword ):
53
+ _testbed .config ['ESX_PASS' ] = args .esxpassword
52
54
if (args .nfsserver ):
53
55
_testbed .config ['NFS_HOST' ] = args .nfsserver
54
56
57
+
55
58
print (_testbed .to_config_string ())
56
59
57
60
# Connect to VIM API Endpoint on vCenter system
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def build_arg_parser():
39
39
-server, --vcenterserver
40
40
-e1, --esxhost1
41
41
-e2, --esxhost2
42
+ -epass, --esxpassword
42
43
-n, --nfsserver
43
44
44
45
"""
@@ -100,6 +101,11 @@ def build_arg_parser():
100
101
help = 'ESX HOST 2 IP to prepare the testbed to run the samples.'
101
102
'If not passed as argument, update testbed.py file' )
102
103
104
+ parser .add_argument ('-epass' , '--esxpassword' ,
105
+ action = 'store' ,
106
+ help = 'ESX Server password'
107
+ 'If not passed as argument, update testbed.py file' )
108
+
103
109
parser .add_argument ('-n' , '--nfsserver' ,
104
110
action = 'store' ,
105
111
help = 'NFS Server IP to setup datastore for samples run.'
You can’t perform that action at this time.
0 commit comments