Files
docker-cli/components/engine/docs/reference/commandline
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-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-15 09:55:29 +00:00
2016-09-12 19:10:45 +08: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-09-16 15:29:28 +02:00
2016-09-10 02:52:48 +08:00
2016-08-31 14:18:41 +08: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-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-07-07 20:43:18 +02: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-07-07 20:43:18 +02:00
2016-07-07 20:43:18 +02:00
2016-09-18 11:00:19 +08:00
2016-08-30 23:07:42 +08:00