From: Swaminathan Vasudevan Date: Wed, 11 Feb 2015 23:41:19 +0000 (-0800) Subject: Remove unused RPC methods from l3_rpc X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=934c04d19ae7ee17e48b3a39881d576cb19b27fe;p=openstack-build%2Fneutron-build.git Remove unused RPC methods from l3_rpc This removes the unsued RPC methods from l3_rpc.py. 'get_snat_router_interface_ports" was defined but not used by any agent. Change-Id: Ide08e2a4b183b4f2616550efd5b1fb726b016b4c Closes-Bug: #1421011 --- diff --git a/neutron/api/rpc/handlers/l3_rpc.py b/neutron/api/rpc/handlers/l3_rpc.py index 7cf1905c7..2ae38c2aa 100644 --- a/neutron/api/rpc/handlers/l3_rpc.py +++ b/neutron/api/rpc/handlers/l3_rpc.py @@ -209,28 +209,6 @@ class L3RpcCallback(object): 'host': host}) return agent_port - def get_snat_router_interface_ports(self, context, **kwargs): - """Get SNAT serviced Router Port List. - - The Service Node that hosts the SNAT service requires - the ports to service the router interfaces. - This function will check if any available ports, if not - it will create ports on the routers interfaces and - will send a list to the L3 agent. - """ - router_id = kwargs.get('router_id') - host = kwargs.get('host') - admin_ctx = neutron_context.get_admin_context() - snat_port_list = ( - self.l3plugin.create_snat_intf_port_list_if_not_exists( - admin_ctx, router_id)) - for p in snat_port_list: - self._ensure_host_set_on_port(admin_ctx, host, p) - LOG.debug('SNAT interface ports returned : %(snat_port_list)s ' - 'and on host %(host)s', {'snat_port_list': snat_port_list, - 'host': host}) - return snat_port_list - def update_router_state(self, context, **kwargs): router_id = kwargs.get('router_id') state = kwargs.get('state')