Update the libnetwork devref
It looks the pool prefix length is wrong. This commit fixed it. Change-Id: I4c044e7eebd1aed15651213a6f90add210553fd9
This commit is contained in:
parent
4224ccce3b
commit
4727039006
@ -79,7 +79,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
"AddressSpace": "global_scope",
|
"AddressSpace": "global_scope",
|
||||||
"Pool": "10.0.0.0/16",
|
"Pool": "10.0.0.0/16",
|
||||||
"SubPool": "10.0.0.0/24",
|
"SubPool": "10.0.0.0/24",
|
||||||
"Options": null
|
"Options": {},
|
||||||
"V6": false
|
"V6": false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,8 +89,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
|
|
||||||
{
|
{
|
||||||
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
||||||
"Pool": "10.0.0.0/16",
|
"Pool": "10.0.0.0/24",
|
||||||
"Data": {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
If the ``--gateway`` was specified like the command above, another HTTP POST
|
If the ``--gateway`` was specified like the command above, another HTTP POST
|
||||||
@ -99,14 +98,14 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
{
|
{
|
||||||
"Address": "10.0.0.1",
|
"Address": "10.0.0.1",
|
||||||
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
||||||
"Options": null,
|
"Options": {"RequestAddressType": "com.docker.network.gateway"},
|
||||||
}
|
}
|
||||||
|
|
||||||
As the IPAM driver Kuryr allocates a requested IP address and returns the
|
As the IPAM driver Kuryr allocates a requested IP address and returns the
|
||||||
following response::
|
following response::
|
||||||
|
|
||||||
{
|
{
|
||||||
"Address": "10.0.0.1/16",
|
"Address": "10.0.0.1/24",
|
||||||
"Data": {}
|
"Data": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,12 +115,12 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
{
|
{
|
||||||
"NetworkID": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
"NetworkID": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
||||||
"IPv4Data": [{
|
"IPv4Data": [{
|
||||||
"Pool": "10.0.0.0/16",
|
"Pool": "10.0.0.0/24",
|
||||||
"Gateway": "10.0.0.1/16",
|
"Gateway": "10.0.0.1/24",
|
||||||
"AddressSpace": ""
|
"AddressSpace": ""
|
||||||
}],
|
}],
|
||||||
"IPv6Data": [],
|
"IPv6Data": [],
|
||||||
"Options": {"com.docker.network.generic": {}}
|
"Options": {"com.docker.network.enable_ipv6", false, "com.docker.network.generic": {}}
|
||||||
}
|
}
|
||||||
|
|
||||||
The Kuryr remote network driver will then generate a Neutron API request to
|
The Kuryr remote network driver will then generate a Neutron API request to
|
||||||
@ -141,13 +140,13 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
{
|
{
|
||||||
"Address": "",
|
"Address": "",
|
||||||
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
|
||||||
"Options": null,
|
"Options": {},
|
||||||
}
|
}
|
||||||
|
|
||||||
The IPAM driver Kuryr sends a port creation request to neutron and returns the following response with neutron provided ip address::
|
The IPAM driver Kuryr sends a port creation request to neutron and returns the following response with neutron provided ip address::
|
||||||
|
|
||||||
{
|
{
|
||||||
"Address": "10.0.0.2/16",
|
"Address": "10.0.0.2/24",
|
||||||
"Data": {}
|
"Data": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +159,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
"Interface": {
|
"Interface": {
|
||||||
"AddressIPv6": "",
|
"AddressIPv6": "",
|
||||||
"MacAddress": "",
|
"MacAddress": "",
|
||||||
"Address": "10.0.0.2/16"
|
"Address": "10.0.0.2/24"
|
||||||
},
|
},
|
||||||
"Options": {
|
"Options": {
|
||||||
"com.docker.network.endpoint.exposedports": [],
|
"com.docker.network.endpoint.exposedports": [],
|
||||||
@ -218,28 +217,35 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
3. A user requests information about the network::
|
3. A user requests information about the network::
|
||||||
|
|
||||||
$ sudo docker network inspect foo
|
$ sudo docker network inspect foo
|
||||||
{
|
[
|
||||||
"Name": "foo",
|
{
|
||||||
"Id": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
"Name": "foo",
|
||||||
"Scope": "local",
|
"Id": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
||||||
"Driver": "kuryr",
|
"Scope": "local",
|
||||||
"IPAM": {
|
"Driver": "kuryr",
|
||||||
"Driver": "default",
|
"EnableIPv6": false,
|
||||||
"Config": [{
|
"IPAM": {
|
||||||
"Subnet": "10.0.0.0/16",
|
"Driver": "kuryr",
|
||||||
"IPRange": "10.0.0.0/24",
|
"Options": {},
|
||||||
"Gateway": "10.0.0.1"
|
"Config": [{
|
||||||
}]
|
"Subnet": "10.0.0.0/16",
|
||||||
},
|
"IPRange": "10.0.0.0/24",
|
||||||
"Containers": {
|
"Gateway": "10.0.0.1"
|
||||||
"78c0458ba00f836f609113dd369b5769527f55bb62b5680d03aa1329eb416703": {
|
}]
|
||||||
"endpoint": "edb23d36d77336d780fe25cdb5cf0411e5edd91b0777982b4b28ad125e28a4dd",
|
},
|
||||||
"mac_address": "02:42:c0:a8:7b:cb",
|
"Internal": false,
|
||||||
"ipv4_address": "10.0.0.2/16",
|
"Containers": {
|
||||||
"ipv6_address": ""
|
"78c0458ba00f836f609113dd369b5769527f55bb62b5680d03aa1329eb416703": {
|
||||||
}
|
"endpoint": "edb23d36d77336d780fe25cdb5cf0411e5edd91b0777982b4b28ad125e28a4dd",
|
||||||
|
"mac_address": "02:42:c0:a8:7b:cb",
|
||||||
|
"ipv4_address": "10.0.0.2/24",
|
||||||
|
"ipv6_address": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Options": {},
|
||||||
|
"Labels": {}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
|
|
||||||
4. A user connects one more container to the network::
|
4. A user connects one more container to the network::
|
||||||
@ -248,34 +254,41 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
|
|||||||
d7fcc280916a8b771d2375688b700b036519d92ba2989622627e641bdde6e646
|
d7fcc280916a8b771d2375688b700b036519d92ba2989622627e641bdde6e646
|
||||||
|
|
||||||
$ sudo docker network inspect foo
|
$ sudo docker network inspect foo
|
||||||
{
|
[
|
||||||
"Name": "foo",
|
{
|
||||||
"Id": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
"Name": "foo",
|
||||||
"Scope": "local",
|
"Id": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
|
||||||
"Driver": "kuryr",
|
"Scope": "local",
|
||||||
"IPAM": {
|
"Driver": "kuryr",
|
||||||
"Driver": "default",
|
"EnableIPv6": false,
|
||||||
"Config": [{
|
"IPAM": {
|
||||||
"Subnet": "10.0.0.0/16",
|
"Driver": "kuryr",
|
||||||
"IPRange": "10.0.0.0/24",
|
"Options": {},
|
||||||
"Gateway": "10.0.0.1"
|
"Config": [{
|
||||||
}]
|
"Subnet": "10.0.0.0/16",
|
||||||
},
|
"IPRange": "10.0.0.0/24",
|
||||||
"Containers": {
|
"Gateway": "10.0.0.1"
|
||||||
"78c0458ba00f836f609113dd369b5769527f55bb62b5680d03aa1329eb416703": {
|
}]
|
||||||
"endpoint": "edb23d36d77336d780fe25cdb5cf0411e5edd91b0777982b4b28ad125e28a4dd",
|
|
||||||
"mac_address": "02:42:c0:a8:7b:cb",
|
|
||||||
"ipv4_address": "10.0.0.2/16",
|
|
||||||
"ipv6_address": ""
|
|
||||||
},
|
},
|
||||||
"d7fcc280916a8b771d2375688b700b036519d92ba2989622627e641bdde6e646": {
|
"Internal": false,
|
||||||
"endpoint": "a55976bafaad19f2d455c4516fd3450d3c52d9996a98beb4696dc435a63417fc",
|
"Containers": {
|
||||||
"mac_address": "02:42:c0:a8:7b:cc",
|
"78c0458ba00f836f609113dd369b5769527f55bb62b5680d03aa1329eb416703": {
|
||||||
"ipv4_address": "10.0.0.3/16",
|
"endpoint": "edb23d36d77336d780fe25cdb5cf0411e5edd91b0777982b4b28ad125e28a4dd",
|
||||||
"ipv6_address": ""
|
"mac_address": "02:42:c0:a8:7b:cb",
|
||||||
}
|
"ipv4_address": "10.0.0.2/24",
|
||||||
|
"ipv6_address": ""
|
||||||
|
},
|
||||||
|
"d7fcc280916a8b771d2375688b700b036519d92ba2989622627e641bdde6e646": {
|
||||||
|
"endpoint": "a55976bafaad19f2d455c4516fd3450d3c52d9996a98beb4696dc435a63417fc",
|
||||||
|
"mac_address": "02:42:c0:a8:7b:cc",
|
||||||
|
"ipv4_address": "10.0.0.3/24",
|
||||||
|
"ipv6_address": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Options": {},
|
||||||
|
"Labels": {}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
|
|
||||||
5. A user disconnects a container from the network::
|
5. A user disconnects a container from the network::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user