Skip to content

Commit

Permalink
Fix for IPv6 cluster (#584)
Browse files Browse the repository at this point in the history
Related issue:deployments-k8s/5775

Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
  • Loading branch information
ljkiraly committed May 23, 2022
1 parent 54e80e0 commit cd3d241
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/networkservice/mechanisms/vxlan/common.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2022 Nordix and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -60,6 +61,13 @@ func addDel(ctx context.Context, conn *networkservice.Connection, vppConn api.Co
NextName: "ethernet-input",
}

if mechanism.SrcIP().To4() == nil {
addNextNode = &vpe.AddNodeNext{
NodeName: "vxlan6-input",
NextName: "ethernet-input",
}
}

addNextNodeRsp, err := vpe.NewServiceClient(vppConn).AddNodeNext(ctx, addNextNode)
if err != nil {
return errors.WithStack(err)
Expand Down

0 comments on commit cd3d241

Please sign in to comment.