Browse Source

modify the kuryr workflow document

In the document, it shows that when user input commands like "sudo docker run --net=foo -itd --name=container1 busybox", '/IpamDriver.RequestAddress' will get a POST call which the 'options' is empty, just like this:
{
    "Address": "",
    "PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
    "Options": {},
}
but I have checked the workflow, and I found it's not true. The Options
will be non-empty, and it will be like "com.docker.network.endpoint.macaddress": "08:22:e0:a8:7d:db".
Fixes: Bug 1774977

Change-Id: Ia4632fb376471893de71b57b49ca0241cf0f60c2
tags/2.0.0
SijieYang 2 years ago
parent
commit
42b0c306a0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      doc/source/devref/libnetwork_remote_driver_design.rst

+ 3
- 3
doc/source/devref/libnetwork_remote_driver_design.rst View File

@@ -140,7 +140,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
{
"Address": "",
"PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
"Options": {},
"Options": {"com.docker.network.endpoint.macaddress": "08:22:e0:a8:7d:db"},
}

The IPAM driver Kuryr sends a port creation request to neutron and returns the following response with neutron provided ip address::
@@ -158,7 +158,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
"NetworkID": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
"Interface": {
"AddressIPv6": "",
"MacAddress": "",
"MacAddress": "08:22:e0:a8:7d:db",
"Address": "10.0.0.2/24"
},
"Options": {
@@ -185,7 +185,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
(https://github.com/docker/libnetwork/blob/master/docs/remote.md#create-endpoint)::

{
"Interface": {"MacAddress": "08:22:e0:a8:7d:db"}
"Interface": {"MacAddress": ""}
}




Loading…
Cancel
Save