From c9fc7e65b7e823de0cda21f5c6175a65a18f73c9 Mon Sep 17 00:00:00 2001 From: SrikanteswaraRao Talluri Date: Mon, 30 Mar 2015 10:40:50 +0530 Subject: [PATCH] CLOUDSTACK-8352: vcenter library for marvin which makes use of 'pyvmomi' vmware sdk python binding to interact with vcenter server. Tested against vcenter 5.5 --- tools/marvin/marvin/lib/vcenter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/marvin/marvin/lib/vcenter.py b/tools/marvin/marvin/lib/vcenter.py index bab740e9440..85b50b39a3c 100644 --- a/tools/marvin/marvin/lib/vcenter.py +++ b/tools/marvin/marvin/lib/vcenter.py @@ -184,12 +184,11 @@ class Vcenter(): if __name__ == '__main__': - # vc_object = Vcenter("10.147.60.13", "Administrator", "password_123") - vc_object = Vcenter("10.102.192.248", "administrator", "vCenter!9") + vc_object = Vcenter("10.x.x.x", "username", "password") print '###get one dc########' - print(vc_object.get_datacenters(name='Jayashree DC')) + print(vc_object.get_datacenters(name='testDC')) print '###get multiple dcs########' for i in vc_object.get_datacenters(): @@ -214,4 +213,4 @@ if __name__ == '__main__': for i in vc_object.get_dvportgroups(): print(i) - print vc_object.get_vms(name='VM1') \ No newline at end of file + print vc_object.get_vms(name='VM1')