mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Propage the vxlan device creation error in driver to libnetwork
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
parent
1d9c4ea422
commit
ba8714e585
1 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue