summaryrefslogtreecommitdiffstats
path: root/vpp-classifier
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-03-21 12:45:06 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-03-21 12:45:33 +0100
commit67d283fac325adb071d0cf8446afd523bb4446fd (patch)
treecd64461e25330d9a6e5d8936a56ed5ca73b7dd21 /vpp-classifier
parent95d18b91f26cae876bec3e946ee1f390007137eb (diff)
HC2VPP-39: policer postman collection
Change-Id: Ia64f6e7493e1c60838c1a858377f772c9d82d028 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'vpp-classifier')
-rw-r--r--vpp-classifier/policer_postman_collection.json173
1 files changed, 173 insertions, 0 deletions
diff --git a/vpp-classifier/policer_postman_collection.json b/vpp-classifier/policer_postman_collection.json
new file mode 100644
index 000000000..5bb646265
--- /dev/null
+++ b/vpp-classifier/policer_postman_collection.json
@@ -0,0 +1,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}"
+ }
+ ]
+} \ No newline at end of file