Postman for NSH Egress Classifier 56/5156/2
authorHongjun Ni <[email protected]>
Thu, 16 Feb 2017 16:46:14 +0000 (00:46 +0800)
committerMarek Gradzki <[email protected]>
Thu, 16 Feb 2017 13:55:19 +0000 (13:55 +0000)
Change-Id: I94fb36cfc2610a727043f6f1e778cfe4d09f3488
Signed-off-by: Hongjun Ni <[email protected]>
nsh/nsh_postman_collection.json

index db5f957..39dc34b 100644 (file)
@@ -4,9 +4,24 @@
        "description": "Common mgmt operations on VPP using Honeycomb REST interface",
        "order": [],
        "folders": [
+               {
+                       "id": "bea08442-052a-6a77-fd56-0cfaa69dee0a",
+                       "name": "NSH_Egress_Classifier",
+                       "description": "",
+                       "order": [
+                               "8039be19-36dd-f79e-66bd-5df901e5cb5c",
+                               "52245ebc-983f-6313-4f4c-1f776f0e2a01",
+                               "ebf8eb35-03b9-3fb9-3ef5-d9ef2a5ecc52",
+                               "d1f99723-5f2c-90b6-b17b-dd35cf5d1505",
+                               "f3e799a5-10a8-1a88-afbf-825f66874685",
+                               "4c8a3ce8-7e68-2a8c-998b-09f274d8085e"
+                       ],
+                       "owner": "652751",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9"
+               },
                {
                        "id": "0f0316a8-f686-80b2-728b-d52e6d711d4c",
-                       "name": "NSH_Classifier",
+                       "name": "NSH_Ingress_Classifier",
                        "description": "",
                        "order": [
                                "53496ff6-b3b8-bd37-aa12-a49c83386d86",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632389744,
+                       "time": 1487144595272,
                        "name": "7_Remove classify session - cfg",
                        "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",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                {
                        "id": "3c13298c-3619-391b-c808-5206d17a84d5",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "GET",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1480995224611,
+                       "time": 1486540999361,
                        "name": "Get nsh-entry - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "responses": [],
                        "rawModeData": ""
                },
+               {
+                       "id": "4c8a3ce8-7e68-2a8c-998b-09f274d8085e",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148268260,
+                       "name": "3_Delete vxlan-gpe from SFF2 - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": ""
+               },
                {
                        "id": "4d8de77e-5342-3144-e904-d067eaa6a5cc",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
                        "responses": [],
                        "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanTun1\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"ipv4-vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan\" : {\r\n                    \"src\" : \"192.168.1.6\",\r\n                    \"dst\" : \"192.168.1.9\",\r\n                    \"vni\" : \"88\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-next\" : \"nsh-proxy\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
                },
+               {
+                       "id": "52245ebc-983f-6313-4f4c-1f776f0e2a01",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148259249,
+                       "name": "2_Add nsh-entry from SFF2 - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-entry\": [\r\n        {\r\n            \"name\": \"nshEntry6\",\r\n            \"version\": \"0\",\r\n            \"length\": \"6\",\r\n            \"md-type\": \"md-type1\",\r\n            \"next-protocol\": \"ethernet\",\r\n            \"nsp\": \"185\",\r\n            \"nsi\": \"253\",\r\n            \"c1\": \"1\",\r\n            \"c2\": \"2\",\r\n            \"c3\": \"3\",\r\n            \"c4\": \"4\"\r\n        }\r\n    ]\r\n}"
+               },
                {
                        "id": "53496ff6-b3b8-bd37-aa12-a49c83386d86",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484711092019,
+                       "time": 1487144553580,
                        "name": "1_Add classify table1 - cfg",
                        "description": "Adds classify table1. 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 1",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1480995229013,
+                       "time": 1486541001963,
                        "name": "Get nsh-entry - oper",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632373158,
+                       "time": 1487144575420,
                        "name": "1_Delete nsh-map from SF to SFF2 - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632370544,
+                       "time": 1487144572434,
                        "name": "8_Add nsh-map from Classifier to SFF - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632368244,
+                       "time": 1487144568979,
                        "name": "7_Add nsh-entry from Classifier to SFF - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "responses": [],
                        "rawModeData": "{\r\n    \"nsh-entry\": [\r\n        {\r\n            \"name\": \"nshEntry2\",\r\n            \"version\": \"0\",\r\n            \"length\": \"6\",\r\n            \"md-type\": \"md-type1\",\r\n            \"next-protocol\": \"ethernet\",\r\n            \"nsp\": \"185\",\r\n            \"nsi\": \"254\",\r\n            \"c1\": \"11\",\r\n            \"c2\": \"12\",\r\n            \"c3\": \"13\",\r\n            \"c4\": \"14\"\r\n        }\r\n    ]\r\n}"
                },
+               {
+                       "id": "8039be19-36dd-f79e-66bd-5df901e5cb5c",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148255746,
+                       "name": "1_Add vxlan-gpe from SFF2 - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanGpeTun6\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"ipv4-vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan-gpe\" : {\r\n                    \"local\" : \"192.168.50.77\",\r\n                    \"remote\" : \"192.168.50.73\",\r\n                    \"vni\" : \"9\",\r\n                    \"next-protocol\" : \"nsh\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
+               },
                {
                        "id": "8a02106e-4c3b-b08f-7607-e766fc460d15",
                        "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632357098,
+                       "time": 1487144559220,
                        "name": "3_Create bridge domain - cfg",
                        "description": "Creates bridgfe domain. Corresponds to invoking:\n\nvat#  bridge_domain_add_del bd_id [bd_id] learn 0 forward 0 uu-flood 0 flood 1 arp-term 0\n\nTo verify run:\n\nvppctl show bridge-domain [bd_id] detail",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                {
                        "id": "911beeb5-61c1-bdb5-a850-96171a6686ae",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "PUT",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1480995234094,
+                       "time": 1486541005541,
                        "name": "Add nsh-map - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632381203,
+                       "time": 1487144584624,
                        "name": "4_Disable Ipv4 ACL on interface - cfg",
                        "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",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632378649,
+                       "time": 1487144580906,
                        "name": "3_Delete vxlan-gpe to SFF2 - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632365137,
+                       "time": 1487144566741,
                        "name": "6_Add vxlan-gpe from Classifier to SFF - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632362696,
+                       "time": 1487144564516,
                        "name": "5_Enable Ipv4 ACL on interface - cfg",
                        "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",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632375680,
+                       "time": 1487144578125,
                        "name": "2_Delete nsh-entry from SF- cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1480995240163,
+                       "time": 1486541010637,
                        "name": "Get nsh-map - oper",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "responses": [],
                        "rawModeData": "{\r\n    \r\n        \"nsh-entry\": [\r\n            {\r\n                \"name\": \"nshEntry5\",\r\n                \"description\": \"for testing nshEntry\",\r\n                \"version\": \"0\",\r\n                \"length\": \"6\",\r\n                \"next-protocol\": \"Ethernet\",\r\n                \"md-type\": \"MdType1\",\r\n                \"nsp\": \"185\",\r\n                \"nsi\": \"255\"             \r\n            }\r\n        ]\r\n    \r\n}"
                },
+               {
+                       "id": "d1f99723-5f2c-90b6-b17b-dd35cf5d1505",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148263771,
+                       "name": "1_Delete nsh-map from SFF2 to Egress - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-map\": [\r\n        {\r\n            \"name\": \"nshMap6\",\r\n            \"nsp\": \"185\",\r\n            \"nsi\": \"253\",\r\n            \"mapped-nsp\": \"185\",\r\n            \"mapped-nsi\": \"253\"             \r\n        }\r\n    ]\r\n}"
+               },
                {
                        "id": "d7d83338-d147-fee2-5a96-e70159aad0ea",
                        "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632360420,
+                       "time": 1487144562134,
                        "name": "4_Add interface to bridge domain - cfg",
                        "description": "Adds l2 interconnection of bridge-based type to local0 interface.\nCorresponds to the following command:\n\nvppctl set interface l2 bridge local0 [bd_id]\n\nTo verify invoke:\n\nvppctl show bridge-domain [bd_id] detail",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                {
                        "id": "df2ec9ba-6a30-fc30-45db-365b666487c8",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "GET",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1480995236692,
+                       "time": 1486541007962,
                        "name": "Get nsh-map - cfg",
                        "description": "",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632384404,
+                       "time": 1487144588166,
                        "name": "5_Remove interface from bridge domain",
                        "description": "Removes l2 interconnection of bridge-based type from local0 interface.\nCorresponds to the following VAT command:\n\nvat# sw_interface_set_l2_bridge sw_if_index 0 bd_id 1 disable\n\nVerification in VAT:\n\nvat# bridge_domain_dump",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "responses": [],
                        "rawModeData": ""
                },
+               {
+                       "id": "ebf8eb35-03b9-3fb9-3ef5-d9ef2a5ecc52",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148261620,
+                       "name": "3_Add nsh-map from SFF2 to Egress - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-map\": [\r\n        {\r\n            \"name\": \"nshMap6\",\r\n            \"nsp\": \"185\",\r\n            \"nsi\": \"253\",\r\n            \"mapped-nsp\": \"185\",\r\n            \"mapped-nsi\": \"253\",\r\n            \"nsh-action\": \"pop\",\r\n            \"encap-type\": \"none\"\r\n        }\r\n    ]\r\n}"
+               },
                {
                        "id": "ee2676f9-ce96-cae1-2d47-8515fc58dd78",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
                        "responses": [],
                        "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanGpeTun3\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan-gpe\" : {\r\n                    \"local\" : \"192.168.50.76\",\r\n                    \"remote\" : \"192.168.50.71\",\r\n                    \"vni\" : \"9\",\r\n                    \"next-protocol\" : \"ethernet\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
                },
+               {
+                       "id": "f3e799a5-10a8-1a88-afbf-825f66874685",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1487148265899,
+                       "name": "2_Delete nsh-entry from SFF2 - cfg",
+                       "description": "",
+                       "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-entry\": [\r\n        {\r\n            \"name\": \"nshEntry6\",\r\n            \"version\": \"0\",\r\n            \"length\": \"6\",\r\n            \"md-type\": \"md-type1\",\r\n            \"next-protocol\": \"ethernet\",\r\n            \"nsp\": \"185\",\r\n            \"nsi\": \"253\"             \r\n        }\r\n    ]\r\n}"
+               },
                {
                        "id": "f85e69dd-7baf-2d63-6a62-99bffc7f508b",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632392308,
+                       "time": 1487144598189,
                        "name": "8_Remove classify table1 - cfg",
                        "description": "Adds classify table1. 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 1",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1484632387304,
+                       "time": 1487144592132,
                        "name": "6_Remove bridge domain - cfg",
                        "description": "Creates bridgfe domain. Corresponds to invoking:\n\nvat#  bridge_domain_add_del bd_id [bd_id] learn 0 forward 0 uu-flood 0 flood 1 arp-term 0\n\nTo verify run:\n\nvppctl show bridge-domain [bd_id] detail",
                        "collectionId": "a9a935b5-9481-e4f7-44fb-17d13ef726f9",