Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support IFLA_VRF_PORT_TABLE attribute #98

Merged
merged 2 commits into from
Apr 24, 2024

Commits on Apr 24, 2024

  1. support IFLA_VRF_PORT_TABLE attribute

    Links that belong to a VRF carry the VRF table ID in the link info. For
    a VRF link we already had these attributes:
    
    ```
    LinkInfo([Kind(Vrf), Data(Vrf([TableId(10)]))])
    ```
    
    For ports attached to a VRF we now have:
    
    ```
    LinkInfo([Kind(Veth), PortKind(Vrf), PortData(VrfPort([TableId(10)]))])
    ```
    
    This tells us that this veth interface belong to the VRF with table ID
    10.
    little-dude committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    c3692ef View commit details
    Browse the repository at this point in the history
  2. add test for link with IFLA_VRF_PORT_TABLE attribute

    Note that I had to derive `Default` on a couple structs to make the
    test manageable.
    
    Also, I noticed that the packet we emit does not 100% matches the
    packet emitted by the kernel.
    little-dude committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a822400 View commit details
    Browse the repository at this point in the history