From d795bc7d53db4b9e9194d0570d65e22d39f58384 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Fri, 30 Oct 2015 12:54:13 -0700 Subject: [PATCH] Modify IPAMConfig structure json tags - So that it complies with docker convention for inspect Signed-off-by: Alessandro Boch --- daemon/network/settings.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/daemon/network/settings.go b/daemon/network/settings.go index 2fe23c7866..ddc87a7c72 100644 --- a/daemon/network/settings.go +++ b/daemon/network/settings.go @@ -10,16 +10,16 @@ type Address struct { // IPAM represents IP Address Management type IPAM struct { - Driver string `json:"driver"` - Config []IPAMConfig `json:"config"` + Driver string + Config []IPAMConfig } // IPAMConfig represents IPAM configurations type IPAMConfig struct { - Subnet string `json:"subnet,omitempty"` - IPRange string `json:"ip_range,omitempty"` - Gateway string `json:"gateway,omitempty"` - AuxAddress map[string]string `json:"auxiliary_address,omitempty"` + Subnet string `json:",omitempty"` + IPRange string `json:",omitempty"` + Gateway string `json:",omitempty"` + AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"` } // Settings stores configuration details about the daemon network config