Fix Bug #1602493 to add local port process if port is associated with fip
Change-Id: I0259b8fceff72c3acc544a480c071083b6a6bae9 Closes-bug: #1602493
This commit is contained in:
parent
4fe1f1e070
commit
23bde781bc
|
@ -362,7 +362,18 @@ class DNATApp(DFlowApp):
|
|||
fip for fip in six.itervalues(self.local_floatingips)
|
||||
if fip.get_lport_id() == port_id]
|
||||
for floatingip in ips_to_disassociate:
|
||||
self.disassociate_floatingip(floatingip)
|
||||
self.delete_floatingip(floatingip)
|
||||
self.update_floatingip_status(
|
||||
floatingip, n_const.FLOATINGIP_STATUS_DOWN)
|
||||
|
||||
def add_local_port(self, lport):
|
||||
port_id = lport.get_id()
|
||||
ips_to_associate = [
|
||||
fip for fip in six.itervalues(self.local_floatingips)
|
||||
if fip.get_lport_id() == port_id]
|
||||
for floatingip in ips_to_associate:
|
||||
self._install_ingress_nat_rules(floatingip)
|
||||
self._install_egress_nat_rules(floatingip)
|
||||
|
||||
def update_bridge_port(self, lport):
|
||||
port_name = lport.get_name()
|
||||
|
|
Loading…
Reference in New Issue