Skip to content

Conversation

@christoph-heiss
Copy link
Contributor

First adds support for decoding IFLA_PROP_LIST attributes in nlpacket via AttributeLinkPropList.

Then adds transparent handling to nlcache/ifupdownmain by caching the link reference for the primary ifname as well as for each altname of the respective interface.

nlmanager by extension itself already handles altnames well, as using IFLA_IFNAME in netlink requests already considers interface altnames.

Finally, go through property on each addon which can take interface name(s) and add the appropriate translation there too.

Pretty straight forward, it's just a list of the usual netlink
length-type-data structure.

Signed-off-by: Christoph Heiss <[email protected]>
This ensures that each detected link gets cached under their primary
interface name as well as each respective altname. This makes lookups
for either name transparent, making code using the cache easier to
reason about.

Signed-off-by: Christoph Heiss <[email protected]>
This enables transparent look-up of interfaces, enabling users of
`ifaceobjdict` and `ifaceobjcurrdict` to look up interface by either
name.

Signed-off-by: Christoph Heiss <[email protected]>
This method is already inherited from the `Addon` class.

Signed-off-by: Christoph Heiss <[email protected]>
Enables using the `bridge` addon with altnames.

Signed-off-by: Christoph Heiss <[email protected]>
… names

Enables using the `bond` addon with altnames.

Signed-off-by: Christoph Heiss <[email protected]>
… names

Enables using the `vlan` addon with altnames.

Signed-off-by: Christoph Heiss <[email protected]>
…names

Enables using the `openvswitch` addon with altnames.

Signed-off-by: Christoph Heiss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant