summaryrefslogtreecommitdiff
path: root/libnetwork/drivers/remote
diff options
context:
space:
mode:
authorJana Radhakrishnan <mrjana@docker.com>2016-02-26 11:53:13 -0800
committerJana Radhakrishnan <mrjana@docker.com>2016-04-11 16:38:22 -0700
commitb6d5c12ea2d33aff3e2f5b4bf5b7e373568e940e (patch)
tree97fd74c78de1b9c3af640bd715bb56b6cdc13d12 /libnetwork/drivers/remote
parent02511234119eaf36dc98739d3131afcae2d03c21 (diff)
downloaddocker-b6d5c12ea2d33aff3e2f5b4bf5b7e373568e940e.tar.gz
Add NetworkAllocate/Free to driver api
Added NetworkAllocate and NetworkFree apis to the list of driver apis. The intention of the api is to provide a centralized way of allocating and freeing network resources for a network which is cross-host. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
Diffstat (limited to 'libnetwork/drivers/remote')
-rw-r--r--libnetwork/drivers/remote/driver.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libnetwork/drivers/remote/driver.go b/libnetwork/drivers/remote/driver.go
index e3f2cd58e2..5400e69649 100644
--- a/libnetwork/drivers/remote/driver.go
+++ b/libnetwork/drivers/remote/driver.go
@@ -83,6 +83,14 @@ func (d *driver) call(methodName string, arg interface{}, retVal maybeError) err
return nil
}
+func (d *driver) NetworkAllocate(id string, option map[string]interface{}, ipV4Data, ipV6Data []driverapi.IPAMData) (map[string]string, error) {
+ return nil, types.NotImplementedErrorf("not implemented")
+}
+
+func (d *driver) NetworkFree(id string) error {
+ return types.NotImplementedErrorf("not implemented")
+}
+
func (d *driver) CreateNetwork(id string, options map[string]interface{}, ipV4Data, ipV6Data []driverapi.IPAMData) error {
create := &api.CreateNetworkRequest{
NetworkID: id,