]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove unused RPC methods from l3_rpc
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 11 Feb 2015 23:41:19 +0000 (15:41 -0800)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 11 Feb 2015 23:41:19 +0000 (15:41 -0800)
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

neutron/api/rpc/handlers/l3_rpc.py

index 7cf1905c7488d9875be89a700e7b05d0eca2aed1..2ae38c2aa1ae91c3c07582d0d7a83fea0feba191 100644 (file)
@@ -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')