diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-04-05 17:31:14 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-04-05 17:31:14 +0000 |
commit | f26b56c8f2515ea7bbd349d3367ccdf6600d720a (patch) | |
tree | a2a586f7ea69c9508de10783f0a64287b64e9ed5 /os_net_config/__init__.py | |
parent | 1b83afb07ddec59845ea3ca47fb9b20eefba1c5d (diff) | |
parent | c5e11bbfcda78f021b38bf9177f0c661b8f59b20 (diff) |
Merge "Add support for VPP interface"
Diffstat (limited to 'os_net_config/__init__.py')
-rw-r--r-- | os_net_config/__init__.py | 9 |
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. |