- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseCIDR (0.07 sec)
-
cni/pkg/nodeagent/cni-watcher_test.go
invalid := string(payload) + "funkyjunk" _, err := processAddEvent([]byte(invalid)) assert.Error(t, err) } func TestCNIPluginServer(t *testing.T) { fakePodIP := "11.1.1.12" _, addr, _ := net.ParseCIDR(fakePodIP + "/32") valid := CNIPluginAddEvent{ Netns: "/var/netns/foo", PodName: "pod-bingo", PodNamespace: "funkyns", IPs: []IPConfig{{ Address: *addr, }}, } setupLogging()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
cni/pkg/iptables/iptables_linux.go
cidrs = append(cidrs, "0::0/0") } else { log.Debugf("IPv6 is enabled, but the loopback interface has IPv6 disabled; skipping") } } for _, fullCIDR := range cidrs { _, localhostDst, err := net.ParseCIDR(fullCIDR) if err != nil { return fmt.Errorf("parse CIDR: %v", err) } netlinkRoutes := []*netlink.Route{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Sep 06 09:44:28 UTC 2024 - 4K bytes - Viewed (0)