1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add new functions to unsupported file

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-02-14 12:12:35 -08:00
parent 3a7f69a3d8
commit 17719cab91

View file

@ -3,31 +3,59 @@
package netlink
import (
"fmt"
"errors"
"net"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
func NetworkGetRoutes() ([]Route, error) {
return nil, fmt.Errorf("Not implemented")
return nil, ErrNotImplemented
}
func NetworkLinkAdd(name string, linkType string) error {
return fmt.Errorf("Not implemented")
return ErrNotImplemented
}
func NetworkLinkUp(iface *net.Interface) error {
return fmt.Errorf("Not implemented")
return ErrNotImplemented
}
func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error {
return fmt.Errorf("Not implemented")
return ErrNotImplemented
}
func AddDefaultGw(ip net.IP) error {
return fmt.Errorf("Not implemented")
return ErrNotImplemented
}
func NetworkSetMTU(iface *net.Interface, mtu int) error {
return fmt.Errorf("Not implemented")
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
}