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-12 12:55:26 -07:00
2016-09-07 16:29:02 -07:00
2016-09-08 11:16:27 -07:00
2016-07-28 20:14:14 -04:00
2016-09-12 12:45:08 -05:00
2016-09-07 21:20:41 -07:00
2016-09-07 21:20:41 -07:00
2016-09-07 17:30:35 -04:00
2016-06-13 22:16:18 -07:00
2016-09-07 11:05:58 -07:00
2016-09-20 14:15:37 +00:00
2016-09-16 11:56:15 -07:00
2016-06-07 18:45:27 -07:00
2016-08-30 15:03:18 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-07-11 14:52:27 +08:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 11:56:15 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-23 15:12:36 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-29 15:57:27 -07:00
2016-08-23 15:11:46 -04:00
2016-08-23 21:08:23 -07:00
2016-09-23 11:30:34 -07:00
2016-08-23 15:11:46 -04:00
2016-09-13 16:20:10 -04:00
2016-08-30 09:48:18 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:38:19 -07:00
2016-08-25 14:20:06 -07:00
2016-09-08 17:47:43 -07:00
2016-08-12 12:33:42 +01:00
2016-09-19 17:33:50 -07:00
2016-08-30 22:24:52 +02:00
2016-08-30 15:03:18 -07:00
2016-09-12 09:20:27 -07:00
2016-08-03 12:22:07 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-23 00:26:27 +02:00
2016-08-30 09:31:33 -07:00
2016-08-30 15:20:55 -07:00
2016-09-01 16:28:22 -07:00
2016-09-16 10:05:21 -07:00
2016-06-14 12:23:45 -07:00
2016-09-07 11:05:58 -07:00
2016-08-23 15:11:46 -04:00
2016-09-07 09:45:42 +02:00
2016-05-06 20:42:20 -04:00
2016-06-02 17:17:22 +08:00
2016-09-27 01:12:29 +02:00
2016-05-10 11:28:00 -07:00
2016-04-14 16:22:16 -07:00
2016-09-15 13:50:57 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 09:45:42 +02:00
2016-09-09 11:40:34 -07:00
2016-08-10 08:36:09 +08:00
2016-08-08 11:40:20 +08:00
2016-08-25 16:29:08 -07:00
2016-08-09 09:42:23 +08:00
2016-09-07 17:30:35 -04:00
2016-09-26 13:08:05 -07:00
2016-09-19 17:33:50 -07:00
2016-08-10 08:36:09 +08:00
2016-08-10 08:36:09 +08:00
2016-06-03 19:50:01 +02:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 16:29:02 -07:00
2016-09-22 19:31:39 +00:00
2016-08-26 00:16:49 +08:00
2016-04-13 16:36:34 -04:00
2016-04-10 15:39:28 +08:00
2016-09-24 11:59:26 -07:00
2016-06-01 09:44:25 -07:00
2016-09-07 16:29:02 -07:00
2016-08-16 15:36:13 +08:00
2016-09-07 11:05:58 -07:00
2016-09-05 13:02:13 +03:00
2016-08-25 14:20:06 -07:00
2016-03-25 10:02:52 -04:00
2016-09-07 16:29:02 -07:00
2016-06-01 22:25:17 +08:00
2016-08-23 15:12:36 -04:00
2016-07-28 20:14:14 -04:00
2016-08-23 09:01:25 +08:00
2016-09-08 11:16:27 -07:00
2016-09-12 07:36:52 +00:00
2016-09-12 12:55:26 -07:00
2016-09-07 17:30:35 -04:00
2016-08-10 08:36:09 +08:00
2016-07-29 12:16:03 -04:00
2016-09-09 13:23:41 -04:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-02 19:07:54 -07:00
2016-08-23 15:11:46 -04:00