Expand listener skeleton to support IPAM driver

This commit is contained in:
Bryan Boreham committed 2015-12-08 16:58:55 +00:00
1 parent 9f86e2ba43
commit c1d2c159f0
3 files changed
+111 -22

No files matched your search

-3
View File
@@ -3,12 +3,9 @@ package api
import (
"fmt"
"net"
. "github.com/weaveworks/weave/common"
)
func (client *Client) ipamOp(ID string, op string) (*net.IPNet, error) {
Log.Debugf("IPAM operation %s for %s", op, ID)
ip, err := httpVerb(op, fmt.Sprintf("%s/ip/%s", client.baseUrl, ID), nil)
if err != nil {
return nil, err