summaryrefslogtreecommitdiffstats
path: root/os_net_config/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/__init__.py')
-rw-r--r--os_net_config/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py
index 42131bb..f52eb59 100644
--- a/os_net_config/__init__.py
+++ b/os_net_config/__init__.py
@@ -48,6 +48,8 @@ class NetConfig(object):
self.add_interface(obj)
elif isinstance(obj, objects.Vlan):
self.add_vlan(obj)
+ elif isinstance(obj, objects.IvsInterface):
+ self.add_ivs_interface(obj)
elif isinstance(obj, objects.OvsBridge):
self.add_bridge(obj)
for member in obj.members:
@@ -56,6 +58,10 @@ class NetConfig(object):
self.add_linux_bridge(obj)
for member in obj.members:
self.add_object(member)
+ elif isinstance(obj, objects.IvsBridge):
+ self.add_ivs_bridge(obj)
+ for member in obj.members:
+ self.add_object(member)
elif isinstance(obj, objects.OvsBond):
self.add_bond(obj)
for member in obj.members:
@@ -93,6 +99,13 @@ class NetConfig(object):
"""
raise NotImplemented("add_linux_bridge is not implemented.")
+ def add_ivs_bridge(self, bridge):
+ """Add a IvsBridge object to the net config object.
+
+ :param bridge: The IvsBridge object to add.
+ """
+ raise NotImplemented("add_ivs_bridge is not implemented.")
+
def add_bond(self, bond):
"""Add an OvsBond object to the net config object.