mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
opts: remove alias for ipamutils
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -8,12 +8,12 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
types "github.com/docker/docker/libnetwork/ipamutils"
|
||||
"github.com/docker/docker/libnetwork/ipamutils"
|
||||
)
|
||||
|
||||
// PoolsOpt is a Value type for parsing the default address pools definitions
|
||||
type PoolsOpt struct {
|
||||
Values []*types.NetworkToSplit
|
||||
Values []*ipamutils.NetworkToSplit
|
||||
}
|
||||
|
||||
// UnmarshalJSON fills values structure info from JSON input
|
||||
@@ -29,7 +29,7 @@ func (p *PoolsOpt) Set(value string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
poolsDef := types.NetworkToSplit{}
|
||||
poolsDef := ipamutils.NetworkToSplit{}
|
||||
|
||||
for _, field := range fields {
|
||||
// TODO(thaJeztah): this should not be case-insensitive.
|
||||
@@ -77,7 +77,7 @@ func (p *PoolsOpt) String() string {
|
||||
}
|
||||
|
||||
// Value returns the mounts
|
||||
func (p *PoolsOpt) Value() []*types.NetworkToSplit {
|
||||
func (p *PoolsOpt) Value() []*ipamutils.NetworkToSplit {
|
||||
return p.Values
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user