You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2015/04/01 11:45:24 UTC
[2/3] git commit: updated refs/heads/master to 7a70f8a
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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c9fc7e65
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c9fc7e65
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c9fc7e65
Branch: refs/heads/master
Commit: c9fc7e65b7e823de0cda21f5c6175a65a18f73c9
Parents: c6581c1
Author: SrikanteswaraRao Talluri <ta...@apache.org>
Authored: Mon Mar 30 10:40:50 2015 +0530
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Mon Mar 30 10:56:03 2015 +0530
----------------------------------------------------------------------
tools/marvin/marvin/lib/vcenter.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c9fc7e65/tools/marvin/marvin/lib/vcenter.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/vcenter.py b/tools/marvin/marvin/lib/vcenter.py
index bab740e..85b50b3 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')