Skip to content

Commit d292b12

Browse files
committed
Call undersync after cleaning up trunks
1 parent 4b676b2 commit d292b12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/neutron-understack/neutron_understack/neutron_understack_mech.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def update_port_postcommit(self, context):
294294

295295
if baremetal_vnic and current_vif_unbound and original_vif_other:
296296
self._tenant_network_port_cleanup(context)
297+
if vlan_group_name:
298+
self.invoke_undersync(vlan_group_name)
297299
elif current_vif_other and vlan_group_name:
298300
self.invoke_undersync(vlan_group_name)
299301

@@ -318,7 +320,6 @@ def _tenant_network_port_cleanup(self, context: PortContext):
318320
self.nb.remove_port_network_associations(
319321
connected_interface_uuid, networks_to_remove
320322
)
321-
# TODO: also call this in the case above, i.e. previos vif type was other and current vif type is unbound.
322323

323324
def delete_port_precommit(self, context):
324325
pass

0 commit comments

Comments
 (0)