From a4d484f2857abbb76f1a4246bdeca8e81bf83a79 Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Tue, 21 Jan 2025 19:38:50 -0500 Subject: [PATCH] add unchanged gw --- cns/middlewares/k8sSwiftV2_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cns/middlewares/k8sSwiftV2_windows.go b/cns/middlewares/k8sSwiftV2_windows.go index 70b8ef5018..09d7d15667 100644 --- a/cns/middlewares/k8sSwiftV2_windows.go +++ b/cns/middlewares/k8sSwiftV2_windows.go @@ -74,7 +74,7 @@ func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string) []cns.Route { for i, cidr := range cidrs { ip, _, err := net.ParseCIDR(cidr) if err != nil { - return "", errors.Wrap(err, "failed to parse cidr") + return nil } routes[i] = cns.Route{ IPAddress: cidr,