]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bridge: down: when ifreload_down_changed=1: purge bridge and upper devices...
authorJulien Fortin <julien@cumulusnetworks.com>
Fri, 22 Mar 2019 07:35:18 +0000 (15:35 +0800)
committerJulien Fortin <julien@cumulusnetworks.com>
Mon, 22 Apr 2019 02:56:14 +0000 (10:56 +0800)
commit9b585f9e675c696b00d72f95dbf1c137081ec5cd
tree0dc3bb357348569ded50b2c94a094fdcfb05bbc1
parent92c2d4a9e7cd8207c87178f792bb093d9651e134
addons: bridge: down: when ifreload_down_changed=1: purge bridge and upper devices cache

On ifreload (down ops) we need to purge the cache entry of the bridge and its upper devices
to avoid stale values in our cache.

ifup this config, then remove bridge-vids 20, ifreload: since the bridge is removed because
of ifreload_down_changed=1, we need torecreate the vlan bridge.10 and it's configuration, the
cache is stale. We need to clear it to remove the ip 10.10.10.10/32.

auto bridge
iface bridge
      bridge-ports swp1 swp2
      bridge-vids 10 20
      bridge-vlan-aware yes

auto swp1
iface swp1
      link-speed 10000

auto swp2
iface swp2

auto bridge.10
iface bridge.10
      address 10.10.10.10/32

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/bridge.py
ifupdown2/ifupdownaddons/LinkUtils.py