mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
On network creation, reset mangle rule
- When creating a non encrypted overlay network, make sure no encryption related mangle rule from stale network is on the way. Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
5fee2c5be9
commit
147b646e79
1 changed files with 7 additions and 0 deletions
|
@ -140,6 +140,13 @@ func (d *driver) CreateNetwork(id string, option map[string]interface{}, nInfo d
|
|||
return fmt.Errorf("failed to update data store for network %v: %v", n.id, err)
|
||||
}
|
||||
|
||||
// Make sure no rule is on the way from any stale secure network
|
||||
if !n.secure {
|
||||
for _, vni := range vnis {
|
||||
programMangle(vni, false)
|
||||
}
|
||||
}
|
||||
|
||||
if nInfo != nil {
|
||||
if err := nInfo.TableEventRegister(ovPeerTable); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue