plugins/ptp: allow host veth to be UP

This commit is contained in:
Stefan Junker
2015-09-23 11:03:22 +02:00
parent 6737bc8207
commit 231d2d5a27
2 changed files with 7 additions and 7 deletions

View File

@ -128,6 +128,10 @@ func setupHostVeth(vethName string, ipConf *types.IPConfig) error {
return fmt.Errorf("failed to lookup %q: %v", vethName, err)
}
if err = netlink.LinkSetUp(veth); err != nil {
return fmt.Errorf("failed to set %q up: %v", vethName, err)
}
// TODO(eyakubovich): IPv6
ipn := &net.IPNet{
IP: ipConf.Gateway,