]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: vlan: new attribute: vlan-bridge-binding
authorJulien Fortin <julien@cumulusnetworks.com>
Thu, 16 Jul 2020 23:08:59 +0000 (01:08 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Mon, 25 Jan 2021 20:30:40 +0000 (21:30 +0100)
commit28bf72d8cb62c166841a32e0aa7de52ec6396b7a
tree4f218c226469314a55c452cb2e504d76ce3c5fb3
parent872e4a6ec2619285747732ede042e6244688e8c2
addons: vlan: new attribute: vlan-bridge-binding

From Mike Manning:
In the case of vlan filtering on bridges, the bridge may also have the
corresponding vlan devices as upper devices. Currently the link state
of vlan devices is transferred from the lower device. So this is up if
the bridge is in admin up state and there is at least one bridge port
that is up, regardless of the vlan that the port is a member of.

The link state of the vlan device may need to track only the state of
the subset of ports that are also members of the corresponding vlan,
rather than that of all ports.

Add a flag to specify a vlan bridge binding mode, by which the link
state is no longer automatically transferred from the lower device,
but is instead determined by the bridge ports that are members of the
vlan.
----

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/vlan.py
ifupdown2/lib/nlcache.py
ifupdown2/nlmanager/nlpacket.py