ba89d04fbc
Fixes #3200 Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
65 lines
1.2 KiB
Go
65 lines
1.2 KiB
Go
// +build !linux !amd64
|
|
|
|
package netlink
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
var (
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
)
|
|
|
|
func NetworkGetRoutes() ([]Route, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func NetworkLinkAdd(name string, linkType string) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkLinkUp(iface *net.Interface) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func AddDefaultGw(ip net.IP) error {
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
func NetworkSetMTU(iface *net.Interface, mtu int) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkCreateVethPair(name1, name2 string) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkChangeName(iface *net.Interface, newName string) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkSetNsFd(iface *net.Interface, fd int) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkSetNsPid(iface *net.Interface, nspid int) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkSetMaster(iface, master *net.Interface) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func NetworkLinkDown(iface *net.Interface) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func CreateBridge(name string, setMacAddr bool) error {
|
|
return ErrNotImplemented
|
|
}
|