Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Sep 23, 2024
1 parent 3142afc commit ab9e2c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cni/network/invoker_cns.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ func configureDefaultAddResult(info *IPResultInfo, addConfig *IPAMAddConfig, add
resRoute := addResult.interfaceInfo[key].Routes
if len(routes) > 0 {
resRoute = append(resRoute, routes...)
} else { // add default routes if none are provided and skipDefaultRoute is false
} else { // add default routes if none are provided
// on Swiftv2 windows scenario, skip to add default route on infra vnet;
if !info.skipDefaultRoutes {
resRoute = append(resRoute, network.RouteInfo{
Dst: defaultRouteDstPrefix,
Expand Down Expand Up @@ -493,7 +494,7 @@ func configureSecondaryAddResult(info *IPResultInfo, addResult *IPAMAddResult, p
resRoute := addResult.interfaceInfo[key].Routes
if len(routes) > 0 {
resRoute = append(resRoute, routes...)
} else { // add default routes for secondary interfaces
} else { // add default route to customer vnet on swiftv2 windows
resRoute = append(resRoute, network.RouteInfo{
Dst: defaultRouteDstPrefix,
Gw: ncgw,
Expand Down

0 comments on commit ab9e2c7

Please sign in to comment.