summaryrefslogtreecommitdiffstats
path: root/nat/postman_rest_collection.json
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-10-05 15:03:33 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-10-14 05:42:54 +0000
commit4befd4ce4c0c7fc404e5100f4b52db4b3e441614 (patch)
treec809966bd051535f272862ea4427209d871b73d0 /nat/postman_rest_collection.json
parentf7109d63d67c40d9597ffc250cbf27d160a3a424 (diff)
HONEYCOMB-229 Introduce NAT to HC
Reflects SNAT from VPP: - 1:1 Static IPv4 mapping - interface in/out NAT feature management Bonus: - Support presence containers in infra Change-Id: Ieb38526f83edbae5e605d5c7e39bb22bbafc50e5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'nat/postman_rest_collection.json')
-rw-r--r--nat/postman_rest_collection.json222
1 files changed, 222 insertions, 0 deletions
diff --git a/nat/postman_rest_collection.json b/nat/postman_rest_collection.json
new file mode 100644
index 000000000..348d60338
--- /dev/null
+++ b/nat/postman_rest_collection.json
@@ -0,0 +1,222 @@
+{
+ "id": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "name": "Honeycomb NAT RESTCONF calls",
+ "description": "Common management operations for Honeycomb + VPP + SNAT plugin",
+ "order": [
+ "d2961af7-47f7-8960-1b00-f5dcd2beafb9",
+ "c00f25d2-f194-2e90-30e5-ca31e8fbd630",
+ "1ffc71e4-9d1e-0c99-7901-605ac8e364b6",
+ "f3a7e1b5-c1d0-ab2f-3cef-3c902f8e72d5"
+ ],
+ "folders": [
+ {
+ "id": "ce93ade0-47c3-a82d-a768-058a2e18e2bb",
+ "name": "1:1 static",
+ "description": "",
+ "order": [
+ "bca19675-d674-0cde-8639-df3d2ecbfd27",
+ "153f5720-fafc-22e6-6282-cf9e18226dbc",
+ "830c4ab3-2e48-5654-8aa5-2d2f9eed84b4",
+ "2c53651a-e31c-24da-122e-c0ce65544c8e",
+ "b54693d5-9226-1c27-77b2-8b1313da2e80"
+ ],
+ "owner": "45557",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde"
+ }
+ ],
+ "timestamp": 1475147449190,
+ "owner": "45557",
+ "public": false,
+ "published": false,
+ "requests": [
+ {
+ "id": "153f5720-fafc-22e6-6282-cf9e18226dbc",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operational/naming-context:contexts",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "GET",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Get NAT context -context",
+ "description": "Read nat context ",
+ "descriptionFormat": "html",
+ "time": 1475678940763,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "ce93ade0-47c3-a82d-a768-058a2e18e2bb",
+ "rawModeData": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "1ffc71e4-9d1e-0c99-7901-605ac8e364b6",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/outbound",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1475154424741,
+ "name": "Set NAT outbound for ifc - cfg",
+ "description": "Setting intarface NAT outbound feature\n\nCLI: set interface snat in <intfc> out <intfc> [del]\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "responses": [],
+ "rawModeData": "{\r\n \r\n \"outbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "2c53651a-e31c-24da-122e-c0ce65544c8e",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "GET",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1475678997603,
+ "name": "Get NAT - config",
+ "description": "Read nat-state",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "responses": [],
+ "rawModeData": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "830c4ab3-2e48-5654-8aa5-2d2f9eed84b4",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operational/ietf-nat:nat-state",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "GET",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Get NAT -state",
+ "description": "Read nat-state\n\nCLI: show snat [detail|verbose]\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "descriptionFormat": "html",
+ "time": 1475677867416,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "ce93ade0-47c3-a82d-a768-058a2e18e2bb",
+ "rawModeData": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "b54693d5-9226-1c27-77b2-8b1313da2e80",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/mapping-table/mapping-entry/1/",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "DELETE",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Delete SNAT 1:1 static entry IPv4 -cfg",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1475761660317,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "ce93ade0-47c3-a82d-a768-058a2e18e2bb",
+ "rawModeData": "{\r\n\t\"mapping-entry\" : {\r\n\t\t\"index\": 1,\r\n\t\t\"type\": \"static\",\r\n\t\t\"internal-src-address\": \"192.168.1.87\",\r\n\t\t\"external-src-address\": \"45.1.5.7\"\r\n\t}\r\n}"
+ },
+ {
+ "id": "bca19675-d674-0cde-8639-df3d2ecbfd27",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/mapping-table/mapping-entry/1/",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1475758450889,
+ "name": "Add SNAT 1:1 static entry IPv4 -cfg",
+ "description": "CLI: snat add static mapping local 10.0.0.3 external 4.4.4.4\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "responses": [],
+ "rawModeData": "{\r\n\t\"mapping-entry\" : {\r\n\t\t\"index\": 1,\r\n\t\t\"type\": \"static\",\r\n\t\t\"internal-src-address\": \"192.168.1.87\",\r\n\t\t\"external-src-address\": \"45.1.5.7\"\r\n\t}\r\n}"
+ },
+ {
+ "id": "c00f25d2-f194-2e90-30e5-ca31e8fbd630",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/inbound",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "DELETE",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Disable NAT inbound for ifc - cfg",
+ "description": "Unsetting intarface NAT inbound feature\n\nCLI: set interface snat in <intfc> out <intfc> [del]\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "descriptionFormat": "html",
+ "time": 1475835912474,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "rawModeData": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "d2961af7-47f7-8960-1b00-f5dcd2beafb9",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/inbound",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "PUT",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Set NAT inbound for ifc - cfg",
+ "description": "Setting intarface NAT inbound feature\n\nCLI: set interface snat in <intfc> out <intfc> [del]\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "descriptionFormat": "html",
+ "time": 1475154374071,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "rawModeData": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}"
+ },
+ {
+ "id": "f3a7e1b5-c1d0-ab2f-3cef-3c902f8e72d5",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/outbound",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "DELETE",
+ "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Disable NAT outbound for ifc - cfg",
+ "description": "Unsetting intarface NAT outbound feature\n\nCLI: set interface snat in <intfc> out <intfc> [del]\n\nMore information: https://wiki.fd.io/view/VPP/SNAT",
+ "descriptionFormat": "html",
+ "time": 1475835941689,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "rawModeData": "{\r\n \r\n \"outbound\" : {}\r\n \r\n}"
+ }
+ ]
+} \ No newline at end of file