Skip to content

Commit 6e59606

Browse files
author
Aritra Basu
committed
Filter out link-local routes from VPP main interface routing table
Link-local addresses are not routable. When synchronizing Linux routes to VPP's uplink interface, filter out link-local addresses so that they are not added to VPP's main VRF routing table. Signed-off-by: Aritra Basu <[email protected]>
1 parent e103edd commit 6e59606

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpp-manager/vpp_runner.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ func (v *VppRunner) configureVppUplinkInterface(
552552
}
553553
}
554554
for _, route := range ifState.Routes {
555+
if route.Dst != nil && route.Dst.IP.IsLinkLocalUnicast() {
556+
log.Infof("Skipping link-local route %s", route.Dst.String())
557+
continue
558+
}
555559
err = v.vpp.RouteAdd(&types.Route{
556560
Dst: route.Dst,
557561
Paths: []types.RoutePath{{

0 commit comments

Comments
 (0)