[ovirt-users] ovirt sdk and gather the ip address of vm

Ondra Machacek omachace at redhat.com
Fri Mar 31 12:35:03 UTC 2017


On Fri, Mar 31, 2017 at 1:05 PM, Oğuz Yarımtepe <oguzyarimtepe at gmail.com>
wrote:

> Hi,
>
> I am using ovirt-engine-sdk-python (4.1.3). But couldn't find how to get
> the IP and MAC address of a vm. Any sample code for that?
>

Hi,

checkout this:


https://github.com/ansible/ansible/blob/devel/contrib/inventory/ovirt4.py#L147

It's dynamic inventory script for Ansible. You can find there an example
how IP
address of VM is obtained.

Ondra


>
> --
> Oğuz Yarımtepe
> http://about.me/oguzy
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170331/852db6a5/attachment.html>


More information about the Users mailing list