opts: remove alias for ipamutils

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-03 12:27:40 +02:00
parent 1f359403fe
commit 1ec92ea60b

View File

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