summaryrefslogtreecommitdiff
path: root/libnetwork/driverapi
diff options
context:
space:
mode:
authorPradip Dhara <pradipd@microsoft.com>2019-08-07 14:28:54 -0700
committerPradip Dhara <pradipd@microsoft.com>2019-08-23 09:58:29 -0700
commitf366d37c72a79b2804a8066a580fa2e93114ce46 (patch)
tree325c81b5eba7f78ea57eb2e60dc803e18395cb7f /libnetwork/driverapi
parentbe6a639aca126b58fffb5ac23bf2b56ba2468a89 (diff)
downloaddocker-f366d37c72a79b2804a8066a580fa2e93114ce46.tar.gz
Updating IPAM config with results from HNS create network call.
In windows HNS manages IPAM. If the user does not specify a subnet, HNS will choose one for them. However, in order for the IPAM to show up in the output of "docker inspect", we need to update the network IPAMv4Config field. Signed-off-by: Pradip Dhara <pradipd@microsoft.com>
Diffstat (limited to 'libnetwork/driverapi')
-rw-r--r--libnetwork/driverapi/driverapi.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnetwork/driverapi/driverapi.go b/libnetwork/driverapi/driverapi.go
index 3d667ceb7e..ea1175299e 100644
--- a/libnetwork/driverapi/driverapi.go
+++ b/libnetwork/driverapi/driverapi.go
@@ -95,6 +95,11 @@ type NetworkInfo interface {
// TableEventRegister registers driver interest in a given
// table name.
TableEventRegister(tableName string, objType ObjectType) error
+
+ // UpdateIPamConfig updates the networks IPAM configuration
+ // based on information from the driver. In windows, the OS (HNS) chooses
+ // the IP address space if the user does not specify an address space.
+ UpdateIpamConfig(ipV4Data []IPAMData)
}
// InterfaceInfo provides a go interface for drivers to retrieve