Merge branch '1.4'
This commit is contained in:
commit
497a104db7
1 file changed
+11
@@ -5,6 +5,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/docker/libnetwork/discoverapi"
|
||||||
"github.com/docker/libnetwork/ipamapi"
|
"github.com/docker/libnetwork/ipamapi"
|
||||||
"github.com/docker/libnetwork/netlabel"
|
"github.com/docker/libnetwork/netlabel"
|
||||||
"github.com/weaveworks/weave/api"
|
"github.com/weaveworks/weave/api"
|
||||||
@@ -97,3 +98,13 @@ func (i *ipam) ReleaseAddress(poolID string, address net.IP) error {
|
|||||||
Log.Debugln("ReleaseAddress", poolID, address)
|
Log.Debugln("ReleaseAddress", poolID, address)
|
||||||
return i.weave.ReleaseIP(address.String())
|
return i.weave.ReleaseIP(address.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Functions required by ipamapi "contract" but not actually used.
|
||||||
|
|
||||||
|
func (i *ipam) DiscoverNew(discoverapi.DiscoveryType, interface{}) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i *ipam) DiscoverDelete(discoverapi.DiscoveryType, interface{}) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
Reference in new issue
Block a user