Propage the vxlan device creation error in driver to libnetwork

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
Santhosh Manohar 2016-08-21 15:52:40 -07:00
parent 1d9c4ea422
commit ba8714e585
1 changed files with 6 additions and 2 deletions

View File

@ -500,9 +500,13 @@ func (n *network) initSubnetSandbox(s *subnet, restore bool) error {
vxlanName := n.generateVxlanName(s) vxlanName := n.generateVxlanName(s)
if restore { if restore {
n.restoreSubnetSandbox(s, brName, vxlanName) if err := n.restoreSubnetSandbox(s, brName, vxlanName); err != nil {
return err
}
} else { } else {
n.setupSubnetSandbox(s, brName, vxlanName) if err := n.setupSubnetSandbox(s, brName, vxlanName); err != nil {
return err
}
} }
n.Lock() n.Lock()