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

Now get interfaces from inactive XML

parent ffc2696b
Loading
Loading
Loading
Loading
+1 −1
Changes for cloudcontrol/node/hypervisor/domains/__init__.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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: