Removing the override for ipamdriver for local scope networks in
@@ -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
}
@@ -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 {