Merge pull request #2414 from lemrouch/2413-fix

Allow network with --config-from to be --internal
This commit is contained in:
elangovan sivanandam 2019-07-15 16:24:19 -04:00 committed by GitHub
commit d07c890b48
1 changed files with 1 additions and 0 deletions

View File

@ -801,6 +801,7 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ...
if err = t.applyConfigurationTo(network); err != nil {
return nil, types.InternalErrorf("Failed to apply configuration: %v", err)
}
network.generic[netlabel.Internal] = network.internal
defer func() {
if err == nil {
if err := t.getEpCnt().IncEndpointCnt(); err != nil {