Browse code

Add missing network.internal.

Signed-off-by: Daniel Nephin <dnephin@docker.com>

Daniel Nephin authored on 2017/01/21 02:53:19
Showing 3 changed files
... ...
@@ -63,9 +63,10 @@ func Networks(
63 63
 		}
64 64
 
65 65
 		createOpts := types.NetworkCreate{
66
-			Labels:  AddStackLabel(namespace, network.Labels),
67
-			Driver:  network.Driver,
68
-			Options: network.DriverOpts,
66
+			Labels:   AddStackLabel(namespace, network.Labels),
67
+			Driver:   network.Driver,
68
+			Options:  network.DriverOpts,
69
+			Internal: network.Internal,
69 70
 		}
70 71
 
71 72
 		if network.Ipam.Driver != "" || len(network.Ipam.Config) > 0 {
... ...
@@ -308,6 +308,7 @@
308 308
           },
309 309
           "additionalProperties": false
310 310
         },
311
+        "internal": {"type": "boolean"},
311 312
         "labels": {"$ref": "#/definitions/list_or_dict"}
312 313
       },
313 314
       "additionalProperties": false
... ...
@@ -204,6 +204,7 @@ type NetworkConfig struct {
204 204
 	DriverOpts map[string]string `mapstructure:"driver_opts"`
205 205
 	Ipam       IPAMConfig
206 206
 	External   External
207
+	Internal   bool
207 208
 	Labels     map[string]string `compose:"list_or_dict_equals"`
208 209
 }
209 210