Merge "Skip update of vip sg if lb is gone"
This commit is contained in:
commit
dadd039eb9
|
@ -356,9 +356,10 @@ class LBaaSv2Driver(base.LBaaSDriver):
|
|||
# NOTE(maysams): When ovn-octavia provider is used
|
||||
# there is no need to set a security group for
|
||||
# the load balancer as it wouldn't be enforced.
|
||||
if not CONF.octavia_defaults.enforce_sg_rules:
|
||||
if not CONF.octavia_defaults.enforce_sg_rules and result:
|
||||
os_net = clients.get_network_client()
|
||||
vip_port = self._get_vip_port(loadbalancer)
|
||||
if vip_port:
|
||||
os_net.update_port(vip_port.id, security_groups=[])
|
||||
loadbalancer['security_groups'] = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue