Skip to content
Snippets Groups Projects
Commit 9aa3244a authored by Antoine Millet's avatar Antoine Millet
Browse files

Now get interfaces from inactive XML

parent ffc2696b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment