Implement GetCapabilities on IPAM interface to eliminate warning message

This commit is contained in:
Bryan Boreham committed 2017-04-12 10:19:06 +00:00
1 parent 53cc270f47
commit 090878c157
2 files changed
+24

No files matched your search

+5
View File
@@ -19,6 +19,11 @@ func NewIpam(weave *api.Client) *Ipam {
return &Ipam{weave: weave}
}
func (i *Ipam) GetCapabilities() (RequiresMACAddress bool, RequiresRequestReplay bool, err error) {
i.logReq("GetCapabilities")
return false, false, nil
}
func (i *Ipam) GetDefaultAddressSpaces() (string, string, error) {
i.logReq("GetDefaultAddressSpaces")
return "weavelocal", "weaveglobal", nil