diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-02-21 13:13:08 +0100 |
---|---|---|
committer | Jan Srnicek <jsrnicek@cisco.com> | 2017-02-22 12:14:25 +0000 |
commit | 5e2a5b7199389fbac7967f710e29bb3135d790b0 (patch) | |
tree | 53a9e72f3c233fef340928bac10b84e3057a1898 /nat | |
parent | bcced0a9926d6bce032695fa52ae0ff53000e59e (diff) |
HC2VPP-80: dynamic nat cfg examples
Change-Id: I1a3208540f1b774652b4a072b5652112cda1140f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'nat')
-rw-r--r-- | nat/postman_rest_collection.json | 139 |
1 files changed, 138 insertions, 1 deletions
diff --git a/nat/postman_rest_collection.json b/nat/postman_rest_collection.json index 348d60338..247ff2612 100644 --- a/nat/postman_rest_collection.json +++ b/nat/postman_rest_collection.json @@ -6,7 +6,9 @@ "d2961af7-47f7-8960-1b00-f5dcd2beafb9", "c00f25d2-f194-2e90-30e5-ca31e8fbd630", "1ffc71e4-9d1e-0c99-7901-605ac8e364b6", - "f3a7e1b5-c1d0-ab2f-3cef-3c902f8e72d5" + "f3a7e1b5-c1d0-ab2f-3cef-3c902f8e72d5", + "26f9e8f4-db90-f7f6-0c1b-d9d20790dbcd", + "e149e9d6-3bee-1499-c03b-c1043c9a5b46" ], "folders": [ { @@ -22,6 +24,19 @@ ], "owner": "45557", "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde" + }, + { + "id": "42903502-652c-8f7d-f18b-f333b45d30de", + "name": "DYNAMIC", + "description": "", + "order": [ + "8a37a16b-c400-6468-ca9c-d2a7657f9086", + "20a8172a-7908-37cf-b63e-51fee1474d10", + "70bc0207-e806-5722-fc71-7686d7076f9d", + "87de21e5-53c7-72d5-ac92-325381246350" + ], + "owner": "45557", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde" } ], "timestamp": 1475147449190, @@ -217,6 +232,128 @@ "currentHelper": "normal", "helperAttributes": {}, "rawModeData": "{\r\n \r\n \"outbound\" : {}\r\n \r\n}" + }, + { + "id": "e149e9d6-3bee-1499-c03b-c1043c9a5b46", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/", + "pathVariables": {}, + "preRequestScript": "", + "method": "GET", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "data": [], + "dataMode": "raw", + "name": "List ifcs - cfg", + "description": "List ifcs - cfg", + "descriptionFormat": "html", + "time": 1487678576123, + "version": 2, + "responses": [], + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}" + }, + { + "id": "26f9e8f4-db90-f7f6-0c1b-d9d20790dbcd", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/", + "pathVariables": {}, + "preRequestScript": "", + "method": "GET", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "data": [], + "dataMode": "raw", + "name": "List ifcs - oper", + "description": "", + "descriptionFormat": "html", + "time": 1487678587771, + "version": 2, + "responses": [], + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}" + }, + { + "id": "70bc0207-e806-5722-fc71-7686d7076f9d", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/external-ip-address-pool/2/", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1487676902330, + "name": "Add single address to pool", + "description": "CLI: vppctl snat add address 172.16.2.123\n\nCan be verified with\nvat# snat_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/SNAT\nhttps://docs.fd.io/vpp/17.04/clicmd_src_plugins_snat.html#clicmd_set_interface_snat", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "responses": [], + "rawModeData": "{\r\n\t\"external-ip-address-pool\" : {\r\n\t\t\"pool-id\": 2,\r\n\t\t\"external-ip-pool\": \"172.16.2.123/32\"\r\n\t}\r\n}" + }, + { + "id": "87de21e5-53c7-72d5-ac92-325381246350", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/external-ip-address-pool/2/", + "preRequestScript": "", + "pathVariables": {}, + "method": "DELETE", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1487678215755, + "name": "Delete single address", + "description": "CLI: vppctl snat del address 172.16.2.123\n\nCan be verified with\nvat# snat_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/SNAT\nhttps://docs.fd.io/vpp/17.04/clicmd_src_plugins_snat.html#clicmd_set_interface_snat", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "responses": [], + "rawModeData": "" + }, + { + "id": "8a37a16b-c400-6468-ca9c-d2a7657f9086", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/external-ip-address-pool/1/", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1487676498064, + "name": "Add SNAT address pool", + "description": "CLI: vppctl snat add address 172.16.2.0 - 172.16.2.4\n\nCan be verified with\nvat# snat_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/SNAT\nhttps://docs.fd.io/vpp/17.04/clicmd_src_plugins_snat.html#clicmd_set_interface_snat", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "responses": [], + "rawModeData": "{\r\n\t\"external-ip-address-pool\" : {\r\n\t\t\"pool-id\": 1,\r\n\t\t\"external-ip-pool\": \"172.16.2.0/30\"\r\n\t}\r\n}" + }, + { + "id": "20a8172a-7908-37cf-b63e-51fee1474d10", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-nat:nat-config/nat-instances/nat-instance/0/external-ip-address-pool/1/", + "preRequestScript": "", + "pathVariables": {}, + "method": "DELETE", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1487678255065, + "name": "Delete SNAT address pool", + "description": "CLI: vppctl snat del address 172.16.2.0 - 172.16.2.4\n\nCan be verified with\nvat# snat_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/SNAT\nhttps://docs.fd.io/vpp/17.04/clicmd_src_plugins_snat.html#clicmd_set_interface_snat", + "collectionId": "f9258895-49e9-596f-d413-698cbcadfbde", + "responses": [], + "rawModeData": "" } ] }
\ No newline at end of file |