Sebastiaan van Stijn
6b1c398ebc
Fix incorrect aux-address examples and test
The (host)name for aux-addresses should
be unique, otherwise later values overwrite
earlier values.
Before this change, the example command
would send this API request;
{
"Attachable": false,
"CheckDuplicate": true,
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Config": [
{
"Gateway": "192.168.0.100",
"IPRange": "192.168.1.0/24",
"Subnet": "192.168.0.0/16"
},
{
"AuxiliaryAddresses": {
"a": "192.170.1.5",
"b": "192.170.1.6"
},
"Gateway": "192.170.0.100",
"Subnet": "192.170.0.0/16"
}
],
"Driver": "default",
"Options": {
}
},
"Internal": false,
"Labels": {
},
"Name": "my-multihost-network",
"Options": {
}
}
After this change, the request looks
like this (all aux-addresses preserved);
{
"Attachable": false,
"CheckDuplicate": true,
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Config": [
{
"AuxiliaryAddresses": {
"my-router": "192.168.1.5",
"my-switch": "192.168.1.6"
},
"Gateway": "192.168.0.100",
"IPRange": "192.168.1.0/24",
"Subnet": "192.168.0.0/16"
},
{
"AuxiliaryAddresses": {
"my-printer": "192.170.1.5",
"my-nas": "192.170.1.6"
},
"Gateway": "192.170.0.100",
"Subnet": "192.170.0.0/16"
}
],
"Driver": "default",
"Options": {
}
},
"Internal": false,
"Labels": {
},
"Name": "my-multihost-network",
"Options": {
}
}
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: fd7161bb3061e2e2f56faed1a4ba1f7a887627bf
Component: engine
2016-09-27 01:12:29 +02:00
..
2016-09-14 22:28:09 +08:00
2016-09-23 11:30:06 -07:00
2016-09-20 14:49:45 +02:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-15 16:09:24 +02:00
2016-07-22 10:38:56 +02:00
2016-07-07 20:43:18 +02:00
2015-06-15 13:19:38 -07:00
2016-09-19 17:33:50 -07:00
2016-09-15 09:55:29 +00:00
2016-09-12 19:10:45 +08:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-23 09:50:24 +02:00
2016-09-18 11:00:19 +08:00
2016-09-12 19:10:45 +08:00
2016-07-31 00:06:18 +08:00
2016-07-07 20:43:18 +02:00
2016-09-05 04:44:18 +00:00
2016-07-07 20:43:18 +02:00
2016-09-16 15:29:28 +02:00
2016-06-30 14:30:11 -07:00
2016-08-12 13:17:24 -07:00
2016-09-27 01:12:29 +02:00
2016-08-12 13:17:24 -07:00
2016-09-08 17:27:33 +08:00
2016-09-05 08:24:22 -07:00
2016-08-12 13:17:24 -07:00
2016-07-31 00:06:18 +08:00
2016-08-09 13:04:35 +02:00
2016-07-27 11:06:42 -07:00
2016-07-31 00:06:18 +08:00
2016-09-10 02:52:48 +08:00
2016-09-21 13:05:33 -07:00
2016-07-27 11:06:42 -07:00
2016-07-07 20:43:18 +02:00
2016-08-25 20:42:49 -07:00
2016-08-25 20:42:49 -07:00
2016-08-31 14:42:03 +02:00
2016-09-14 10:21:31 -07:00
2016-08-31 14:18:41 +08:00
2016-09-01 12:21:52 +08:00
2016-07-07 20:43:18 +02:00
2016-08-18 11:25:27 +08:00
2016-07-07 20:43:18 +02:00
2016-09-18 11:00:19 +08:00
2016-09-01 14:48:02 +08:00
2016-08-30 23:07:42 +08:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-23 10:10:11 +02:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-19 13:57:39 +02:00
2016-09-19 16:28:19 -04:00
2016-07-27 11:06:42 -07:00
2016-08-16 10:19:11 -04:00
2016-09-02 17:23:59 +08:00
2016-07-27 11:06:42 -07:00
2016-09-19 12:12:54 +02:00
2016-09-22 19:31:39 +00:00
2016-09-22 19:31:39 +00:00
2016-09-22 19:31:39 +00:00
2016-09-22 19:31:39 +00:00
2016-09-22 19:31:39 +00:00
2016-09-22 19:31:39 +00:00
2016-07-07 20:43:18 +02:00
2016-09-26 09:26:48 +03:00
2016-07-07 20:43:18 +02:00
2016-08-30 11:04:41 -07:00
2016-08-19 09:44:22 +08:00
2016-08-30 11:04:41 -07:00
2016-09-21 13:05:33 -07:00
2016-08-05 16:51:07 -07:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-18 11:00:19 +08:00
2016-07-07 20:43:18 +02:00
2016-08-25 14:20:06 -07:00
2016-07-07 20:43:18 +02:00
2016-08-25 14:20:06 -07:00
2016-08-18 18:01:25 -07:00
2016-08-30 23:07:42 +08:00