mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
Merge pull request #1504 from aboch/ports
Reset endpoint port info on connectivity revoke in bridge driver
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
machine:
|
||||
environment:
|
||||
GODIST: "go1.7.1.linux-amd64.tar.gz"
|
||||
services:
|
||||
- docker
|
||||
|
||||
|
||||
@@ -1318,6 +1318,12 @@ func (d *driver) RevokeExternalConnectivity(nid, eid string) error {
|
||||
logrus.Warn(err)
|
||||
}
|
||||
|
||||
endpoint.portMapping = nil
|
||||
|
||||
if err = d.storeUpdate(endpoint); err != nil {
|
||||
return fmt.Errorf("failed to update bridge endpoint %s to store: %v", endpoint.id[0:7], err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user