summaryrefslogtreecommitdiffstats
path: root/srv6/srv6_policy_postman_collection.json
blob: 1d9ca4ebb24f9915af4f2975b10f4fd65e64be34 (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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
	"info": {
		"_postman_id": "9c24a300-8374-4574-b179-650a3c836439",
		"name": "SRv6 Policy",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "1. Write IPv6 FIB 0 (to store SRv6 policies)",
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"vpp-fib-table-management:table\": [\n        {\n            \"table-id\": 0,\n            \"address-family\": \"vpp-fib-table-management:ipv6\",\n            \"name\": \"ipv6-VRF:0\"\n        }\n    ]\n}"
				},
				"url": {
					"raw": "http://localhost:8183/restconf/config/vpp-fib-table-management:fib-table-management/vpp-fib-table-management:fib-tables/table/0/vpp-fib-table-management:ipv6",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"config",
						"vpp-fib-table-management:fib-table-management",
						"vpp-fib-table-management:fib-tables",
						"table",
						"0",
						"vpp-fib-table-management:ipv6"
					]
				}
			},
			"response": []
		},
		{
			"name": "2. SRv6 policy",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "admin",
							"type": "string"
						},
						{
							"key": "username",
							"value": "admin",
							"type": "string"
						}
					]
				},
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"hc2vpp-oc-srte-policy:segment-routing\": {\n\t\t\"traffic-engineering\": {\n\t\t\t\"named-segment-lists\": {\n\t\t\t\t\"named-segment-list\": [{\n\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e-1\"\n\t\t\t\t\t},\n\t\t\t\t\t\"segments\": {\n\t\t\t\t\t\t\"segment\": [{\n\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"a::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"d::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"e::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e-2\"\n\t\t\t\t\t},\n\t\t\t\t\t\"segments\": {\n\t\t\t\t\t\t\"segment\": [{\n\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"d::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"e::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"a::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t}\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"policies\": {\n\t\t\t\t\"policy\": [{\n\t\t\t\t\t\"name\": \"a::e\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e\",\n\t\t\t\t\t\t\"color\": 1,\n\t\t\t\t\t\t\"endpoint\": \"e::1\",\n\t\t\t\t\t\t\"admin-state\": \"UP\"\n\t\t\t\t\t},\n\t\t\t\t\t\"color\": 1,\n\t\t\t\t\t\"endpoint\": \"e::1\",\n\t\t\t\t\t\"candidate-paths\": {\n\t\t\t\t\t\t\"candidate-path\": [{\n\t\t\t\t\t\t\t\"name\": \"candidatePath1\",\n\t\t\t\t\t\t\t\"provisioning-method\": \"provisioning-method-config\",\n\t\t\t\t\t\t\t\"preference\": 100,\n\t\t\t\t\t\t\t\"distinguisher\": 0,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"name\": \"candidatePath1\",\n\t\t\t\t\t\t\t\t\"provisioning-method\": \"provisioning-method-config\",\n\t\t\t\t\t\t\t\t\"computation-method\": \"path-explicitly-defined\",\n\t\t\t\t\t\t\t\t\"preference\": 100,\n\t\t\t\t\t\t\t\t\"distinguisher\": 0\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"binding-sid\": {\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"alloc-mode\": \"explicit\",\n\t\t\t\t\t\t\t\t\t\"type\": \"srv6\",\n\t\t\t\t\t\t\t\t\t\"value\": \"a::e\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"segment-lists\": {\n\t\t\t\t\t\t\t\t\"segment-list\": [{\n\t\t\t\t\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\t\t\t\t\t\"weight\": 1\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\t\t\t\t\t\"weight\": 2\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\t\"autoroute-include\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"metric-type\": \"constant\",\n\t\t\t\t\t\t\t\"metric-constant\": 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"prefixes\": {\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"prefixes-all\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"prefix\": [{\n\t\t\t\t\t\t\t\t\"ip-prefix\": \"e::/64\",\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"ip-prefix\": \"e::/64\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"interfaces\": {\n\t\t\t\t\t\t\t\"interface\": [{\n\t\t\t\t\t\t\t\t\"input-interface\": \"loop0\",\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"input-interface\": \"loop0\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"binding-sid\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"alloc-mode\": \"explicit\",\n\t\t\t\t\t\t\t\"type\": \"srv6\",\n\t\t\t\t\t\t\t\"value\": \"a::e\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"vpp-oc-srte-policy:vpp-sr-policy\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"policy-type\": \"Default\",\n\t\t\t\t\t\t\t\"policy-behavior\": \"Encapsulation\",\n\t\t\t\t\t\t\t\"table-id\": 0,\n        \t\t\t\t\t\"address-family\": \"vpp-fib-table-management:ipv6\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}]\n\t\t\t}\n\t\t}\n\t}\n}"
				},
				"url": {
					"raw": "http://localhost:8183/restconf/config/hc2vpp-oc-srte-policy:segment-routing",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"config",
						"hc2vpp-oc-srte-policy:segment-routing"
					]
				}
			},
			"response": []
		},
		{
			"name": "CandidatePathContext Read",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:8183/restconf/operational/naming-context:contexts\\srv6-candidate-path-mappings",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"operational",
						"naming-context:contexts\\srv6-candidate-path-mappings"
					]
				}
			},
			"response": []
		},
		{
			"name": "PolicyContext Read",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:8183/restconf/operational/naming-context:contexts\\srv6-policy-mappings",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"operational",
						"naming-context:contexts\\srv6-policy-mappings"
					]
				}
			},
			"response": []
		},
		{
			"name": "Segment routing - traffic engineering read oper",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:8183/restconf/operational/hc2vpp-oc-srte-policy:segment-routing/traffic-engineering/",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"operational",
						"hc2vpp-oc-srte-policy:segment-routing",
						"traffic-engineering",
						""
					]
				}
			},
			"response": []
		},
		{
			"name": "autoroute include for policy (color 1, ep e::1)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:8183/restconf/operational/hc2vpp-oc-srte-policy:segment-routing/traffic-engineering/policies/policy/1/e::1/autoroute-include/",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"operational",
						"hc2vpp-oc-srte-policy:segment-routing",
						"traffic-engineering",
						"policies",
						"policy",
						"1",
						"e::1",
						"autoroute-include",
						""
					]
				}
			},
			"response": []
		},
		{
			"name": "SRv6 policy delete",
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "admin",
							"type": "string"
						},
						{
							"key": "username",
							"value": "admin",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:8183/restconf/config/hc2vpp-oc-srte-policy:segment-routing",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"config",
						"hc2vpp-oc-srte-policy:segment-routing"
					]
				}
			},
			"response": []
		}
	]
}