host-local: make Store interface support to get ip list by id

Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
This commit is contained in:
Bruce Ma
2019-06-01 17:37:24 +08:00
parent 0eddc554c0
commit 7f8ea631e5
3 changed files with 41 additions and 1 deletions

View File

@ -24,4 +24,5 @@ type Store interface {
LastReservedIP(rangeID string) (net.IP, error)
Release(ip net.IP) error
ReleaseByID(id string, ifname string) error
GetByID(id string, ifname string) []net.IP
}