From 00ae68453867da38727aae0b48463d7133e53160 Mon Sep 17 00:00:00 2001 From: wangjian Date: Fri, 21 Sep 2018 11:54:19 +0800 Subject: [PATCH] l3 notifer should not be a set An exceptions is raised when a gateway is set to a router because l3 notifer is a set Close-Bug: #1793633 Change-Id: I9ae83a9890fb3db2db6150d52a77e67435869770 --- dragonflow/neutron/services/l3_router_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dragonflow/neutron/services/l3_router_plugin.py b/dragonflow/neutron/services/l3_router_plugin.py index a5629d420..af3ac012f 100644 --- a/dragonflow/neutron/services/l3_router_plugin.py +++ b/dragonflow/neutron/services/l3_router_plugin.py @@ -95,9 +95,9 @@ class DFL3AgentlessRouterPlugin(service_base.ServicePluginBase, def _start_rpc_notifiers(self): """Initialization RPC notifiers for agents""" - self.agent_notifiers[const.AGENT_TYPE_L3] = { + self.agent_notifiers[const.AGENT_TYPE_L3] = ( l3_rpc_agent_api.L3AgentNotifyAPI() - } + ) def start_rpc_listeners(self): self.topic = topics.L3PLUGIN