aboutsummaryrefslogtreecommitdiffstats
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__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py
index 745da18..700a09d 100644
--- a/os_net_config/__init__.py
+++ b/os_net_config/__init__.py
@@ -71,6 +71,8 @@ class NetConfig(object):
self.add_linux_bond(obj)
for member in obj.members:
self.add_object(member)
+ elif isinstance(obj, objects.OvsTunnel):
+ self.add_ovs_tunnel(obj)
def add_interface(self, interface):
"""Add an Interface object to the net config object.
@@ -121,6 +123,13 @@ class NetConfig(object):
"""
raise NotImplemented("add_linux_bond is not implemented.")
+ def add_ovs_tunnel(self, tunnel):
+ """Add a OvsTunnel object to the net config object.
+
+ :param tunnel: The OvsTunnel object to add.
+ """
+ raise NotImplemented("add_ovs_tunnel is not implemented.")
+
def apply(self, cleanup=False):
"""Apply the network configuration.