From 83d8a3527a8cee7a015e618b397ff6d254387ab1 Mon Sep 17 00:00:00 2001 From: Chun Chen Date: Wed, 13 Apr 2016 16:04:58 +0800 Subject: [PATCH] Fix broken CI because of newly introduced NetworkAllocate/NetworkFree api Signed-off-by: Chun Chen --- libnetwork/drivers/windows/windows.go | 8 ++++++++ libnetwork/drvregistry/drvregistry_test.go | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/libnetwork/drivers/windows/windows.go b/libnetwork/drivers/windows/windows.go index 95467a8615..c455484b87 100644 --- a/libnetwork/drivers/windows/windows.go +++ b/libnetwork/drivers/windows/windows.go @@ -560,6 +560,14 @@ func (d *driver) RevokeExternalConnectivity(nid, eid string) error { 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) Type() string { return d.name } diff --git a/libnetwork/drvregistry/drvregistry_test.go b/libnetwork/drvregistry/drvregistry_test.go index d5d873c4c8..92a4108580 100644 --- a/libnetwork/drvregistry/drvregistry_test.go +++ b/libnetwork/drvregistry/drvregistry_test.go @@ -73,6 +73,14 @@ func (m *mockDriver) RevokeExternalConnectivity(nid, eid string) error { return nil } +func (m *mockDriver) NetworkAllocate(id string, option map[string]interface{}, ipV4Data, ipV6Data []driverapi.IPAMData) (map[string]string, error) { + return nil, nil +} + +func (m *mockDriver) NetworkFree(id string) error { + return nil +} + func getNew(t *testing.T) *DrvRegistry { reg, err := New(nil, nil, nil, nil) if err != nil {