From d7cfd9b2f1fcd0fb08cde042d79c3c9022dbba4d Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Tue, 30 Jun 2015 11:08:16 -0700 Subject: [PATCH] Manually bring up the host side veth interface In preparation for the new update of vishvananda/netlink package we need to bringup the host veth interface manually. Signed-off-by: Jana Radhakrishnan --- drivers/bridge/bridge.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bridge/bridge.go b/drivers/bridge/bridge.go index 1523a72..a096098 100644 --- a/drivers/bridge/bridge.go +++ b/drivers/bridge/bridge.go @@ -926,6 +926,11 @@ func (d *driver) CreateEndpoint(nid, eid types.UUID, epInfo driverapi.EndpointIn } endpoint.macAddress = mac + // Up the host interface after finishing all netlink configuration + if err := netlink.LinkSetUp(host); err != nil { + return fmt.Errorf("could not set link up for host interface %s: %v", hostIfName, err) + } + // v6 address for the sandbox side pipe interface ipv6Addr = &net.IPNet{} if config.EnableIPv6 {