netlink: make darwin happy
Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
This commit is contained in:
parent
dadd54dba3
commit
77d9fd2628
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ func networkSize(mask net.IPMask) int32 {
|
|||
|
||||
func checkRouteOverlaps(networks []netlink.Route, dockerNetwork *net.IPNet) error {
|
||||
for _, network := range networks {
|
||||
if !network.Default && networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
if network.IPNet != nil && networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
return fmt.Errorf("Network %s is already routed: '%s'", dockerNetwork, network)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net"
|
||||
)
|
||||
|
||||
func NetworkGetRoutes() ([]*net.IPNet, error) {
|
||||
func NetworkGetRoutes() ([]Route, error) {
|
||||
return nil, fmt.Errorf("Not implemented")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue