REST API support for packet-processors
Change-Id: Id723a3f62e584f3325e8a2017c98c18e919168f6
(cherry picked from commit 4df80f17964cafba44e59065ffd5fe6e4a42ef56)
diff --git a/web/api/src/main/resources/definitions/PacketProcessorsGet.json b/web/api/src/main/resources/definitions/PacketProcessorsGet.json
new file mode 100644
index 0000000..cc88dc6
--- /dev/null
+++ b/web/api/src/main/resources/definitions/PacketProcessorsGet.json
@@ -0,0 +1,44 @@
+{
+ "type": "object",
+ "title": "packet-processors",
+ "required": [
+ "packet-processors"
+ ],
+ "properties": {
+ "packet-processors": {
+ "type": "array",
+ "xml": {
+ "name": "packet-processors",
+ "wrapped": true
+ },
+ "items": {
+ "type": "object",
+ "title": "packet-processors",
+ "required": [
+ "priority",
+ "class",
+ "packets",
+ "avgNanos"
+ ],
+ "properties": {
+ "priority": {
+ "type": "string",
+ "example": "advisor(0)"
+ },
+ "class": {
+ "type": "string",
+ "example": "org.onosproject.provider.host.impl.HostLocationProvider$InternalHostProvider"
+ },
+ "packets": {
+ "type": "integer",
+ "example": 568376
+ },
+ "avgNanos": {
+ "type": "integer",
+ "example": 5683
+ }
+ }
+ }
+ }
+ }
+}