Improve naming of 'release' function in IPAM API

This commit is contained in:
Bryan Boreham committed 2016-03-07 16:24:53 +00:00
1 parent b83f4a00ed
commit 0009b05635
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -38,8 +38,8 @@ func (client *Client) ClaimIP(ID string, addr net.IP) error {
return err
}
// release an IP which is no longer needed
func (client *Client) ReleaseIP(ID string) error {
// release all IPs owned by an ID
func (client *Client) ReleaseIPsFor(ID string) error {
_, err := client.ipamOp(ID, "DELETE")
return err
}