]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
OVS DVR: Remove dead code
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 13 Feb 2015 02:09:37 +0000 (11:09 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 13 Feb 2015 02:09:37 +0000 (11:09 +0900)
This is a leftover from commit e90ea7ce3f1aae1dce216618da49d37a64d3bb91 .

Change-Id: I13d10d00f86659bc7c76df9be0cd8b8ec6713bc6

neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py

index f58c4a563397fbdfd51c10bcd9aa9e31c965506a..df1c9fd3e29900ba72650f9c1a00ad5489266503 100644 (file)
@@ -798,27 +798,6 @@ class OVSDVRNeutronAgent(dvr_rpc.DVRAgentRpcApiMixin):
         # release port state
         self.local_ports.pop(port.vif_id, None)
 
-    def _get_flow_args_by_version(self, ip_version, table,
-                                  vlan, subnet, priority, actions):
-        """
-        Get flow args for DVR by IP version.
-        priority and actions are optional to support both add_flows
-        and delete_flows
-        """
-        args = {'table': table,
-                'dl_vlan': vlan}
-        if ip_version == 4:
-            args['proto'] = 'ip'
-            args['nw_dst'] = subnet
-        else:
-            args['proto'] = 'ipv6'
-            args['ipv6_dst'] = subnet
-        if priority:
-            args['priority'] = priority
-        if actions:
-            args['actions'] = actions
-        return args
-
     def unbind_port_from_dvr(self, vif_port, local_vlan_map):
         if not self.in_distributed_mode():
             return