Merge pull request #1785 from abhinandanpb/master

Removing the override for ipamdriver for local scope networks in
This commit is contained in:
Madhu Venugopal 2017-05-30 21:27:39 -07:00 committed by GitHub
commit 7d9c6e89f8
2 changed files with 3 additions and 1 deletions

View File

@ -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
}

View File

@ -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 {