blob: 9e61c587056405cf3ceeb014a799fb0184b55d9b [file] [log] [blame]
Author Namee252a002016-09-26 22:42:24 +05301{
2 "type": "object",
3 "title": "relatedflows",
4 "required": [
5 "id",
6 "appId",
7 "type",
8 "paths"
9 ],
10 "properties": {
11 "id": {
12 "type": "string",
13 "example": "0x5"
14 },
15 "appId": {
16 "type": "string",
17 "example": "org.onosproject.ovsdb"
18 },
19 "type": {
20 "type": "string",
21 "example": "HostToHostIntent"
22 },
23 "paths": {
24 "type": "array",
25 "xml": {
26 "name": "paths",
27 "wrapped": true
28 },
29 "items": {
30 "type": "array",
31 "xml": {
32 "name": "flows",
33 "wrapped": true
34 },
35 "items": {
36 "type": "object",
37 "title": "flow",
38 "required": [
39 "id",
40 "tableId",
41 "appId",
42 "groupId",
43 "priority",
44 "timeout",
45 "isPermanent",
46 "deviceId",
47 "state",
48 "life",
49 "packets",
50 "bytes",
51 "lastSeen"
52 ],
53 "properties": {
54 "id": {
55 "type": "string",
56 "example": "12103425214920339"
57 },
58 "tableId": {
59 "type": "integer",
60 "format": "int32",
61 "example": 3
62 },
63 "appId": {
64 "type": "string",
65 "example": "org.onosproject.core"
66 },
67 "groupId": {
68 "type": "integer",
69 "format": "int64",
70 "example": 0
71 },
72 "priority": {
73 "type": "integer",
74 "format": "int32",
75 "example": 40000
76 },
77 "timeout": {
78 "type": "integer",
79 "format": "int32",
80 "example": 0
81 },
82 "isPermanent": {
83 "type": "boolean",
84 "example": true
85 },
86 "deviceId": {
87 "type": "string",
88 "example": "of:0000000000000003"
89 },
90 "state": {
91 "type": "string",
92 "example": "ADDED"
93 },
94 "life": {
95 "type": "integer",
96 "format": "int64",
97 "example": 69889
98 },
99 "packets": {
100 "type": "integer",
101 "format": "int64",
102 "example": 22546
103 },
104 "bytes": {
105 "type": "integer",
106 "format": "int64",
107 "example": 1826226
108 },
109 "lastSeen": {
110 "type": "integer",
111 "format": "int64",
112 "example": 1447892365670
113 },
114 "treatment": {
115 "type": "object",
116 "title": "treatment",
117 "required": [
118 "instructions",
119 "deferred"
120 ],
121 "properties": {
122 "instructions": {
123 "type": "array",
124 "title": "treatment",
125 "required": [
126 "properties",
127 "port"
128 ],
129 "items": {
130 "type": "object",
131 "title": "instruction",
132 "required": [
133 "type",
134 "port"
135 ],
136 "properties": {
137 "type": {
138 "type": "string",
139 "example": "OUTPUT"
140 },
141 "port": {
142 "type": "string",
143 "example": "CONTROLLER"
144 }
145 }
146 }
147 },
148 "deferred": {
149 "type": "array",
150 "xml": {
151 "name": "deferred",
152 "wrapped": true
153 },
154 "items": {
155 "type": "string"
156 }
157 }
158 }
159 },
160 "selector": {
161 "type": "object",
162 "title": "selector",
163 "required": [
164 "criteria"
165 ],
166 "properties": {
167 "criteria": {
168 "type": "array",
169 "xml": {
170 "name": "criteria",
171 "wrapped": true
172 },
173 "items": {
174 "type": "object",
175 "title": "criteria",
176 "properties": {
177 "type": {
178 "type": "string",
179 "description": "Ethernet field name",
180 "example": "ETH_TYPE"
181 },
182 "ethType": {
183 "type": "int64",
184 "format": "int64",
185 "example": "0x88cc",
186 "description": "Ethernet frame type"
187 },
188 "mac": {
189 "type": "string",
190 "example": "00:00:11:00:00:01"
191 },
192 "port": {
193 "type": "int64",
194 "format": "int64",
195 "example": 1,
196 "description": "Match port"
197 }
198 }
199 }
200 }
201 }
202 }
203 }
204 }
205 }
206 }
207 }
208}