Skip to content

Commit 3ea7872

Browse files
committed
enhance comment
1 parent 40ccece commit 3ea7872

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import (
1111
// default route is set for secondary interface NIC(i.e,delegatedNIC)
1212
func (k *K8sSWIFTv2Middleware) setRoutes(podIPInfo *cns.PodIpInfo) error {
1313
if podIPInfo.NICType == cns.InfraNIC {
14-
// as a workaround, set a default route with gw 0.0.0.0 to avoid HNS setting default route to infraNIC interface
15-
// TODO: Remove this once HNS supports custom routes adding to the pod
14+
// as a workaround, HNS will not set this dummy default route(0.0.0.0/0, nexthop:0.0.0.0) on infraVnet interface eth0
15+
// the only usage for this dummy default is to bypass HNS setting default route on eth0
16+
// TODO: Remove this once HNS fix is ready
1617
route := cns.Route{
1718
IPAddress: "0.0.0.0/0",
1819
GatewayIPAddress: "0.0.0.0",

0 commit comments

Comments
 (0)