From 9108fcb7bb1fa10ffce2fd787278802ee3f3354c Mon Sep 17 00:00:00 2001 From: Saravanan KR Date: Sat, 30 Jul 2016 15:22:57 +0530 Subject: Add support for OVS DPDK Bond Add functionality to os-net-config to allow DPDK bonding of interfaces, and implement support for parameters to be passed by TripleO Heat Templates. Implements: blueprint tripleo-ovs-dpdk Depends-On: Id4a23ced28b92a642c180a35c55080e5f4e2e05d Change-Id: If1c91402d2d393140dc1b4a678e68a1bcdbe81e4 --- os_net_config/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'os_net_config/__init__.py') diff --git a/os_net_config/__init__.py b/os_net_config/__init__.py index d307980..19d4a1e 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -93,6 +93,8 @@ class NetConfig(object): self.add_ib_interface(obj) elif isinstance(obj, objects.OvsDpdkPort): self.add_ovs_dpdk_port(obj) + elif isinstance(obj, objects.OvsDpdkBond): + self.add_ovs_dpdk_bond(obj) def add_interface(self, interface): """Add an Interface object to the net config object. @@ -192,6 +194,13 @@ class NetConfig(object): """ raise NotImplemented("add_ovs_dpdk_port is not implemented.") + def add_ovs_dpdk_bond(self, ovs_dpdk_bond): + """Add a OvsDpdkBond object to the net config object. + + :param ovs_dpdk_bond: The OvsDpdkBond object to add. + """ + raise NotImplemented("add_ovs_dpdk_bond is not implemented.") + def apply(self, cleanup=False): """Apply the network configuration. -- cgit 1.2.3-korg