summaryrefslogtreecommitdiffstats
path: root/vpp-classifier/policer_postman_collection.json
blob: 5bb64626501eaf98617a88a5ac8998c2f4c679a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
	"id": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
	"name": "Policer Hc2vpp RESTCONF calls",
	"description": "",
	"order": [
		"926c8f7d-fdfe-be9d-1b56-7765f2ebc3d2",
		"12ab078b-44dd-0709-8ed0-3f4ff53cd932",
		"a8c6ac52-a5aa-da74-c36b-761323ed5e52",
		"2ebdf306-1d6f-428e-751d-52c58ede2e29",
		"6b544e58-d757-66ef-cff0-157155c331b0",
		"c8690ac1-9c11-b843-a9b9-b62f50e305a9",
		"d94ef1e7-570a-64d9-c330-1a5e3e17ff23",
		"3b2b4e99-ac05-5dc5-57f9-fccaf2ff691d"
	],
	"folders": [],
	"timestamp": 1489160047340,
	"owner": "567303",
	"public": false,
	"requests": [
		{
			"id": "12ab078b-44dd-0709-8ed0-3f4ff53cd932",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/operational/policer:policers-state",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489407118786,
			"name": "read policers (oper)",
			"description": "",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"policer\": [\n        {\n            \"name\": \"policy1\",\n            \"cir\": \"450\",\n            \"cb\": \"50000\",\n            \"rate-type\": \"kbps\",\n            \"round-type\": \"closest\",\n            \"type\": \"1r2c\",\n            \"conform-action\": {\n            \t\"meter-action-type\" : \"meter-action-transmit\"\n            },\n            \"exceed-action\": {\n            \t\"meter-action-type\" : \"meter-action-drop\"\n            }\n        }\n    ]\n}"
		},
		{
			"id": "2ebdf306-1d6f-428e-751d-52c58ede2e29",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489388120201,
			"name": "Add classify table",
			"description": "Corresponds to cli command:\n\nclassify table mask l3 ip4 src",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"classify-table\": [\n        {\n            \"name\": \"table0\",\n            \"nbuckets\": \"2\",\n            \"memory_size\": \"1048576\",\n            \"miss_next\": \"permit\",\n            \"mask\": \"00:00:00:00:00:00:00:00:00:00:ff:ff:ff:ff:00:00\"\n        }\n    ]\n}"
		},
		{
			"id": "3b2b4e99-ac05-5dc5-57f9-fccaf2ff691d",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489491353625,
			"name": "show interface policer assignment",
			"description": "Corresponds to\nvat# policer_classify_dump type ip4\nvat# policer_classify_dump type ip6\nvat# policer_classify_dump type l2",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"interface-policer:policer\": {\n\t\t\"ip4-table\": \"table0\"\n    }\n}"
		},
		{
			"id": "6b544e58-d757-66ef-cff0-157155c331b0",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:00:00:00:00:c0:a8:01:02:00:00",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489398805482,
			"name": "Add classify session",
			"description": "Corresponds to cli command:\n\nclassify session policer-hit-next policy1 exceed-color table-index 0 match l3 ip4 src 192.168.1.2",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"classify-session\": [\n        {\n            \"policer_hit_next\": \"policy1\",\n            \"color_classfier\": \"exceed-color\",\n            \"match\": \"00:00:00:00:00:00:00:00:00:00:c0:a8:01:02:00:00\"\n        }\n    ]\n}"
		},
		{
			"id": "926c8f7d-fdfe-be9d-1b56-7765f2ebc3d2",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/policer:policers/policer/policy1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489387356025,
			"name": "Add policer1",
			"description": "Adds policer1. Corresponding vpp cli command:\n\nvppctl configure policer name policy1 type 1r2c cir 450 cb 50000 rate kbps closest conform-action transmit exceed-action drop\n\nTo verify invoke:\n\nvppctl show policer",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"policer\": [\n        {\n            \"name\": \"policy1\",\n            \"cir\": \"450\",\n            \"cb\": \"50000\",\n            \"rate-type\": \"kbps\",\n            \"round-type\": \"closest\",\n            \"type\": \"1r2c\",\n            \"conform-action\": {\n            \t\"meter-action-type\" : \"meter-action-transmit\"\n            },\n            \"exceed-action\": {\n            \t\"meter-action-type\" : \"meter-action-drop\"\n            }\n        }\n    ]\n}"
		},
		{
			"id": "a8c6ac52-a5aa-da74-c36b-761323ed5e52",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/policer:policers",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489491113155,
			"name": "read policers (cfg)",
			"description": "",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"policer\": [\n        {\n            \"name\": \"policy1\",\n            \"cir\": \"450\",\n            \"cb\": \"50000\",\n            \"rate-type\": \"kbps\",\n            \"round-type\": \"closest\",\n            \"type\": \"1r2c\",\n            \"conform-action\": {\n            \t\"meter-action-type\" : \"meter-action-transmit\"\n            },\n            \"exceed-action\": {\n            \t\"meter-action-type\" : \"meter-action-drop\"\n            }\n        }\n    ]\n}"
		},
		{
			"id": "c8690ac1-9c11-b843-a9b9-b62f50e305a9",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/operational/vpp-classifier:vpp-classifier-state/classify-table/table0",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489491247858,
			"name": "Show classify table (oper)",
			"description": "",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"classify-table\": [\n        {\n            \"name\": \"table0\",\n            \"nbuckets\": \"2\",\n            \"memory_size\": \"1048576\",\n            \"miss_next\": \"permit\",\n            \"mask\": \"00:00:00:00:00:00:00:00:00:00:ff:ff:ff:ff:00:00\"\n        }\n    ]\n}"
		},
		{
			"id": "d94ef1e7-570a-64d9-c330-1a5e3e17ff23",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-policer:policer",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1489398841582,
			"name": "apply classfier table to local0 interface",
			"description": "Corresponds to cli command:\nvppctl set policer classify interface 0 ip4-table 0\n\ncan be verified with\n\nvat# policer_classify_dump type ip4",
			"collectionId": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
			"responses": [],
			"rawModeData": "{\n    \"interface-policer:policer\": {\n\t\t\"ip4-table\": \"table0\"\n    }\n}"
		}
	]
}