Merge pull request #385 from amshinde/always-bind-back-physical-interfaces

network: Always bind back physical interfaces
This commit is contained in:
Sebastien Boeuf
2018-06-18 09:24:58 -07:00
committed by GitHub
7 changed files with 57 additions and 42 deletions

View File

@@ -923,11 +923,7 @@ func (s *Sandbox) createNetwork() error {
}
func (s *Sandbox) removeNetwork() error {
if s.networkNS.NetNsCreated {
return s.network.remove(s, s.networkNS)
}
return nil
return s.network.remove(s, s.networkNS, s.networkNS.NetNsCreated)
}
// startVM starts the VM.