Skip to content

Commit 51f232e

Browse files
OPENSTACK-2959: remove old selfip port
add arguement to tell agent delete old selfip port
1 parent c6296c6 commit 51f232e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

f5lbaasdriver/v2/bigip/driver_v2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ def update_vipport_attrs(self, context, agent, device, loadbalancer):
765765
"local_link_information": llinfo
766766
}
767767

768-
# pzhang migrate
769768
driver.plugin.db._core_plugin.update_port(
770769
context,
771770
loadbalancer.vip_port_id,
@@ -796,6 +795,7 @@ def refresh(self, context, body):
796795
lbext = body['loadbalancerext']
797796
loadbalancer = lbext['loadbalancer']
798797
device_id = lbext.get("device_id")
798+
rm_selfip_port = lbext.get("rm_selfip_port")
799799
rebuild_all = lbext['all']
800800

801801
self._log_entity(loadbalancer)
@@ -807,6 +807,8 @@ def refresh(self, context, body):
807807
context, loadbalancer, device_id=device_id)
808808
# NOTE(qzhao): Call agent to rebuild LB.
809809
service = self._create_service(context, loadbalancer, agent)
810+
811+
device["rm_selfip_port"] = rm_selfip_port
810812
service["device"] = device
811813
agent_host = agent['host']
812814

0 commit comments

Comments
 (0)