ovirt sdk and gather the ip address of vm

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? -- Oğuz Yarımtepe http://about.me/oguzy

On Fri, Mar 31, 2017 at 1:05 PM, Oğuz Yarımtepe <oguzyarimtepe@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#L1... 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Ondra Machacek
-
Oğuz Yarımtepe