Commit 814d7bb7 by Bach Dániel

fix VMNetwork.__init__

parent 9ae3ee8a
...@@ -270,6 +270,7 @@ class VMNetwork: ...@@ -270,6 +270,7 @@ class VMNetwork:
self.virtual_port = 'openvswitch' self.virtual_port = 'openvswitch'
else: else:
self.network_type = 'ethernet' self.network_type = 'ethernet'
self.virtual_port = virtual_port
else: else:
self.network_type = network_type self.network_type = network_type
self.virtual_port = virtual_port self.virtual_port = virtual_port
...@@ -303,4 +304,4 @@ class VMNetwork: ...@@ -303,4 +304,4 @@ class VMNetwork:
def dump_xml(self): def dump_xml(self):
return ET.tostring(self.build_xml(), encoding='utf8', return ET.tostring(self.build_xml(), encoding='utf8',
method='xml', 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