{ "info": { "_postman_id": "5f48ebd9-e156-043d-48a5-00da9142c738", "name": "Vpp Classifier ACl Collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "_postman_id": "b2ccf814-b527-482a-96de-e26d2246ea35", "name": "ACL", "description": "", "item": [ { "_postman_id": "b42a331f-2d74-498c-95b7-8c725c392842", "name": "Get classify tables - cfg", "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/config/vpp-classifier:vpp-classifier/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-classifier:vpp-classifier", "" ] }, "description": "Shows classify table configuration." }, "response": [] }, { "_postman_id": "2ff0a5bd-9f65-4cca-9230-24709bdfdf5c", "name": "Get classify tables - 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/vpp-classifier:vpp-classifier-state/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "vpp-classifier:vpp-classifier-state", "" ] }, "description": "Shows classify tables configured in the VPP.\n\nCorresponds to:\n\nvppctl sh class table verbose" }, "response": [] }, { "_postman_id": "a616e4a5-54fc-4cb5-9a71-856912c673aa", "name": "Add classify table0", "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:ff:ff:ff:ff:ff:ff:00:00: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": "Adds classify table0. Corresponding vpp cli command:\n\nvppctl classify table mask l2 src\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 0" }, "response": [] }, { "_postman_id": "b177fbd9-f0c8-4948-8b33-f7742960c81d", "name": "Get classify table - 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/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" ] }, "description": "Shows classify table 0 operational state.\n\nCorresponds to:\n\nvat# classify_table_info table_id 0" }, "response": [] }, { "_postman_id": "de273226-a6ac-4239-a623-5fc9bee250b5", "name": "Add classify table1", "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\": \"table1\",\n \"next_table\": \"table0\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"permit\",\n \"mask\": \"ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00\"\n }\n ]\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-classifier:vpp-classifier", "classify-table", "table1" ] }, "description": "Adds classify table1 chained to classify table0.\n\nCorresponding vpp cli command:\n\nvppctl classify table mask l2 dst next-table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 1" }, "response": [] }, { "_postman_id": "5ca03ab9-b123-4a16-8201-1ad5f2b20bc4", "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 \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:06:00:00: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:01:02:03:04:05:06:00:00: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:01:02:03:04:05:06:00:00:00:00" ] }, "description": "Adds classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:06\n\nTo verify invoke:\n\nvppctl sh class table verbose" }, "response": [] }, { "_postman_id": "cff7e1d2-2575-494b-8d8a-f97d476bc335", "name": "Add another 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 \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:07:00:00: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:01:02:03:04:05:07:00:00: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:01:02:03:04:05:07:00:00:00:00" ] }, "description": "Adds second classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:07\n\nTo verify invoke:\n\nvppctl sh class table verbose" }, "response": [] }, { "_postman_id": "72d75a3f-2899-49de-8d4e-f9350d694b5a", "name": "Enable L2 and Ipv4 ACL on local0 interface", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vpp-interface-acl:acl\": {\n \t\"ingress\":{\n \t\t\"l2-acl\": {\n \"classify-table\": \"table0\"\n },\n \"ip4-acl\": {\n \"classify-table\": \"table0\"\n }\t\t\n \t}\n \n }\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/vpp-interface-acl:acl", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "vpp-interface-acl:acl" ] }, "description": "Enables L2 and Ipv4 ACL on local0. Corresponding vpp cli commands:\n\nset int input acl intfc local0 l2-table 0\n\nset int input acl intfc local0 ip4-table 0\n\nTo verify invoke:\n\nvppctl show inacl type l2\n\nthen:\n\nvppctl show inacl type ip4" }, "response": [] }, { "_postman_id": "e5cf2d76-1425-4c53-91e6-c1650ce8c3dd", "name": "Disable ACL on local0 interface", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/vpp-interface-acl:acl", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "vpp-interface-acl:acl" ] }, "description": "Disables ACL on local0. To verify invoke:\n\nvppctl show inacl type l2\n\nand:\n\nvppctl show inacl type ip4" }, "response": [] }, { "_postman_id": "4ea4d2ff-1ad5-46b9-855c-ebee47c954c6", "name": "Remove classify session", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:06:00:00: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:01:02:03:04:05:06:00:00:00:00" ] }, "description": "Removes classify session. To verify invoke:\n\nvppctl sh class table verbose" }, "response": [] }, { "_postman_id": "31cacf49-fbb0-432b-b57d-96c04043e7bd", "name": "Remove classify table0", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "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": "Removes classify table0. Corresponds to the following command:\n\nvppctl classify table del table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose" }, "response": [] }, { "_postman_id": "54ea2192-04c6-4aa5-8c44-d54c9d305ffa", "name": "Remove classify table1", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-classifier:vpp-classifier", "classify-table", "table1" ] }, "description": "Removes classify table1. Corresponds to the following command:\n\nvppctl classify table del table 1\n\nTo verify invoke:\n\nvppctl sh class table verbose" }, "response": [] } ] } ] }