Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

bridge: add support for setting IFLA_BRIDGE_VLAN_INFO #213

Merged
merged 2 commits into from
Dec 29, 2021

Conversation

flouthoc
Copy link
Contributor

Extends InfoBridge to support Flags

Add support for setting IFLA_BRIDGE_VLAN_INFO to bridge management nested attributes.

        BRIDGE_VLAN_INFO_MASTER = 1
        BRIDGE_VLAN_INFO_PVID = 4
        BRIDGE_VLAN_INFO_UNTAGGED = 8
        BRIDGE_VLAN_INFO_RANGE_BEGIN = 16
        BRIDGE_VLAN_INFO_RANGE_END = 32

@flouthoc
Copy link
Contributor Author

I want to rebase this after: #212

@little-dude little-dude self-requested a review December 19, 2021 08:45
Copy link
Owner

@little-dude little-dude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good, I'll merge after #212. Like in #212 though, why can't IFLA_BRIDGE_VLAN_INFO be name IFLA_BR_VLAN_INFO?

@little-dude
Copy link
Owner

You can now rebase this @flouthoc :) Thanks!

Extends InfoBridge to support Flags

Add support for setting IFLA_BRIDGE_VLAN_INFO to bridge management nested attributes.
Can accept flags such BRIDGE_FLAGS_MASTER and BRIDGE_FLAGS_SELF

	BRIDGE_VLAN_INFO_MASTER = 1
	BRIDGE_VLAN_INFO_PVID = 4
	BRIDGE_VLAN_INFO_UNTAGGED = 8
	BRIDGE_VLAN_INFO_RANGE_BEGIN = 16
	BRIDGE_VLAN_INFO_RANGE_END = 32

Signed-off-by: Aditya Rajan <arajan@redhat.com>
Signed-off-by: Aditya Rajan <arajan@redhat.com>
@flouthoc
Copy link
Contributor Author

@little-dude Thanks :) rebased

@little-dude
Copy link
Owner

Thanks @flouthoc !

@little-dude little-dude merged commit 8d3db04 into little-dude:master Dec 29, 2021
Copy link
Contributor Author

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will also add methods for this in high-level API once i implement it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants