{ "info": { "_postman_id": "6db7950e-08eb-49c2-849d-a9b810b100ca", "name": "Honeycomb RESTCONF calls for NSH_SFC", "description": "Common mgmt operations on VPP using Honeycomb REST interface", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "NSH_Egress_Classifier", "item": [ { "name": "1_Add vxlan-gpe from SFF2 - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun6" ] } }, "response": [] }, { "name": "1_Get vxlan-gpe - 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/ietf-interfaces:interfaces/interface/vxlanGpeTun6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun6" ] } }, "response": [] }, { "name": "2_Add nsh-entry from SFF2 - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry6" ] } }, "response": [] }, { "name": "2_Get nsh-entry - 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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry6" ] } }, "response": [] }, { "name": "3_Add nsh-map from SFF2 to Egress - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap6" ] } }, "response": [] }, { "name": "3_Get nsh-map - 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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap6" ] } }, "response": [] }, { "name": "1_Delete nsh-map from SFF2 to Egress - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap6" ] } }, "response": [] }, { "name": "2_Delete nsh-entry from SFF2 - cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry6" ] } }, "response": [] }, { "name": "3_Delete vxlan-gpe from SFF2 - cfg", "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/vxlanGpeTun6", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun6" ] } }, "response": [] } ] }, { "name": "NSH_Ingress_Classifier", "item": [ { "name": "1_Add classify table1 - cfg", "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 \"classifier-node\": \"l2-input-classify\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"deny\",\n \"mask\": \"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:ff: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. 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" }, "response": [] }, { "name": "2_Add classify session - cfg", "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\": \"nsh-classifier\",\n \"opaque_index\": \"47615\",\n \"match\": \"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06: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/classify-session/00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00:00:00:00:00", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-classifier:vpp-classifier", "classify-table", "table1", "classify-session", "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00: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": [] }, { "name": "3_Create bridge domain - cfg", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"l2_classifier_bd\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/v3po:bridge-domains/bridge-domain/l2_classifier_bd", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "v3po:bridge-domains", "bridge-domain", "l2_classifier_bd" ] }, "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" }, "response": [] }, { "name": "4_Add interface to bridge domain - cfg", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"l2\": {\r\n \"bridge-domain\": \"l2_classifier_bd\",\r\n \"split-horizon-group\": 1,\r\n \"bridged-virtual-interface\": \"false\"\r\n }\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/v3po:l2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "v3po:l2" ] }, "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" }, "response": [] }, { "name": "5_Enable Ipv4 ACL on interface - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"ingress\": {\n \"ip4-acl\": {\n \"classify-table\": \"table1\"\n }\n }\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-interface-acl:acl/ingress", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "vpp-interface-acl:acl", "ingress" ] }, "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": [] }, { "name": "6_Add vxlan-gpe from Classifier to SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun7\",\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.71\",\r\n \"remote\" : \"192.168.50.76\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun7" ] } }, "response": [] }, { "name": "7_Add nsh-entry from Classifier to SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry7\",\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\": \"255\",\r\n \"c1\": \"1\",\r\n \"c2\": \"2\",\r\n \"c3\": \"3\",\r\n \"c4\": \"4\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry7" ] } }, "response": [] }, { "name": "8_Add nsh-map from Classifier to SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap7\",\r\n \"nsp\": \"185\",\r\n \"nsi\": \"255\",\r\n \"mapped-nsp\": \"185\",\r\n \"mapped-nsi\": \"255\",\r\n \"nsh-action\": \"push\",\r\n \"encap-type\": \"vxlan-gpe\",\r\n \"encap-if-name\": \"vxlanGpeTun7\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap7" ] } }, "response": [] }, { "name": "1_Delete nsh-map from SF to SFF2 - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap7" ] } }, "response": [] }, { "name": "2_Delete nsh-entry from SF- cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry7" ] } }, "response": [] }, { "name": "3_Delete vxlan-gpe to SFF2 - cfg", "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/vxlanGpeTun7", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun7" ] } }, "response": [] }, { "name": "4_Disable Ipv4 ACL on interface - cfg", "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/GigabitEthernet0%2F9%2F0/vpp-interface-acl:acl/ingress", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "vpp-interface-acl:acl", "ingress" ] }, "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": [] }, { "name": "5_Remove interface from bridge domain", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/v3po:l2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "v3po:l2" ] }, "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" }, "response": [] }, { "name": "6_Remove bridge domain - cfg", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/v3po:bridge-domains/bridge-domain/l2_classifier_bd", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "v3po:bridge-domains", "bridge-domain", "l2_classifier_bd" ] }, "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" }, "response": [] }, { "name": "7_Remove classify session - cfg", "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/classify-session/00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00:00:00:00:00", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-classifier:vpp-classifier", "classify-table", "table1", "classify-session", "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:06:00:00:00:00: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": [] }, { "name": "8_Remove classify table1 - cfg", "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": "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" }, "response": [] } ] }, { "name": "NSH_Proxy", "item": [ { "name": "1_Add vxlan-gpe from SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun4\",\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.73\",\r\n \"remote\" : \"192.168.50.76\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun4" ] } }, "response": [] }, { "name": "2_Add vxlan to SF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanTun5\",\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.50.73\",\r\n \"dst\" : \"192.168.50.74\",\r\n \"vni\" : \"1\",\r\n \"encap-vrf-id\" : \"0\",\r\n \"decap-next\" : \"nsh-proxy\"\r\n }\r\n }\r\n ]\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun5" ] } }, "response": [] }, { "name": "2_Get vxlans", "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/ietf-interfaces:interfaces/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "" ] } }, "response": [] }, { "name": "3_Add nsh-entry from SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry4\",\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\": \"255\",\r\n \"c1\": \"1\",\r\n \"c2\": \"2\",\r\n \"c3\": \"3\",\r\n \"c4\": \"4\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry4" ] } }, "response": [] }, { "name": "4_Add nsh-entry to SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry5\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry5" ] } }, "response": [] }, { "name": "4_Get nsh-entries", "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-nsh:vpp-nsh/nsh-entries/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "" ] } }, "response": [] }, { "name": "5_Add nsh-map from SFF to SF - cfg ", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap4\",\r\n \"nsp\": \"185\",\r\n \"nsi\": \"255\",\r\n \"mapped-nsp\": \"185\",\r\n \"mapped-nsi\": \"255\",\r\n \"nsh-action\": \"pop\",\r\n \"encap-type\": \"vxlan4\",\r\n \"encap-if-name\": \"vxlanTun5\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap4" ] } }, "response": [] }, { "name": "6_Add nsh-map from SF to SFF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap5\",\r\n \"nsp\": \"185\",\r\n \"nsi\": \"254\",\r\n \"mapped-nsp\": \"185\",\r\n \"mapped-nsi\": \"254\",\r\n \"nsh-action\": \"push\",\r\n \"encap-type\": \"vxlan-gpe\",\r\n \"encap-if-name\": \"vxlanGpeTun4\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap5" ] } }, "response": [] }, { "name": "6_Get nsh-maps", "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-nsh:vpp-nsh/nsh-maps", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps" ] }, "description": "nshMap8 was not created" }, "response": [] }, { "name": "1_Delete nsh-map from SF to SFF - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap5" ] } }, "response": [] }, { "name": "2_Delete nsh-map from SFF to SF - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap4" ] } }, "response": [] }, { "name": "3_Delete nsh-entry to SFF - cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry5" ] } }, "response": [] }, { "name": "4_Delete nsh-entry from SFF - cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry4" ] } }, "response": [] }, { "name": "5_Delete vxlan to SF - cfg", "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/vxlanTun5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun5" ] } }, "response": [] }, { "name": "6_Delete vxlan-gpe from SFF - cfg", "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/vxlanGpeTun4", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun4" ] } }, "response": [] } ] }, { "name": "NSH_SFC Basic Test", "item": [ { "name": "1_Add vxlan-gpeTun3", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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 \"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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "1_GET vxlan-gpeTun3 Config", "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/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "1_GET vxlan-gpeTun3 Operational", "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/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "1_Delete vxlan-gpeTun3", "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/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "2_Add nsh-entry - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry3\",\r\n \"version\": \"0\",\r\n \"length\": \"6\",\r\n \"md-type\": \"md-type1\",\r\n \"next-protocol\": \"ethernet\",\r\n \"nsp\": \"184\",\r\n \"nsi\": \"255\",\r\n \"c1\": \"1\",\r\n \"c2\": \"2\",\r\n \"c3\": \"3\",\r\n \"c4\": \"4\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry3" ] } }, "response": [] }, { "name": "2_Get nsh-entry - 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-nsh:vpp-nsh-state/nsh-entries/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "vpp-nsh:vpp-nsh-state", "nsh-entries", "" ] } }, "response": [] }, { "name": "3_Delete nsh-entry - cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry3" ] } }, "response": [] }, { "name": "4_Add nsh-map - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap5\",\r\n \"nsp\": \"184\",\r\n \"nsi\": \"255\",\r\n \"mapped-nsp\": \"183\",\r\n \"mapped-nsi\": \"254\",\r\n \"nsh-action\": \"push\",\r\n \"encap-type\": \"vxlan-gpe\",\r\n \"encap-if-name\": \"vxlanGpeTun3\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap5" ] }, "description": "Precondition: VXLAN-GPE-TUNNEL Basic Test.Add vxlan-gpe-cfg" }, "response": [] }, { "name": "4_Get nsh-map - 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-nsh:vpp-nsh-state/nsh-maps/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "vpp-nsh:vpp-nsh-state", "nsh-maps", "" ] } }, "response": [] }, { "name": "5_Delete nsh-map - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap5" ] } }, "response": [] }, { "name": "Get nsh-map-for-proxy - 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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap8", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap8" ] }, "description": "nshMap8 was not created" }, "response": [] }, { "name": "6_Get nsh-map-for-proxy - 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-nsh:vpp-nsh-state/nsh-maps/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "vpp-nsh:vpp-nsh-state", "nsh-maps", "" ] } }, "response": [] }, { "name": "Delete nsh-map-for-proxy - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap8", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap8" ] }, "description": "nshMap8 was not created" }, "response": [] }, { "name": "7_Add nsh-entry-for-md2 - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry2\",\r\n \"version\": \"0\",\r\n \"length\": \"4\",\r\n \"md-type\": \"md-type2\",\r\n \"next-protocol\": \"ethernet\",\r\n \"nsp\": \"182\",\r\n \"nsi\": \"255\",\r\n \"md2-data\": [\r\n {\r\n \t\"md2_class\": \"9\",\r\n \t\"type\": \"59\",\r\n \t\"len\": \"4\",\r\n \t\"metadata\": \"12345678\"\r\n } \t\r\n ]\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry2" ] } }, "response": [] }, { "name": "8_Get nsh-entry-for-md2 - 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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry2" ] } }, "response": [] }, { "name": "8_Get nsh-entry-for-md2 - 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-nsh:vpp-nsh-state/nsh-entries/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "vpp-nsh:vpp-nsh-state", "nsh-entries", "" ] } }, "response": [] }, { "name": "9_Delete nsh-entry-for-md2 - cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry2" ] } }, "response": [] } ] }, { "name": "NSH_SFF1", "item": [ { "name": "1_Add vxlan-gpe from Classifier - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun1\",\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.76\",\r\n \"remote\" : \"192.168.50.71\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun1" ] } }, "response": [] }, { "name": "Get vxlan-gpe - 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/ietf-interfaces:interfaces/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "" ] } }, "response": [] }, { "name": "2_Add vxlan-gpe to SF or Proxy - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun2\",\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.76\",\r\n \"remote\" : \"192.168.50.72\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun2" ] } }, "response": [] }, { "name": "3_Add vxlan-gpe to SFF2 - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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 \"ipv4-vrf-id\" : \"0\"\r\n },\r\n \"vxlan-gpe\" : {\r\n \"local\" : \"192.168.50.76\",\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "4_Add nsh-entry from Classifier - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-entry\": [\r\n {\r\n \"name\": \"nshEntry1\",\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\": \"255\",\r\n \"c1\": \"1\",\r\n \"c2\": \"2\",\r\n \"c3\": \"3\",\r\n \"c4\": \"4\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry1" ] } }, "response": [] }, { "name": "5_Add nsh-entry from SF or Proxy - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry2" ] } }, "response": [] }, { "name": "6_Add nsh-map from Classifier to SF - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap1\",\r\n \"nsp\": \"185\",\r\n \"nsi\": \"255\",\r\n \"mapped-nsp\": \"185\",\r\n \"mapped-nsi\": \"255\",\r\n \"nsh-action\": \"swap\",\r\n \"encap-type\": \"vxlan-gpe\",\r\n \"encap-if-name\": \"vxlanGpeTun2\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap1" ] } }, "response": [] }, { "name": "7_Add nsh-map from SF to SFF2 - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"nsh-map\": [\r\n {\r\n \"name\": \"nshMap2\",\r\n \"nsp\": \"185\",\r\n \"nsi\": \"254\",\r\n \"mapped-nsp\": \"185\",\r\n \"mapped-nsi\": \"254\",\r\n \"nsh-action\": \"swap\",\r\n \"encap-type\": \"vxlan-gpe\",\r\n \"encap-if-name\": \"vxlanGpeTun3\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap2" ] } }, "response": [] }, { "name": "1_Delete nsh-map from SF to SFF2 - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap2" ] } }, "response": [] }, { "name": "2_Delete nsh-map from Classifier to SF - cfg", "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-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-maps", "nsh-map", "nshMap1" ] } }, "response": [] }, { "name": "3_Delete nsh-entry from SF- cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry2" ] } }, "response": [] }, { "name": "4_Delete nsh-entry from Classifier- cfg", "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-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "vpp-nsh:vpp-nsh", "nsh-entries", "nsh-entry", "nshEntry1" ] } }, "response": [] }, { "name": "5_Delete vxlan-gpe to SFF2 - cfg", "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/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "6_Delete vxlan-gpe to SF or Proxy - cfg", "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/vxlanGpeTun2", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun2" ] } }, "response": [] }, { "name": "7_Delete vxlan-gpe from Classifier - cfg", "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/vxlanGpeTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun1" ] } }, "response": [] } ] }, { "name": "VXLAN-GPE-TUNNEL Basic Test", "item": [ { "name": "Add vxlan-gpe - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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 \"ipv4-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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "Get vxlan-gpe - 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/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "Get vxlan-gpe - 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/ietf-interfaces:interfaces/interface/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] }, { "name": "Delete vxlan-gpe - cfg", "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/vxlanGpeTun3", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanGpeTun3" ] } }, "response": [] } ] }, { "name": "VXLAN-TUNNEL Basic Test", "item": [ { "name": "Add virtual ifc - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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 }\r\n }\r\n ]\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun1" ] } }, "response": [] }, { "name": "Get virtual ifc - 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/ietf-interfaces:interfaces/interface/vxlanTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun1" ] } }, "response": [] }, { "name": "Get virtual ifc - 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/ietf-interfaces:interfaces/interface/vxlanTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces", "interface", "vxlanTun1" ] } }, "response": [] }, { "name": "Delete virtual ifc - cfg", "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/vxlanTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun1" ] } }, "response": [] }, { "name": "Add virtual ifc with nsh-proxy - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "vxlanTun1" ] } }, "response": [] } ] } ] }