Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion vpp-manager/vpp_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,18 @@ func (v *VppRunner) configureIPv6LinkLocal(ifSpec *config.UplinkInterfaceSpec, i
ifSpec.InterfaceName, *config.GetCalicoVppDebug().FetchV6LLntries)

found:
err := v.vpp.AddNeighbor(&types.Neighbor{
SwIfIndex: ifState.TapSwIfIndex,
IP: ifState.IPv6LinkLocal.IP,
HardwareAddr: ifState.HardwareAddr,
Flags: types.IPNeighborStatic,
})
if err != nil {
return errors.Wrapf(err, "error add static neighbor for %s tap0 %d", ifState.IPv6LinkLocal.IP, ifState.TapSwIfIndex)
}
// Add LL /128 route to punt table so that punted link-local traffic
// reaches the host via tap instead of hitting fe80::/10 → ip6-link-local.
err := v.vpp.RouteAdd(&types.Route{
err = v.vpp.RouteAdd(&types.Route{
Table: common.PuntTableID,
Dst: common.FullyQualified(ifState.IPv6LinkLocal.IP),
Paths: []types.RoutePath{{
Expand Down
Loading