mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-27 14:03:57 +03:00
interface: read the start mode from the inactive conf XML
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1154480 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
2c1e482b2d
commit
4b5c836a16
@ -101,7 +101,7 @@ class vmmInterface(vmmLibvirtObject):
|
||||
return "Interface"
|
||||
|
||||
def get_startmode(self):
|
||||
return self.get_xmlobj().start_mode or "none"
|
||||
return self.get_xmlobj(inactive=True).start_mode or "none"
|
||||
|
||||
def set_startmode(self, newmode):
|
||||
xmlobj = self._make_xmlobj_to_define()
|
||||
|
Loading…
x
Reference in New Issue
Block a user