2014-01-31 10:16:42 +00:00
|
|
|
// +build !linux !amd64
|
|
|
|
|
2013-12-23 23:39:39 +00:00
|
|
|
package netlink
|
|
|
|
|
|
|
|
import (
|
2014-02-14 20:12:35 +00:00
|
|
|
"errors"
|
2013-12-23 23:39:39 +00:00
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
2014-02-14 20:12:35 +00:00
|
|
|
var (
|
|
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
|
|
)
|
|
|
|
|
2014-01-18 00:30:27 +00:00
|
|
|
func NetworkGetRoutes() ([]Route, error) {
|
2014-02-14 20:12:35 +00:00
|
|
|
return nil, ErrNotImplemented
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NetworkLinkAdd(name string, linkType string) error {
|
2014-02-14 20:12:35 +00:00
|
|
|
return ErrNotImplemented
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NetworkLinkUp(iface *net.Interface) error {
|
2014-02-14 20:12:35 +00:00
|
|
|
return ErrNotImplemented
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error {
|
2014-02-14 20:12:35 +00:00
|
|
|
return ErrNotImplemented
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
|
|
|
|
2014-05-17 07:06:29 +00:00
|
|
|
func AddRoute(destination, source, gateway, device string) error {
|
2014-02-14 20:12:35 +00:00
|
|
|
return ErrNotImplemented
|
2014-05-17 07:06:29 +00:00
|
|
|
}
|
2013-12-23 23:39:39 +00:00
|
|
|
|
2014-05-17 07:06:29 +00:00
|
|
|
func AddDefaultGw(ip, device string) error {
|
|
|
|
return ErrNotImplemented
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NetworkSetMTU(iface *net.Interface, mtu int) error {
|
2014-02-14 20:12:35 +00:00
|
|
|
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
|
2013-12-23 23:39:39 +00:00
|
|
|
}
|
2014-03-31 21:02:42 +00:00
|
|
|
|
|
|
|
func CreateBridge(name string, setMacAddr bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
2014-04-09 13:41:14 +00:00
|
|
|
|
|
|
|
func AddToBridge(iface, master *net.Interface) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|