Skip to content

Commit

Permalink
libnet/ipams/windowsipam: that driver knows its name
Browse files Browse the repository at this point in the history
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
  • Loading branch information
akerouanton committed Apr 26, 2024
1 parent 8cec9f0 commit ae9e431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libnetwork/ipams/drivers_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions libnetwork/ipams/windowsipam/windowsipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ae9e431

Please sign in to comment.