]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vlan: retry vlan creation if bridge_binding capability is missing
authorJulien Fortin <jfortin@nvidia.com>
Thu, 10 Feb 2022 14:51:46 +0000 (15:51 +0100)
committerJulien Fortin <jfortin@nvidia.com>
Fri, 11 Feb 2022 11:33:49 +0000 (12:33 +0100)
commit24d5192df2dec6e5a5dc2add16668b31f2a0459a
treec94eca1193bc95427f388a0e61b3baa4a6a63cf5
parent03cd34767b9af0f208ab54c3027013cda8370d02
addons: vlan: retry vlan creation if bridge_binding capability is missing

On older ubuntu version bridge_binding is not supported, we can't rely
on `ip link help` to detect this. We have manually check if the first
netlink request is rejected then retry with iproute2.

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifupdown2/addons/vlan.py
ifupdown2/lib/exceptions.py
ifupdown2/lib/nlcache.py