Flush ebtables arp protect chains before deleting them
When a port is removed, the linuxbridge agent cleans up the chains
neutronARP-* and neutronMAC-*, but in some cases this chains still
contains rules and ebtables fails with `CHAIN_USER_DEL failed (Device or
resource busy)`. Flushing the chains before deleting them, fixes that
issue.
Reviewed: https:/ /review. opendev. org/740588 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=2207b885449 667a7bc377f427b 9123165223dbde
Committed: https:/
Submitter: Zuul
Branch: master
commit 2207b885449667a 7bc377f427b9123 165223dbde
Author: Lukas Steiner <email address hidden>
Date: Sun Jul 12 14:10:26 2020 +0200
Flush ebtables arp protect chains before deleting them
When a port is removed, the linuxbridge agent cleans up the chains
neutronARP-* and neutronMAC-*, but in some cases this chains still
contains rules and ebtables fails with `CHAIN_USER_DEL failed (Device or
resource busy)`. Flushing the chains before deleting them, fixes that
issue.
Change-Id: Icfcf8c5406cfdc 47fabf012e82ed5 6c345a73af8
Closes-Bug: #1887281