From 789bd1ea089314b49db02ddd517809a82c380cf1 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Tue, 14 Jun 2016 11:40:55 -0400 Subject: Add support for OVS patch ports OVS patch ports are used to connect two OVS bridges so traffic can flow between them. This is generally useful for various cases. Specifically it could be used to connect the bridges created by TripleO networking configurations (br-ex, etc) to the bridge created by the multinode networking setup in infra's nodepool (br_pub). This allows the nodes in a multinode deployment to have connectivity across private subnets where such traffic is typically firewalled off in public clouds. Change-Id: I11404106cb3f53734f6fc9a35c22f905a0770245 --- 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 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. -- cgit 1.2.3-korg