Skip to content

Commit

Permalink
Merge pull request #1785 from abhinandanpb/master
Browse files Browse the repository at this point in the history
Removing the override for ipamdriver for local scope networks in
  • Loading branch information
mavenugo authored May 31, 2017
2 parents cfdc76d + 21553c8 commit 2846bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,6 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ...
if network.configOnly {
network.scope = datastore.LocalScope
network.networkType = "null"
network.ipamType = ""
goto addToStore
}

Expand Down
3 changes: 3 additions & 0 deletions network.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ func (n *network) applyConfigurationTo(to *network) error {
}
}
}
if len(n.ipamType) != 0 {
to.ipamType = n.ipamType
}
if len(n.ipamOptions) > 0 {
to.ipamOptions = make(map[string]string, len(n.ipamOptions))
for k, v := range n.ipamOptions {
Expand Down

0 comments on commit 2846bb4

Please sign in to comment.