Commit fb80d4bc by Guba Sándor

added managed property

parent 88688f4b
...@@ -174,6 +174,7 @@ class VMNetwork: ...@@ -174,6 +174,7 @@ class VMNetwork:
model -- available models in libvirt model -- available models in libvirt
QoS -- CIRCLE QoS class? QoS -- CIRCLE QoS class?
comment -- Any comment comment -- Any comment
managed -- Apply managed flow rules like Ip and mac spoofing prevent
script -- Executable network script /bin/true by default script -- Executable network script /bin/true by default
''' '''
# Class attributes # Class attributes
...@@ -188,6 +189,7 @@ class VMNetwork: ...@@ -188,6 +189,7 @@ class VMNetwork:
vlan = 0 vlan = 0
ipv4 = None ipv4 = None
ipv6 = None ipv6 = None
managed = False
def __init__(self, def __init__(self,
name, name,
...@@ -198,7 +200,8 @@ class VMNetwork: ...@@ -198,7 +200,8 @@ class VMNetwork:
network_type='ethernet', network_type='ethernet',
model='virtio', model='virtio',
QoS=None, QoS=None,
vlan=0): vlan=0,
managed=False):
self.name = name self.name = name
self.bridge = bridge self.bridge = bridge
self.network_type = network_type self.network_type = network_type
...@@ -208,6 +211,7 @@ class VMNetwork: ...@@ -208,6 +211,7 @@ class VMNetwork:
self.model = model self.model = model
self.QoS = QoS self.QoS = QoS
self.vlan = vlan self.vlan = vlan
self.managed = managed
# XML dump # XML dump
def build_xml(self): def build_xml(self):
......
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