Commit 814d7bb7 by Bach Dániel

fix VMNetwork.__init__

parent 9ae3ee8a
......@@ -270,6 +270,7 @@ class VMNetwork:
self.virtual_port = 'openvswitch'
else:
self.network_type = 'ethernet'
self.virtual_port = virtual_port
else:
self.network_type = network_type
self.virtual_port = virtual_port
......@@ -303,4 +304,4 @@ class VMNetwork:
def dump_xml(self):
return ET.tostring(self.build_xml(), encoding='utf8',
method='xml',
pretty_print=True)
pretty_print=True)
\ No newline at end of file
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 sign in to comment