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 6ea9dfcfe2
commit bb736c4c78
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)
if restore {
n.restoreSubnetSandbox(s, brName, vxlanName)
if err := n.restoreSubnetSandbox(s, brName, vxlanName); err != nil {
return err
}
} else {
n.setupSubnetSandbox(s, brName, vxlanName)
if err := n.setupSubnetSandbox(s, brName, vxlanName); err != nil {
return err
}
}
n.Lock()