Allow network with --config-from to be --internal

The --internal netlabel is discarded now.

Signed-off-by: Pavel Matěja <pavel@verotel.cz>
This commit is contained in:
Pavel Matěja 2019-06-28 15:47:00 +02:00
parent 5c8048b363
commit afcb9fb299
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 {