From: shihanzhang Date: Sat, 17 May 2014 09:07:33 +0000 (+0800) Subject: Remove unused parameter X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=61e52f91c7259aab40bb3bf3474d361da00abc58;p=openstack-build%2Fneutron-build.git Remove unused parameter Remove parameter agent_ip of _add_fdb_flow() and _del_fdb_flow() Change-Id: I2df05026944bcfc446ce5a951df6696a95c2c663 --- diff --git a/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py b/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py index 1126a811d..701152173 100644 --- a/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py +++ b/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py @@ -343,7 +343,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin, if ofport == 0: continue for port in ports: - self._add_fdb_flow(port, agent_ip, lvm, ofport) + self._add_fdb_flow(port, lvm, ofport) self.tun_br.defer_apply_off() def fdb_remove(self, context, fdb_entries): @@ -363,10 +363,10 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin, if not ofport: continue for port in ports: - self._del_fdb_flow(port, agent_ip, lvm, ofport) + self._del_fdb_flow(port, lvm, ofport) self.tun_br.defer_apply_off() - def _add_fdb_flow(self, port_info, agent_ip, lvm, ofport): + def _add_fdb_flow(self, port_info, lvm, ofport): if port_info == q_const.FLOODING_ENTRY: lvm.tun_ofports.add(ofport) ofports = ','.join(lvm.tun_ofports) @@ -383,7 +383,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin, actions="strip_vlan,set_tunnel:%s,output:%s" % (lvm.segmentation_id, ofport)) - def _del_fdb_flow(self, port_info, agent_ip, lvm, ofport): + def _del_fdb_flow(self, port_info, lvm, ofport): if port_info == q_const.FLOODING_ENTRY: lvm.tun_ofports.remove(ofport) if len(lvm.tun_ofports) > 0: