From 2f64420717f2a122cea47c4098431c72530f00cb Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Mon, 29 Jul 2024 21:57:23 +0300 Subject: [PATCH] Fix Gratuitous ARPs critical error on ipv6 In the case where the Gratuitous ARPs send function failed we failed the all CNI create and revert the configuration Signed-off-by: Sebastian Sch --- cmd/sriov/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sriov/main.go b/cmd/sriov/main.go index cfd35891..1281fde3 100644 --- a/cmd/sriov/main.go +++ b/cmd/sriov/main.go @@ -212,7 +212,7 @@ func cmdAdd(args *skel.CmdArgs) error { hasCarrier := utils.WaitForCarrier(args.IfName, 200*time.Millisecond) /* The error is ignored here because enabling this feature is only a performance enhancement. */ - err = utils.AnnounceIPs(args.IfName, result.IPs) + err := utils.AnnounceIPs(args.IfName, result.IPs) logging.Debug("announcing IPs", "hasCarrier", hasCarrier, "IPs", result.IPs, "announceError", err) return nil