diff --git a/controller.go b/controller.go index a182cdc8e9..e78fc559d8 100644 --- a/controller.go +++ b/controller.go @@ -798,9 +798,11 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ... if err != nil { return nil, types.NotFoundErrorf("configuration network %q does not exist", network.configFrom) } + internal := network.internal if err = t.applyConfigurationTo(network); err != nil { return nil, types.InternalErrorf("Failed to apply configuration: %v", err) } + network.generic[netlabel.Internal] = internal defer func() { if err == nil { if err := t.getEpCnt().IncEndpointCnt(); err != nil {