mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Actually retry LinkSetUp
Signed-off-by: Alexander Polakov <plhk@sdf.org>
This commit is contained in:
parent
ae3f09faeb
commit
daf4c97f7a
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ func (n *networkNamespace) AddInterface(srcName, dstPrefix string, options ...If
|
|||
for err = nlh.LinkSetUp(iface); err != nil && cnt < 3; cnt++ {
|
||||
log.Debugf("retrying link setup because of: %v", err)
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
err = nlh.LinkSetUp(iface)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to set link up: %v", err)
|
||||
|
|
Loading…
Reference in a new issue