Merge pull request #1504 from aboch/ports
Reset endpoint port info on connectivity revoke in bridge driver
This commit is contained in:
commit
3d08c3099a
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue