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 faa5e92..cb56059 100644
--- a/os_net_config/__init__.py
+++ b/os_net_config/__init__.py
@@ -95,6 +95,8 @@ class NetConfig(object):
self.add_ovs_dpdk_port(obj)
elif isinstance(obj, objects.OvsDpdkBond):
self.add_ovs_dpdk_bond(obj)
+ elif isinstance(obj, objects.VppInterface):
+ self.add_vpp_interface(obj)
def add_interface(self, interface):
"""Add an Interface object to the net config object.
@@ -201,6 +203,13 @@ class NetConfig(object):
"""
raise NotImplementedError("add_ovs_dpdk_bond is not implemented.")
+ def add_vpp_interface(self, vpp_interface):
+ """Add a VppInterface object to the net config object.
+
+ :param vpp_interface: The VppInterface object to add.
+ """
+ raise NotImplementedError("add_vpp_interface is not implemented.")
+
def apply(self, cleanup=False):
"""Apply the network configuration.