libnet: move ipam pkg to ipam/defaultipam
All drivers except the default ipam driver are stored in ipams/. Since `default` isn't a valid Go pkg name, this package is renamed to `defaultipam`, following `windowsipam` example. Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
dbc961a3d3
commit
cf516e17de
6 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
package builtin
|
||||
|
||||
import (
|
||||
"github.com/docker/docker/libnetwork/ipam"
|
||||
"github.com/docker/docker/libnetwork/ipamapi"
|
||||
"github.com/docker/docker/libnetwork/ipams/defaultipam"
|
||||
"github.com/docker/docker/libnetwork/ipamutils"
|
||||
)
|
||||
|
||||
|
@ -19,7 +19,7 @@ func registerBuiltin(ic ipamapi.Registerer, addressPools []*ipamutils.NetworkToS
|
|||
}
|
||||
}
|
||||
|
||||
a, err := ipam.NewAllocator(localAddressPools, ipamutils.GetGlobalScopeDefaultNetworks())
|
||||
a, err := defaultipam.NewAllocator(localAddressPools, ipamutils.GetGlobalScopeDefaultNetworks())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package ipam
|
||||
package defaultipam
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package ipam
|
||||
package defaultipam
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package ipam
|
||||
package defaultipam
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package ipam
|
||||
package defaultipam
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package ipam
|
||||
package defaultipam
|
||||
|
||||
import (
|
||||
"fmt"
|
Loading…
Add table
Reference in a new issue