From 380ec33d71069e8b7eba7c641862c4fd9e1a9491 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Feb 2015 11:09:37 +0900 Subject: [PATCH] OVS DVR: Remove dead code This is a leftover from commit e90ea7ce3f1aae1dce216618da49d37a64d3bb91 . Change-Id: I13d10d00f86659bc7c76df9be0cd8b8ec6713bc6 --- .../agent/ovs_dvr_neutron_agent.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py b/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py index f58c4a563..df1c9fd3e 100644 --- a/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py +++ b/neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py @@ -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 -- 2.45.2