Skip to content

Commit 1276ee1

Browse files
committed
Fix route checking in alreadySetUp
1 parent 5295973 commit 1276ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/network/node/sdn_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ func (plugin *OsdnNode) alreadySetUp(localSubnetGatewayCIDR string, clusterNetwo
8989
if err != nil {
9090
return false
9191
}
92-
for _, route := range routes {
92+
for _, clusterCIDR := range clusterNetworkCIDR {
9393
found = false
94-
for _, clusterCIDR := range clusterNetworkCIDR {
94+
for _, route := range routes {
9595
if route.Dst != nil && route.Dst.String() == clusterCIDR {
9696
found = true
9797
break

0 commit comments

Comments
 (0)