Browse Source

api: swagger: add IPAMConfig on IPAM

Signed-off-by: Niel Drummond <niel@drummond.lu>
Niel Drummond 3 years ago
parent
commit
98f027813f
1 changed files with 15 additions and 3 deletions
  1. 15 3
      api/swagger.yaml

+ 15 - 3
api/swagger.yaml

@@ -2035,15 +2035,27 @@ definitions:
           ```
         type: "array"
         items:
-          type: "object"
-          additionalProperties:
-            type: "string"
+          $ref: "#/definitions/IPAMConfig"
       Options:
         description: "Driver-specific options, specified as a map."
         type: "object"
         additionalProperties:
           type: "string"
 
+  IPAMConfig:
+    type: "object"
+    properties:
+      Subnet:
+        type: "string"
+      IPRange:
+        type: "string"
+      Gateway:
+        type: "string"
+      AuxiliaryAddresses:
+        type: "object"
+        additionalProperties:
+          type: "string"
+
   NetworkContainer:
     type: "object"
     properties: