- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getAllDefaultRoutes (0.48 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/net/interface.go
return net.Interfaces() } // getAllDefaultRoutes obtains IPv4 and IPv6 default routes on the node. If unable // to read the IPv4 routing info file, we return an error. If unable to read the IPv6 // routing info file (which is optional), we'll just use the IPv4 route information. // Using all the routing info, if no default routes are found, an error is returned. func getAllDefaultRoutes() ([]Route, error) { routes, err := v4File.extract()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 14.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go
defer func() { v4File.name = ipv4RouteFile }() // Should not occur, as caller ensures we have IPv4 route file, but being thorough v4File.name = "no-such-file" errStrFrag := "no such file" _, err := getAllDefaultRoutes() if err == nil { t.Errorf("Expected error trying to read non-existent v4 route file") } if !strings.Contains(err.Error(), errStrFrag) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 33.2K bytes - Viewed (0)