Skip to content

VRF support for interfaces created by DANM #213

@carstenkoester

Description

@carstenkoester

Is this a BUG REPORT or FEATURE REQUEST?:
feature

What happened:
It'd be cool if DANM had the ability to place an interface within a VRF inside the pod network namespace - in other words, as per https://www.kernel.org/doc/Documentation/networking/vrf.txt, execute the equivalent of

ip link add dev ${vrf_name} type vrf table ${rt_tables}
ip link set dev ${interface_name} master ${vrf_name}

Idea would be to be able to declare a VRF name in the pod annotation, and let DANM create the VRF (for the first interface per VRF per pod), and then move the interface(s) into the VRF.

It seems that https://github.com/vishvananda/netlink supports the netlink calls to create VRFs (vishvananda/netlink#186) so this might be reasonably straightforward to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmajor featureFeatures requiring thorough changes, and multiple PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions