зеркало из https://github.com/docker/engine-api.git
Change IPAM driver type to pointer to avoid default value
This fix tries to address the issue raised in 368 and docker/25735 where NetworkCreate needs to set up the IPAM driver type. Otherwise an error will be returned. This fix change IPAM driver type to pointer so that `/networks/create` does not the explicit specification of IPAM driver any more. This fix fixes 368. This fix is related to docker/25735. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Родитель
c9fd33c910
Коммит
7803ba3c0b
|
@ -475,7 +475,7 @@ type NetworkCreate struct {
|
||||||
CheckDuplicate bool
|
CheckDuplicate bool
|
||||||
Driver string
|
Driver string
|
||||||
EnableIPv6 bool
|
EnableIPv6 bool
|
||||||
IPAM network.IPAM
|
IPAM *network.IPAM
|
||||||
Internal bool
|
Internal bool
|
||||||
Options map[string]string
|
Options map[string]string
|
||||||
Labels map[string]string
|
Labels map[string]string
|
||||||
|
|
Загрузка…
Ссылка в новой задаче