Merge pull request #1504 from aboch/ports

Reset endpoint port info on connectivity revoke in bridge driver
This commit is contained in:
Madhu Venugopal 2016-10-13 11:33:41 -07:00 committed by GitHub
commit 3d08c3099a
2 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,6 @@
machine:
environment:
GODIST: "go1.7.1.linux-amd64.tar.gz"
services:
- docker

View file

@ -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
}