blob: 950d3cd1254be1e50cf54ee294aa02d9a27ace3b [file] [log] [blame]
diaccio6f2d2f72021-11-12 17:28:03 +01001{
2 "type": "object",
3 "title": "INT Intents",
4
5 "required": [
6 "INT Intents"
7 ],
8 "properties": {
9 "intintent": {
10 "type": "array",
11 "xml": {
12 "name": "Ints",
13 "wrapped": true
14 },
15 "items": {
16 "type": "object",
17 "title": "int",
18 "required": [
19 "selector",
20 "metadataTypes",
21 "headerType",
22 "reportTypes",
23 "telemetryMode"
24 ],
25 "properties": {
26 "selector": {
27 "type": "object",
28 "title": "selector",
29 "required": [
30 "criteria"
31 ],
32 "properties": {
33 "criteria": {
34 "type": "array",
35 "xml": {
36 "name": "criteria",
37 "wrapped": true
38 },
39 "items": {
40 "type": "object",
41 "title": "criteria",
42 "properties": {
43 "type": {
44 "type": "string",
45 "description": "Ethernet field name",
46 "example": "ETH_TYPE"
47 },
48 "ip": {
49 "type": "string",
50 "example": "10.1.1.0/24",
51 "description": "IP source address"
52 },
53 "tcpPort": {
54 "type": "integer",
55 "format": "uint16",
56 "example": 1,
57 "description": "TCP source address"
58 },
59 "udpPort": {
60 "type": "uint16",
61 "format": "uint16",
62 "example": 1,
63 "description": "UDP source address"
64 }
65 }
66 }
67 }
68 }
69 },
70 "headerType": {
71 "type": "string",
72 "enum": [
73 "HOP_BY_HOP",
74 "DESTINATION"
75 ],
76 "example": "HOP_BY_HOP"
77 },
78 "telemetryMode": {
79 "type": "string",
80 "enum": [
81 "POSTCARD",
82 "INBAND_TELEMETRY"
83 ],
84 "example": "INBAND_TELEMETRY"
85 },
86 "metadataTypes": {
87 "type": "array",
88 "xml": {
89 "name": "metadataTypes",
90 "wrapped": true
91 },
92 "items": {
93 "type": "string",
94 "enum": [
95 "SWITCH_ID",
96 "L1_PORT_ID",
97 "HOP_LATENCY",
98 "QUEUE_OCCUPANCY",
99 "INGRESS_TIMESTAMP",
100 "EGRESS_TIMESTAMP",
101 "L2_PORT_ID",
102 "EGRESS_TX_UTIL"
103 ],
104 "example": "SWITCH_ID"
105 }
106 },
107 "reportTypes": {
108 "type": "array",
109 "xml": {
110 "name": "reportTypes",
111 "wrapped": true
112 },
113 "items": {
114 "type": "string",
115 "enum": [
116 "TRACKED_FLOW",
117 "DROPPED_PACKET",
118 "CONGESTED_QUEUE"
119 ],
120 "example": "TRACKED_FLOW"
121 }
122 }
123 }
124 }
125 }
126 }
127}
128
129