Skip to content

Commit 565db6a

Browse files
committed
[OVN][migration] Fix cleanup stage for DVR case and fips
When removing interfaces like <int>@if<index> need to consider only <int> part. Related-Prod: https://mirantis.jira.com/browse/PRODX-50806 Change-Id: Ic3ac2b80cdacf346d40c29959b64805cefdde689
1 parent e5c7d76 commit 565db6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rockoon/cli/ovs_ovn_migration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def cleanup_linux_netns(script_args):
527527
EXIT_CODE=0
528528
for ns in $(egrep 'qrouter-|qdhcp-|snat-|fip-' <(cut -d' ' -f1 <($IP_NETNS))); do
529529
for link in $(cut -d: -f2 <(grep -v LOOPBACK <($IP_NETNS exec $ns ip -o link show))); do
530+
link=${link%%@*}
530531
$IP_NETNS exec $ns ip l delete $link || ovs-vsctl ${OVS_DB_SOCK} --if-exists del-port br-int $link
531532
done
532533
if [[ -n $(grep -v LOOPBACK <($IP_NETNS exec $ns ip -o link show)) ]]; then

0 commit comments

Comments
 (0)