Commit 9aa3244a authored by Antoine Millet's avatar Antoine Millet

Now get interfaces from inactive XML

parent ffc2696b
......@@ -315,7 +315,7 @@ class VirtualMachine(object):
def iter_nics(self):
for nic in et.ElementTree().parse(
StringIO(self.lv_dom.XMLDesc(0))
StringIO(self.lv_dom.XMLDesc(libvirt.VIR_DOMAIN_XML_INACTIVE))
).findall('devices/interface'):
if nic.get('type') == 'bridge':
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment