mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
parent
d8e14c9efc
commit
316a652e6e
1 changed files with 3 additions and 2 deletions
|
@ -179,6 +179,7 @@ func (n *network) destroySandbox() {
|
|||
}
|
||||
}
|
||||
sbox.Destroy()
|
||||
n.setSandbox(nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -193,7 +194,7 @@ func (n *network) initSubnetSandbox(s *subnet) error {
|
|||
if err := sbox.AddInterface(brName, "br",
|
||||
sbox.InterfaceOptions().Address(s.gwIP),
|
||||
sbox.InterfaceOptions().Bridge(true)); err != nil {
|
||||
return fmt.Errorf("bridge creation in sandbox failed for subnet %q: %v", s.subnetIP.IP.String(), err)
|
||||
return fmt.Errorf("bridge creation in sandbox failed for subnet %q: %v", s.subnetIP.String(), err)
|
||||
}
|
||||
|
||||
vxlanName, err := createVxlan(n.vxlanID(s))
|
||||
|
@ -203,7 +204,7 @@ func (n *network) initSubnetSandbox(s *subnet) error {
|
|||
|
||||
if err := sbox.AddInterface(vxlanName, "vxlan",
|
||||
sbox.InterfaceOptions().Master(brName)); err != nil {
|
||||
return fmt.Errorf("vxlan interface creation failed for subnet %q: %v", s.subnetIP.IP.String(), err)
|
||||
return fmt.Errorf("vxlan interface creation failed for subnet %q: %v", s.subnetIP.String(), err)
|
||||
}
|
||||
|
||||
n.Lock()
|
||||
|
|
Loading…
Add table
Reference in a new issue