libnet/ipams/windowsipam: that driver knows its name
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
c638201de0
commit
a7e5450a94
2 changed files with 3 additions and 3 deletions
|
@ -15,5 +15,5 @@ func Register(r ipamapi.Registerer, addressPools []*ipamutils.NetworkToSplit) er
|
|||
return err
|
||||
}
|
||||
|
||||
return windowsipam.Register(windowsipam.DefaultIPAM, r)
|
||||
return windowsipam.Register(r)
|
||||
}
|
||||
|
|
|
@ -24,8 +24,8 @@ var defaultPool = netip.MustParsePrefix("0.0.0.0/0")
|
|||
type allocator struct{}
|
||||
|
||||
// Register registers the built-in ipam service with libnetwork
|
||||
func Register(ipamName string, r ipamapi.Registerer) error {
|
||||
return r.RegisterIpamDriver(ipamName, &allocator{})
|
||||
func Register(r ipamapi.Registerer) error {
|
||||
return r.RegisterIpamDriver(DefaultIPAM, &allocator{})
|
||||
}
|
||||
|
||||
func (a *allocator) GetDefaultAddressSpaces() (string, string, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue