Explorar el Código

Merge pull request #38218 from thaJeztah/fix_default_addr_pools_swagger

Add missing default address pool fields to swagger
Sebastiaan van Stijn hace 6 años
padre
commit
92d545552f
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      api/swagger.yaml

+ 16 - 0
api/swagger.yaml

@@ -2465,6 +2465,22 @@ definitions:
         description: "Whether there is currently a root CA rotation in progress for the swarm"
         type: "boolean"
         example: false
+      DefaultAddrPool:
+        description: |
+          Default Address Pool specifies default subnet pools for global scope networks.
+        type: "array"
+        items:
+          type: "string"
+          format: "CIDR"
+          example: ["10.10.0.0/16", "20.20.0.0/16"]
+      SubnetSize:
+        description: |
+          SubnetSize specifies the subnet size of the networks created from the default subnet pool
+        type: "integer"
+        format: "uint32"
+        maximum: 29
+        default: 24
+        example: 24
 
   JoinTokens:
     description: |