Remove unused parameter
Remove parameter agent_ip of _add_fdb_flow() and _del_fdb_flow() Change-Id: I2df05026944bcfc446ce5a951df6696a95c2c663
This commit is contained in:
committed by
damon-devops
parent
16c19b13b3
commit
057e4461d0
@@ -343,7 +343,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
|||||||
if ofport == 0:
|
if ofport == 0:
|
||||||
continue
|
continue
|
||||||
for port in ports:
|
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()
|
self.tun_br.defer_apply_off()
|
||||||
|
|
||||||
def fdb_remove(self, context, fdb_entries):
|
def fdb_remove(self, context, fdb_entries):
|
||||||
@@ -363,10 +363,10 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
|||||||
if not ofport:
|
if not ofport:
|
||||||
continue
|
continue
|
||||||
for port in ports:
|
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()
|
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:
|
if port_info == q_const.FLOODING_ENTRY:
|
||||||
lvm.tun_ofports.add(ofport)
|
lvm.tun_ofports.add(ofport)
|
||||||
ofports = ','.join(lvm.tun_ofports)
|
ofports = ','.join(lvm.tun_ofports)
|
||||||
@@ -383,7 +383,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
|||||||
actions="strip_vlan,set_tunnel:%s,output:%s" %
|
actions="strip_vlan,set_tunnel:%s,output:%s" %
|
||||||
(lvm.segmentation_id, ofport))
|
(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:
|
if port_info == q_const.FLOODING_ENTRY:
|
||||||
lvm.tun_ofports.remove(ofport)
|
lvm.tun_ofports.remove(ofport)
|
||||||
if len(lvm.tun_ofports) > 0:
|
if len(lvm.tun_ofports) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user