Skip to content

nlmanager, addons: add transparent support interface altnames#330

Open
christoph-heiss wants to merge 9 commits intoCumulusNetworks:masterfrom
christoph-heiss:altname-support
Open

nlmanager, addons: add transparent support interface altnames#330
christoph-heiss wants to merge 9 commits intoCumulusNetworks:masterfrom
christoph-heiss:altname-support

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 <c.heiss@proxmox.com>
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 <c.heiss@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
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 <c.heiss@proxmox.com>
This method is already inherited from the `Addon` class.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Enables using the `bridge` addon with altnames.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
… names

Enables using the `bond` addon with altnames.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
… names

Enables using the `vlan` addon with altnames.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
…names

Enables using the `openvswitch` addon with altnames.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
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