On Mon, Mar 16, 2015 at 8:25 PM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote: > From: Nehal J Wani <nehaljw.kkd1@xxxxxxxxx> > > examples/Makefile.am: > * Add new file domipaddrs.py > > examples/README: > * Add documentation for the python example > > libvirt-override-api.xml: > * Add new symbol for virDomainInterfacesAddresses > > libvirt-override.c: > * Hand written python api > > Example: > $ python examples/domipaddrs.py qemu:///system f18 > Interface MAC address Protocol Address > lo 00:00:00:00:00:00 ipv4 127.0.0.1/8 > lo 00:00:00:00:00:00 ipv6 ::1/128 > eth3 52:54:00:20:70:3d ipv4 192.168.105.240/16 > eth3 52:54:00:20:70:3d ipv6 fe80::5054:ff:fe20:703d/64 > eth2 52:54:00:36:2a:e5 N/A N/A > eth1 52:54:00:b1:70:19 ipv4 192.168.105.201/16 > eth1 52:54:00:b1:70:19 ipv4 192.168.201.195/16 > eth1 52:54:00:b1:70:19 ipv6 fe80::5054:ff:feb1:7019/64 > eth0 52:54:00:2e:45:ce ipv4 10.1.33.188/24 > eth0 52:54:00:2e:45:ce ipv6 2001:db8:0:f101::2/64 > eth0 52:54:00:2e:45:ce ipv6 fe80::5054:ff:fe2e:45ce/64 This example uses VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE, so the commit message should be showing vnetX instead of ethX. -- Nehal J Wani -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list