Skip to content

Commit b3f1bd8

Browse files
committed
hardcode gw to try
1 parent de42bf6 commit b3f1bd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ func (k *K8sSWIFTv2Middleware) SetInfraRoutes(podIPInfo *cns.PodIpInfo) ([]cns.R
301301
}
302302

303303
if ip.Is4() {
304-
routes = append(routes, k.addRoutes(podCIDRsV4, overlayGatewayv4)...)
305-
routes = append(routes, k.addRoutes(serviceCIDRsV4, overlayGatewayv4)...)
306-
routes = append(routes, k.addRoutes(infraVNETCIDRsv4, overlayGatewayv4)...)
304+
routes = append(routes, k.addRoutes(podCIDRsV4, "10.229.0.1")...)
305+
routes = append(routes, k.addRoutes(serviceCIDRsV4, "10.0.0.1")...)
306+
routes = append(routes, k.addRoutes(infraVNETCIDRsv4, "10.225.0.1")...)
307307
} else {
308308
routes = append(routes, k.addRoutes(podCIDRv6, overlayGatewayV6)...)
309309
routes = append(routes, k.addRoutes(serviceCIDRsV6, overlayGatewayV6)...)

0 commit comments

Comments
 (0)