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