We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12c4711 + fa158b9 commit a826b83Copy full SHA for a826b83
pkg/networkengine/routedriver/vxlan/vxlan.go
@@ -454,7 +454,11 @@ func (vx *vxlan) calIPSetOnNode(network *types.Network) map[string]*netlink.IPSe
454
continue
455
}
456
for _, srcCIDR := range nodeInfo.Subnets {
457
- _, ipNet, _ := net.ParseCIDR(srcCIDR)
+ _, ipNet, err := net.ParseCIDR(srcCIDR)
458
+ if err != nil {
459
+ klog.Errorf("parse node subnet %s error %s", srcCIDR, err.Error())
460
+ continue
461
+ }
462
ones, _ := ipNet.Mask.Size()
463
entry := &netlink.IPSetEntry{
464
IP: ipNet.IP,
0 commit comments