]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove unused parameter
authorshihanzhang <shihanzhang@huawei.com>
Sat, 17 May 2014 09:07:33 +0000 (17:07 +0800)
committerdamon-devops <damon.devops@gmail.com>
Sun, 18 May 2014 12:03:02 +0000 (20:03 +0800)
Remove parameter agent_ip of _add_fdb_flow() and _del_fdb_flow()
Change-Id: I2df05026944bcfc446ce5a951df6696a95c2c663

neutron/plugins/openvswitch/agent/ovs_neutron_agent.py

index 1126a811d90e83c7784054ccc672953f324595fe..70115217314b19aaed55ad231d4c38e5090e1a64 100644 (file)
@@ -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: