diff --git a/cns/middlewares/k8sSwiftV2_windows.go b/cns/middlewares/k8sSwiftV2_windows.go index 0e29a1f352..eb5004e5ae 100644 --- a/cns/middlewares/k8sSwiftV2_windows.go +++ b/cns/middlewares/k8sSwiftV2_windows.go @@ -85,10 +85,8 @@ func (k *K8sSWIFTv2Middleware) getIPv4Gateway(cidr string) (string, error) { func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string) []cns.Route { routes := make([]cns.Route, len(cidrs)) for i, cidr := range cidrs { - gatewayIP, _ := k.getIPv4Gateway(cidr) routes[i] = cns.Route{ - IPAddress: cidr, - GatewayIPAddress: gatewayIP, + IPAddress: cidr, } } return routes