Skip to content

IPAM added routes incompatible with vrf plugin #1223

@chdxD1

Description

@chdxD1

With #1151, more specifically https://github.com/mlguerrero12/plugins/blob/76020abb755d3e21776b752a80af1c65fa9e622c/plugins/meta/vrf/vrf.go#L122-L128, routes that are added without a src are filtered out when moving the interface to the VRF.

Creating routes without source is the default for the ipam_linux.go implementation: https://github.com/containernetworking/plugins/blob/main/pkg/ipam/ipam_linux.go#L133-L138

This leads to routes being dropped by the vrf CNI that were added previously by e.g. the macvlan CNI.

Maybe @mlguerrero12, can you elaborate why the specific route filter was needed? ("There were some routes that don't need to be added.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions