Skip to content

Commit

Permalink
Merge pull request #1 from vareti/FixVRSAudit
Browse files Browse the repository at this point in the history
Fix VRS audit
  • Loading branch information
vareti authored Aug 27, 2017
2 parents ec52939 + aeaf29b commit f2a3de8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/vrsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,13 @@ func (nvrsc *NuageVRSClient) auditOVSDB() error {
}

for _, portName := range portNames {
containerInfo[nuageConfig.BridgePortKey] = portName
containerInfo[nuageConfig.UUIDKey] = entity
err := nvrsc.deleteEntries(containerInfo)
if err != nil {
log.Errorf("Deleting entries in audit failed with error %v", err)
if strings.HasPrefix(portName, nuageConfig.BasePrefix) { //manage ports with only libnetwork prefix
containerInfo[nuageConfig.BridgePortKey] = portName
containerInfo[nuageConfig.UUIDKey] = entity
err := nvrsc.deleteEntries(containerInfo)
if err != nil {
log.Errorf("Deleting entries in audit failed with error %v", err)
}
}
}
}
Expand Down

0 comments on commit f2a3de8

Please sign in to comment.