summaryrefslogtreecommitdiffstats
path: root/vpp-classifier/policer_postman_collection.json
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-classifier/policer_postman_collection.json')
-rw-r--r--vpp-classifier/policer_postman_collection.json445
1 files changed, 291 insertions, 154 deletions
diff --git a/vpp-classifier/policer_postman_collection.json b/vpp-classifier/policer_postman_collection.json
index 5bb646265..9a8852755 100644
--- a/vpp-classifier/policer_postman_collection.json
+++ b/vpp-classifier/policer_postman_collection.json
@@ -1,173 +1,310 @@
{
- "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": [
+ "info": {
+ "_postman_id": "7e729e26-7b1d-fff8-ee6e-cdaf7cca1362",
+ "name": "Policer Hc2vpp RESTCONF calls",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
{
- "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}"
+ "_postman_id": "47825622-c880-4080-97b1-afebb0f7812a",
+ "name": "Add policer1",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/policer:policers/policer/policy1",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "policer:policers",
+ "policer",
+ "policy1"
+ ]
+ },
+ "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"
+ },
+ "response": []
},
{
- "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}"
+ "_postman_id": "360c90ae-7168-4075-8fc6-20c79437d9b5",
+ "name": "read policers (oper)",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operational/policer:policers-state",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "policer:policers-state"
+ ]
+ }
+ },
+ "response": []
},
{
- "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}"
+ "_postman_id": "8fc54eb6-e02d-48ac-a70a-f1ca78c42b34",
+ "name": "read policers (cfg)",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/policer:policers",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "policer:policers"
+ ]
+ }
+ },
+ "response": []
},
{
- "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}"
+ "_postman_id": "6c89f5bc-dfd8-4d71-be13-7996182f9d91",
+ "name": "Add classify table",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "vpp-classifier:vpp-classifier",
+ "classify-table",
+ "table0"
+ ]
+ },
+ "description": "Corresponds to cli command:\n\nclassify table mask l3 ip4 src"
+ },
+ "response": []
},
{
- "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}"
+ "_postman_id": "f5d9d290-695b-4a51-b818-cac6e21df420",
+ "name": "Add classify session",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "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",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "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"
+ ]
+ },
+ "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"
+ },
+ "response": []
},
{
- "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,
+ "_postman_id": "5feea475-5e88-4b16-9386-5a9bf6035aa2",
"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}"
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\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}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operational/vpp-classifier:vpp-classifier-state/classify-table/table0",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "vpp-classifier:vpp-classifier-state",
+ "classify-table",
+ "table0"
+ ]
+ }
+ },
+ "response": []
},
{
- "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,
+ "_postman_id": "dd64b3d0-24c8-475c-8de4-fc878c2815af",
"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}"
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"interface-policer:policer\": {\n\t\t\"ip4-table\": \"table0\"\n }\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-policer:policer",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "ietf-interfaces:interfaces",
+ "interface",
+ "local0",
+ "interface-policer:policer"
+ ]
+ },
+ "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"
+ },
+ "response": []
+ },
+ {
+ "_postman_id": "591a573f-f74f-45c7-b65a-9c9ae8279c13",
+ "name": "show interface policer assignment",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"interface-policer:policer\": {\n\t\t\"ip4-table\": \"table0\"\n }\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "ietf-interfaces:interfaces-state",
+ "interface",
+ "local0",
+ ""
+ ]
+ },
+ "description": "Corresponds to\nvat# policer_classify_dump type ip4\nvat# policer_classify_dump type ip6\nvat# policer_classify_dump type l2"
+ },
+ "response": []
}
]
} \ No newline at end of file