diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-07-25 14:41:18 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-07-25 14:41:18 +0000 |
commit | f17add2e8e3c40f79cf211b0cb82a359104ad675 (patch) | |
tree | ec8eab3c2078d418fd917f095e3952fd03ee85a6 /os_net_config/__init__.py | |
parent | a08e230b00c32a475d0f2f9826dabaa822153ad6 (diff) | |
parent | 78e1b65d93a1c16d58fd72cb65f8e2adf1762854 (diff) |
Merge "Add support for Infiniband interfaces"
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 88e8900..fc1a38a 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -75,6 +75,8 @@ class NetConfig(object): self.add_ovs_tunnel(obj) elif isinstance(obj, objects.OvsPatchPort): self.add_ovs_patch_port(obj) + elif isinstance(obj, objects.IbInterface): + self.add_ib_interface(obj) def add_interface(self, interface): """Add an Interface object to the net config object. @@ -139,6 +141,13 @@ class NetConfig(object): """ raise NotImplemented("add_ovs_patch_port is not implemented.") + def add_ib_interface(self, ib_interface): + """Add an InfiniBand Interface object to the net config object. + + :param interface: The InfiniBand Interface object to add. + """ + raise NotImplemented("add_ib_interface is not implemented.") + def apply(self, cleanup=False): """Apply the network configuration. |