summaryrefslogtreecommitdiffstats
path: root/acl/acl_postman_collection_v1.0.0.json
blob: 50f757b8cbde517e8088d1427dd28b0867dcfca3 (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
{
	"id": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
	"name": "Hc2vpp RESTCONF calls for acl plugin",
	"description": "Provides examples of RESTCONF calls for vpp's acl plugin, exposed\nin hc2vpp.",
	"order": [
		"3baf91bf-ea7d-17ce-cf07-e58eaff8abb7",
		"08a5f3da-660c-643e-22b7-1036c4c15563",
		"3930c12e-a57f-0bb7-402a-11455b4d4dd6",
		"7666fd95-d498-2f13-a6a7-52b5359f9b13",
		"3d8a53cf-ade0-0d4e-3b5a-205532da7e91",
		"c3ccf5cf-6ecf-7a92-b538-4fc829cb8d2d",
		"a71b6350-ba59-8390-1b24-a5aab283b3dd",
		"2a212662-55b3-cf79-5391-c7628f198998",
		"cf8cae71-13a7-4bc0-11e8-36875cef57b2",
		"b8d5d674-10b1-cd0e-f49b-b503dc95b7d2"
	],
	"folders": [],
	"timestamp": 1482156233076,
	"owner": "567303",
	"public": false,
	"requests": [
		{
			"id": "08a5f3da-660c-643e-22b7-1036c4c15563",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/icmp-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482161973602,
			"name": "Write icmp acl list",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n \"acl\": [\r\n      {\r\n        \"acl-name\": \"icmp-acl\",\r\n        \"acl-type\": \"vpp-acl:vpp-acl\",\r\n        \"access-list-entries\": {\r\n          \"ace\": [\r\n            {\r\n              \"rule-name\": \"imcp-rule\",\r\n              \"matches\": {\r\n                \"vpp-ace-nodes\": {\r\n                  \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n                  \"source-ipv4-network\": \"192.168.2.2/32\",\r\n                  \"icmp-nodes\": {\r\n                    \"icmp-type-range\": {\r\n                      \"first\": \"5\",\r\n                      \"last\": \"8\"\r\n                    },\r\n                    \"icmp-code-range\": {\r\n                      \"first\": \"1\",\r\n                      \"last\": \"3\"\r\n                    }\r\n                  }\r\n                }\r\n              },\r\n              \"actions\": {\r\n                \"permit\": [null]\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    ]\r\n}"
		},
		{
			"id": "2a212662-55b3-cf79-5391-c7628f198998",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482157742280,
			"name": "Read ACLs (cfg)",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"testInterface\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"iana-if-type:ethernetCsmacd\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"ietf-ip:ipv4\": {\r\n                    \"enabled\": \"true\",\r\n                    \"mtu\": \"1500\",\r\n                    \"address\": [\r\n                        {\r\n                            \"ip\": \"1.2.3.0\",\r\n                            \"netmask\": \"255.255.255.0\"\r\n                        }\r\n                    ]\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
		},
		{
			"id": "3930c12e-a57f-0bb7-402a-11455b4d4dd6",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/tcp-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482163082115,
			"name": "Write tcp acl list",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n    \"acl\": [\r\n      {\r\n        \"acl-name\": \"tcp-acl\",\r\n        \"acl-type\": \"vpp-acl:vpp-acl\",\r\n        \"access-list-entries\": {\r\n          \"ace\": [\r\n            {\r\n              \"rule-name\": \"tcp-rule\",\r\n              \"matches\": {\r\n                \"vpp-ace-nodes\": {\r\n                  \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n                  \"source-ipv4-network\": \"192.168.2.2/32\",\r\n                  \"tcp-nodes\": {\r\n                    \"source-port-range\": {\r\n                      \"lower-port\": \"1\",\r\n                      \"upper-port\": \"5487\"\r\n                    },\r\n                    \"destination-port-range\": {\r\n                      \"lower-port\": \"87\",\r\n                      \"upper-port\": \"6745\"\r\n                    },\r\n                    \"tcp-flags-mask\": \"1\",\r\n                    \"tcp-flags-value\": \"7\"\r\n                  }\r\n                }\r\n              },\r\n              \"actions\": {\r\n                \"permit\": [null]\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    ]\r\n}"
		},
		{
			"id": "3baf91bf-ea7d-17ce-cf07-e58eaff8abb7",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-macip-acl/macip-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482161927006,
			"name": "Write mac_ip list",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n    \"acl\": [\r\n      {\r\n        \"acl-name\": \"macip-acl\",\r\n        \"acl-type\": \"vpp-acl:vpp-macip-acl\",\r\n        \"access-list-entries\": {\r\n          \"ace\": [\r\n            {\r\n              \"rule-name\": \"macip-rule\",\r\n              \"matches\": {\r\n                \"vpp-macip-ace-nodes\": {\r\n                  \"source-ipv4-network\": \"192.168.2.2/32\",\r\n                  \"source-mac-address\": \"aa:aa:aa:aa:aa:aa\",\r\n                  \"source-mac-address-mask\": \"ff:00:00:00:00:00\"\r\n                }\r\n              },\r\n              \"actions\": {\r\n                \"permit\": [null]\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    ]\r\n}"
		},
		{
			"id": "3d8a53cf-ade0-0d4e-3b5a-205532da7e91",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/udp-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482163289999,
			"name": "Write udp acl list",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n    \"acl\": [\r\n      {\r\n        \"acl-name\": \"udp-acl\",\r\n        \"acl-type\": \"vpp-acl:vpp-acl\",\r\n        \"access-list-entries\": {\r\n          \"ace\": [\r\n            {\r\n              \"rule-name\": \"udp-rule\",\r\n              \"matches\": {\r\n                \"vpp-ace-nodes\": {\r\n                  \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n                  \"source-ipv4-network\": \"192.168.2.2/32\",\r\n                  \"udp-nodes\": {\r\n                    \"source-port-range\": {\r\n                      \"lower-port\": \"1\",\r\n                      \"upper-port\": \"5487\"\r\n                    },\r\n                    \"destination-port-range\": {\r\n                      \"lower-port\": \"87\",\r\n                      \"upper-port\": \"6745\"\r\n                    }\r\n                  }\r\n                }\r\n              },\r\n              \"actions\": {\r\n                \"permit\": [null]\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    ]\r\n}"
		},
		{
			"id": "7666fd95-d498-2f13-a6a7-52b5359f9b13",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/icmp-v6-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482163130562,
			"name": "Write icmp-v6 acl list",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\r\n    \"acl\": [\r\n      {\r\n        \"acl-name\": \"icmp-v6-acl\",\r\n        \"acl-type\": \"vpp-acl:vpp-acl\",\r\n        \"access-list-entries\": {\r\n          \"ace\": [\r\n            {\r\n              \"rule-name\": \"imcp-v6-rule\",\r\n              \"matches\": {\r\n                \"vpp-ace-nodes\": {\r\n                  \"destination-ipv6-network\": \"2001:0db8:0a0b:12f0:0000:0000:0000:0001/64\",\r\n                  \"source-ipv6-network\": \"2001:0db8:0a0b:12f0:0000:0000:0000:0002/48\",\r\n                  \"icmp-v6-nodes\": {\r\n                    \"icmp-type-range\": {\r\n                      \"first\": \"5\",\r\n                      \"last\": \"8\"\r\n                    },\r\n                    \"icmp-code-range\": {\r\n                      \"first\": \"1\",\r\n                      \"last\": \"3\"\r\n                    }\r\n                  }\r\n                }\r\n              },\r\n              \"actions\": {\r\n                \"permit\": [null]\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    ]\r\n}"
		},
		{
			"id": "a71b6350-ba59-8390-1b24-a5aab283b3dd",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress/vpp-macip-acl",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482231403896,
			"name": "Assign macip ACL to local0",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\n\t\"vpp-macip-acl\": {\n\t\t\"type\" : \"vpp-acl:vpp-macip-acl\",\n\t\t\"name\" : \"macip-acl\"\n    }\n}"
		},
		{
			"id": "b8d5d674-10b1-cd0e-f49b-b503dc95b7d2",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482219387417,
			"name": "Read ACLs assigned to local0 (cfg)",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\n    \"ingress\": {\n      \"vpp-acls\": [\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"tcp-acl\"\n            },\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"udp-acl\"\n            }\n        ]\n    }\n}"
		},
		{
			"id": "c3ccf5cf-6ecf-7a92-b538-4fc829cb8d2d",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482216755397,
			"name": "Assign ACLs as ingress to local0",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\n    \"ingress\": {\n      \"vpp-acls\": [\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"tcp-acl\"\n            },\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"udp-acl\"\n            }\n        ]\n    }\n}"
		},
		{
			"id": "cf8cae71-13a7-4bc0-11e8-36875cef57b2",
			"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
			"url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/interface-acl:acl/ingress",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1482217971617,
			"name": "Read ingress ACLs assigned to local0",
			"description": "",
			"collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72",
			"responses": [],
			"rawModeData": "{\n    \"ingress\": {\n      \"vpp-acls\": [\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"tcp-acl\"\n            },\n            {\n                \"type\" : \"vpp-acl:vpp-acl\",\n                \"name\" : \"udp-acl\"\n            }\n        ]\n    }\n}"
		}
	]
}