1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1106 from chenchun/fix_ci

Fix broken CI because of newly introduced NetworkAllocate/NetworkFree…
This commit is contained in:
Alessandro Boch 2016-04-13 07:05:43 -07:00
commit 089c5ab18a
2 changed files with 16 additions and 0 deletions

View file

@ -560,6 +560,14 @@ func (d *driver) RevokeExternalConnectivity(nid, eid string) error {
return nil 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 { func (d *driver) Type() string {
return d.name return d.name
} }

View file

@ -73,6 +73,14 @@ func (m *mockDriver) RevokeExternalConnectivity(nid, eid string) error {
return nil 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 { func getNew(t *testing.T) *DrvRegistry {
reg, err := New(nil, nil, nil, nil) reg, err := New(nil, nil, nil, nil)
if err != nil { if err != nil {