diff --git a/pkg/networkengine/routedriver/vxlan/vxlan.go b/pkg/networkengine/routedriver/vxlan/vxlan.go index dbe5f60..aedc325 100644 --- a/pkg/networkengine/routedriver/vxlan/vxlan.go +++ b/pkg/networkengine/routedriver/vxlan/vxlan.go @@ -455,7 +455,11 @@ func (vx *vxlan) calIPSetOnNode(network *types.Network) map[string]*netlink.IPSe continue } for _, srcCIDR := range nodeInfo.Subnets { - _, ipNet, _ := net.ParseCIDR(srcCIDR) + _, ipNet, err := net.ParseCIDR(srcCIDR) + if err != nil { + klog.Errorf("parse node subnet %s error %s", srcCIDR, err.Error()) + continue + } ones, _ := ipNet.Mask.Size() entry := &netlink.IPSetEntry{ IP: ipNet.IP,