Skip to content

Commit

Permalink
Allow network with --config-from to be --internal
Browse files Browse the repository at this point in the history
The --internal netlabel is discarded now.

Signed-off-by: Pavel Matěja <[email protected]>
  • Loading branch information
lemrouch committed Jul 8, 2019
1 parent b5e7180 commit f1df445
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f1df445

Please sign in to comment.