From 6771c90051d36405b4bdd3f834a147061c8b7375 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Fri, 3 Mar 2017 18:41:02 -0500 Subject: Fixes neutron L3 HA We modify neutron code to allow FDIO to create regular tap ports in router namespaces. However, we did not add support for neutron L3 HA, which required this extra patch to work correctly. JIRA: APEX-393 Change-Id: I3eb7ccac046be45d48806cf5d1e64e1c7282284d Signed-off-by: Tim Rozet --- build/neutron-patch-NSDriver.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'build') diff --git a/build/neutron-patch-NSDriver.patch b/build/neutron-patch-NSDriver.patch index e015064c..d5889e38 100644 --- a/build/neutron-patch-NSDriver.patch +++ b/build/neutron-patch-NSDriver.patch @@ -203,6 +203,29 @@ index c2eb06e..80da16f 100644 class OVSInterfaceDriver(LinuxInterfaceDriver): """Driver for creating an internal interface on an OVS bridge.""" +diff --git a/neutron/agent/l3/ha_router.py b/usr/lib/python2.7/site-packages/neutron/agent/l3/ha_router.py +index ca0e50d..2c4fdad 100644 +--- a/neutron/agent/l3/ha_router.py ++++ b/usr/lib/python2.7/site-packages/neutron/agent/l3/ha_router.py +@@ -52,15 +52,14 @@ class HaRouterNamespace(namespaces.RouterNamespace): + class HaRouter(router.RouterInfo): + def __init__(self, state_change_callback, *args, **kwargs): + super(HaRouter, self).__init__(*args, **kwargs) +- + self.ha_port = None + self.keepalived_manager = None + self.state_change_callback = state_change_callback + + def create_router_namespace_object( +- self, router_id, agent_conf, iface_driver, use_ipv6): ++ self, router_id, agent_conf, iface_driver, use_ipv6, ovs_driver): + return HaRouterNamespace( +- router_id, agent_conf, iface_driver, use_ipv6) ++ router_id, agent_conf, iface_driver, use_ipv6, ovs_driver) + + @property + def ha_priority(self): + -- 2.9.3 -- cgit 1.2.3-korg