Merge "[OVN][migration] Clean sg- and fg- interfaces"

This commit is contained in:
Zuul 2022-03-23 18:49:33 +00:00 committed by Gerrit Code Review
commit 1aa36e7a3c
2 changed files with 2 additions and 2 deletions
tools/ovn_migration/tripleo_environment/playbooks/roles/migration

@ -1,7 +1,7 @@
---
- name: Cleanup neutron router and dhcp interfaces
shell: |
ovs-vsctl list interface | awk '/name[ ]*: qr-|ha-|qg-|rfp-/ { print $3 }' | xargs -n1 ovs-vsctl del-port
ovs-vsctl list interface | awk '/name[ ]*: qr-|ha-|qg-|rfp-|sg-|fg-/ { print $3 }' | xargs -n1 ovs-vsctl del-port
# dhcp tap ports cannot be easily distinguished from ovsfw ports, so we
# list them from within the qdhcp namespaces

@ -49,7 +49,7 @@ function recreate_bridge_mappings() {
function copy_interfaces_to_br_migration() {
interfaces=$(ovs-vsctl list-ifaces br-int | egrep -v 'qr-|ha-|qg-|rfp-')
interfaces=$(ovs-vsctl list-ifaces br-int | egrep -v 'qr-|ha-|qg-|rfp-|sg-|fg-')
for interface in $interfaces; do
if [[ "$interface" == "br-int" ]]; then
continue