Make example priority smaller.
The original value overflows the 16-bits allowed by OpenFlow so that
example doesn't work very well for OpenFlow devices.
Change-Id: I0b61404ff7ae6c542f92787c9e8ab5c7a2e058f1
diff --git a/web/api/src/main/resources/definitions/Flows.json b/web/api/src/main/resources/definitions/Flows.json
index ad2d214..cb8699a 100644
--- a/web/api/src/main/resources/definitions/Flows.json
+++ b/web/api/src/main/resources/definitions/Flows.json
@@ -36,7 +36,7 @@
},
"tableId": {
"type": "integer",
- "format": "int64",
+ "format": "int32",
"example": 3
},
"appId": {
@@ -50,12 +50,12 @@
},
"priority": {
"type": "integer",
- "format": "int64",
- "example": 400000
+ "format": "int32",
+ "example": 40000
},
"timeout": {
"type": "integer",
- "format": "int64",
+ "format": "int32",
"example": 0
},
"isPermanent": {
@@ -370,4 +370,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/web/api/src/main/resources/definitions/FlowsBatchPost.json b/web/api/src/main/resources/definitions/FlowsBatchPost.json
index ff9471d..d45235a 100644
--- a/web/api/src/main/resources/definitions/FlowsBatchPost.json
+++ b/web/api/src/main/resources/definitions/FlowsBatchPost.json
@@ -23,12 +23,12 @@
"properties": {
"priority": {
"type": "integer",
- "format": "int64",
- "example": 400000
+ "format": "int32",
+ "example": 40000
},
"timeout": {
"type": "integer",
- "format": "int64",
+ "format": "int32",
"example": 0
},
"isPermanent": {
@@ -112,4 +112,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/web/api/src/main/resources/definitions/FlowsPost.json b/web/api/src/main/resources/definitions/FlowsPost.json
index 5cc5d01..fcdc735 100644
--- a/web/api/src/main/resources/definitions/FlowsPost.json
+++ b/web/api/src/main/resources/definitions/FlowsPost.json
@@ -10,12 +10,12 @@
"properties": {
"priority": {
"type": "integer",
- "format": "int64",
- "example": 400000
+ "format": "int32",
+ "example": 40000
},
"timeout": {
"type": "integer",
- "format": "int64",
+ "format": "int32",
"example": 0
},
"isPermanent": {
@@ -96,4 +96,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/web/api/src/main/resources/definitions/ForwardingObjective.json b/web/api/src/main/resources/definitions/ForwardingObjective.json
index d5bc264..f08df40 100644
--- a/web/api/src/main/resources/definitions/ForwardingObjective.json
+++ b/web/api/src/main/resources/definitions/ForwardingObjective.json
@@ -18,12 +18,12 @@
},
"priority": {
"type": "integer",
- "format": "int64",
- "example": 400000
+ "format": "int32",
+ "example": 40000
},
"timeout": {
"type": "integer",
- "format": "int64",
+ "format": "int32",
"example": 0
},
"isPermanent": {
@@ -304,4 +304,4 @@
}
}
}
-}
\ No newline at end of file
+}