diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-07-05 09:15:23 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-07-05 09:15:23 +0000 |
commit | 6bb8412ef3d3f163d91f2884081b743f07a78f18 (patch) | |
tree | 32e7e4eff7683febce73b771d5bf2eaec8f0539c /os_net_config/__init__.py | |
parent | f742dcbda0d92bee0278b4a1614d65f2ad5b1a78 (diff) | |
parent | 789bd1ea089314b49db02ddd517809a82c380cf1 (diff) |
Merge "Add support for OVS patch ports"
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 700a09d..88e8900 100644 --- a/os_net_config/__init__.py +++ b/os_net_config/__init__.py @@ -73,6 +73,8 @@ class NetConfig(object): self.add_object(member) elif isinstance(obj, objects.OvsTunnel): self.add_ovs_tunnel(obj) + elif isinstance(obj, objects.OvsPatchPort): + self.add_ovs_patch_port(obj) def add_interface(self, interface): """Add an Interface object to the net config object. @@ -130,6 +132,13 @@ class NetConfig(object): """ raise NotImplemented("add_ovs_tunnel is not implemented.") + def add_ovs_patch_port(self, ovs_patch_port): + """Add a OvsPatchPort object to the net config object. + + :param ovs_patch_port: The OvsPatchPort object to add. + """ + raise NotImplemented("add_ovs_patch_port is not implemented.") + def apply(self, cleanup=False): """Apply the network configuration. |