[
https://issues.apache.org/jira/browse/CLOUDSTACK-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386216#comment-14386216
]
ASF GitHub Bot commented on CLOUDSTACK-8352:
--------------------------------------------
GitHub user srikanteswartalluri opened a pull request:
https://github.com/apache/cloudstack/pull/134
Vcenter marvin library
https://issues.apache.org/jira/browse/CLOUDSTACK-8352
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/srikanteswartalluri/cloudstack vcentermarvin
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/134.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #134
----
commit c6581c17bdedc701696cbd230eba0bd750ecf116
Author: SrikanteswaraRao Talluri <[email protected]>
Date: 2015-03-30T05:10:50Z
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
commit c9fc7e65b7e823de0cda21f5c6175a65a18f73c9
Author: SrikanteswaraRao Talluri <[email protected]>
Date: 2015-03-30T05:10:50Z
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
----
> [marvin] Integrate vcenter communication through marvin
> ---------------------------------------------------------
>
> Key: CLOUDSTACK-8352
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8352
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: marvin
> Affects Versions: 4.6.0
> Reporter: Srikanteswararao Talluri
> Assignee: Srikanteswararao Talluri
> Fix For: 4.6.0
>
>
> Marvin should be able to get details of host, vm, dvswitch etc., from vcenter.
> This is going to be implemented using vmware sdk for python pyvmomi.
> Usage:
> vc_object = Vcenter("x.x.x.x", "username", "password")
> print '###get one dc########'
> print(vc_object.get_datacenters(name='testDC'))
> print '###get multiple dcs########'
> for i in vc_object.get_datacenters():
> print
> print '###get one dv########'
> print vc_object.get_dvswitches(name='dvSwitch')
> print '###get multiple dvs########'
> for i in vc_object.get_dvswitches():
> print
> print '###get one dvportgroup########'
> print(vc_object.get_dvportgroups(name='cloud.guest.207.200.1-dvSwitch'))
> print "###get one dvportgroup and the vms associated with it########"
> for vm in
> vc_object.get_dvportgroups(name='cloud.guest.207.200.1-dvSwitch')[0]['dvportgroup']['vmlist']:
> print(vm.name)
> print(vm.network)
> print '###get multiple dvportgroups########'
> for i in vc_object.get_dvportgroups():
> print
> print vc_object.get_vms(name='VM1')
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)