Skip to content

Commit

Permalink
do not pass gwip
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Jan 22, 2025
1 parent a4d484f commit f15292a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cns/middlewares/k8sSwiftV2_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ func (k *K8sSWIFTv2Middleware) addDefaultRoute(podIPInfo *cns.PodIpInfo, gateway
func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string) []cns.Route {
routes := make([]cns.Route, len(cidrs))
for i, cidr := range cidrs {
ip, _, err := net.ParseCIDR(cidr)
if err != nil {
return nil
}
routes[i] = cns.Route{
IPAddress: cidr,
GatewayIPAddress: ip.String(),
GatewayIPAddress: "", // gateway IP is not required for infraNIC
}
}
return routes
Expand Down

0 comments on commit f15292a

Please sign in to comment.