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
SijieYang 10 months 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
140 140
         {
141 141
             "Address": "",
142 142
             "PoolID": "941f790073c3a2c70099ea527ee3a6205e037e84749f2c6e8a5287d9c62fd376",
143
-            "Options": {},
143
+            "Options": {"com.docker.network.endpoint.macaddress": "08:22:e0:a8:7d:db"},
144 144
         }
145 145
 
146 146
    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
158 158
             "NetworkID": "286eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364",
159 159
             "Interface": {
160 160
                 "AddressIPv6": "",
161
-                "MacAddress": "",
161
+                "MacAddress": "08:22:e0:a8:7d:db",
162 162
                 "Address": "10.0.0.2/24"
163 163
             },
164 164
             "Options": {
@@ -185,7 +185,7 @@ Libnetwork User Workflow (with Kuryr as remote network driver) - Host Networking
185 185
    (https://github.com/docker/libnetwork/blob/master/docs/remote.md#create-endpoint)::
186 186
 
187 187
         {
188
-            "Interface": {"MacAddress": "08:22:e0:a8:7d:db"}
188
+            "Interface": {"MacAddress": ""}
189 189
         }
190 190
 
191 191
 

Loading…
Cancel
Save