{ "info": { "_postman_id": "782eee7d-0707-428c-8d39-5d4533fefd1a", "name": "Honeycomb NAT RESTCONF calls", "description": "Common management operations for Honeycomb + VPP + SNAT plugin", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "1:1 static", "description": null, "item": [ { "name": "Add NAT 1:1 static entry IPv4 -cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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/32\",\r\n\t\t\"external-src-address\": \"45.1.5.7/32\"\r\n\t}\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/mapping-table/mapping-entry/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "mapping-table", "mapping-entry", "1", "" ] }, "description": "CLI: nat44 add static mapping local 10.0.0.3 external 4.4.4.4\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Delete SNAT 1:1 static entry IPv4 -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-nat:nat/instances/instance/0/mapping-table/mapping-entry/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "mapping-table", "mapping-entry", "1", "" ] } }, "response": [] } ] }, { "name": "DYNAMIC", "description": null, "item": [ { "name": "Add NAT address pool", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "1", "" ] }, "description": "CLI: vppctl nat44 add address 172.16.2.0 - 172.16.2.4\n\nCan be verified with\nvat# nat44_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Delete NAT address pool", "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-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "1", "" ] }, "description": "CLI: vppctl nat44 del address 172.16.2.0 - 172.16.2.4\n\nCan be verified with\nvat# nat44_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Add single address to pool", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/2/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "2", "" ] }, "description": "CLI: vppctl nat44 add address 172.16.2.123\n\nCan be verified with\nvat# nat44_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Delete single address", "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-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/2/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "2", "" ] }, "description": "CLI: vppctl nat44 del address 172.16.2.123\n\nCan be verified with\nvat# nat44_address_dump\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] } ] }, { "name": "Nat64", "description": null, "item": [ { "name": "Add NAT64 static BIB entry -cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"mapping-entry\": {\n \"index\": 1,\n \"type\": \"static\",\n \"transport-protocol\": 6,\n \"internal-src-address\": \"2001:db8:85a3::8a2e:370:7334/128\",\n \"external-src-address\": \"10.1.1.3/32\",\n \"internal-src-port\": {\n \"start-port-number\": 1234\n },\n \"external-src-port\": {\n \"start-port-number\": 5678\n }\n }\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/mapping-table/mapping-entry/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "mapping-table", "mapping-entry", "1", "" ] }, "description": "CLI: nat64 add static bib 2001:db8:85a3::8a2e:370:7334 1234 10.1.1.3 5678 tcp\n\nMore information: https://wiki.fd.io/view/VPP/NAT#Stateful_NAT64" }, "response": [] }, { "name": "Add Nat64 address pool", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"external-ip-address-pool\" : {\r\n\t\t\"pool-id\": 3,\r\n\t\t\"external-ip-pool\": \"172.16.2.0/30\",\r\n \"vpp-nat:pool-type\": \"nat64\"\r\n\t}\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/3/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "3", "" ] }, "description": "CLI: vppctl nat64 add pool address 172.16.2.0 - 172.16.2.4\n\nCan be verified with\nvppctl show nat64 pool\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT64 inbound for 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 \"inbound\" : {\r\n \t\"nat44-support\" : false,\r\n \t\"nat64-support\" : true\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Setting interface NAT64 inbound feature\n\nCLI: set interface nat64 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT64 prefix", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"nat64-prefixes\" : {\r\n\t\t\"nat64-prefix\" : \"2001:db8:122:300::/56\"\r\n\t}\r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat/instances/instance/0/policy/0/nat64-prefixes/2001%3Adb8%3A122%3A300%3A%3A%2F56", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "nat64-prefixes", "2001%3Adb8%3A122%3A300%3A%3A%2F56" ] }, "description": "Configures NAT64 prefix for default VRF\n\nCLI: nat64 add prefix / [tenant-vrf ] [del]\n\nCan be verified with\n\nCLI: show nat64 prefix\n\nMore information: https://wiki.fd.io/view/VPP/SNAT" }, "response": [] }, { "name": "Disable NAT64 inbound for 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/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Disabling interface NAT64 inbound feature\n\nCLI: set interface nat64 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT64 outbound for 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 \"outbound\" : {\r\n \t\"nat44-support\" : false,\r\n \t\"nat64-support\" : true\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Setting interface NAT64 outbound feature\n\nCLI: set interface nat64 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT64 outbound for 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/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Disabling interface NAT64 outbound feature\n\nCLI: set interface nat64 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Delete NAT64 prefix", "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-nat:nat/instances/instance/0/policy/0/nat64-prefixes/2001%3Adb8%3A122%3A300%3A%3A%2F56", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "nat64-prefixes", "2001%3Adb8%3A122%3A300%3A%3A%2F56" ] }, "description": "Removes configured NAT64 prefix:\n\nCLI: nat64 add prefix / [tenant-vrf ] [del]\n\nCan be verified with\n\nCLI: show nat64 prefix\n\nMore information: https://wiki.fd.io/view/VPP/SNAT" }, "response": [] }, { "name": "Delete NAT64 static BIB 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/ietf-nat:nat/instances/instance/0/mapping-table/mapping-entry/1/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "mapping-table", "mapping-entry", "1", "" ] }, "description": "CLI: nat64 add static bib 2001:db8:85a3::8a2e:370:7334 1234 10.1.1.3 5678 tcp del\n\nMore information: https://wiki.fd.io/view/VPP/NAT#Stateful_NAT64" }, "response": [] }, { "name": "Delete Nat64 address pool", "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-nat:nat/instances/instance/0/policy/0/external-ip-address-pool/3/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat", "instances", "instance", "0", "policy", "0", "external-ip-address-pool", "3", "" ] }, "description": "CLI: vppctl nat64 add pool address 172.16.2.0 - 172.16.2.4 del\n\nCan be verified with\nvppctl show nat64 pool\n\nMore information:\nhttps://wiki.fd.io/view/VPP/NAT" }, "response": [] } ] }, { "name": "Sub-interface assignment", "description": null, "item": [ { "name": "Set NAT inbound for subifc - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/subinterface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "subinterface-nat:nat", "inbound" ] }, "description": "Setting sub-interface NAT inbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT inbound for subifc - 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-vlan:sub-interfaces/sub-interface/1/subinterface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "subinterface-nat:nat", "inbound" ] }, "description": "Unsetting sub-interface NAT inbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT outbound for subifc - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"outbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/subinterface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F9%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "subinterface-nat:nat", "outbound" ] }, "description": "Setting sub-interface NAT outbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT outbound for subifc - 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/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Unsetting sub-interface NAT outbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] } ] }, { "name": "interface assignment", "description": null, "item": [ { "name": "Set NAT inbound for 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 \"inbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Setting interface NAT inbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT inbound for 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/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Unsetting interface NAT inbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT outbound for 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 \"outbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Setting interface NAT outbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT outbound for 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/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Unsetting interface NAT outbound feature\n\nCLI: set interface nat44 in out [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT inbound for ifc (post routing) - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"inbound\" : {\r\n \t\"post-routing\" : true\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Setting interface NAT inbound output-feature (post routing)\n\nCLI: set interface nat44 in out output-feature [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT inbound for ifc (post routing) - 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/local0/interface-nat:nat/inbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "inbound" ] }, "description": "Unsetting interface NAT inbound output-feature (post routing)\n\nCLI: set interface nat44 in out output-feature [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Set NAT outbound for ifc (post routing) - cfg", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"outbound\" : {\r\n \t\"post-routing\" : true\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Setting interface NAT outbound feature (post routing)\n\nCLI: set interface nat44 in out output-feature [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Disable NAT outbound for ifc (post routing) - 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/local0/interface-nat:nat/outbound", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "local0", "interface-nat:nat", "outbound" ] }, "description": "Unsetting interface NAT outbound feature (post routing)\n\nCLI: set interface nat44 in out output-feature [del]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] } ] }, { "name": "Get NAT context", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/operational/naming-context:contexts", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "naming-context:contexts" ] } }, "response": [] }, { "name": "Get NAT state", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/operational/ietf-nat:nat", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-nat:nat" ] }, "description": "Read NAT state\n\nCLI: show nat44 [detail|verbose]\n\nMore information: https://wiki.fd.io/view/VPP/NAT" }, "response": [] }, { "name": "Get NAT config", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"inbound\" : {}\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-nat:nat", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-nat:nat" ] } }, "response": [] }, { "name": "List ifcs - state", "request": { "method": "GET", "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\": \"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}" }, "url": { "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces-state", "" ] } }, "response": [] }, { "name": "List ifcs - config", "request": { "method": "GET", "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\": \"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}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "" ] } }, "response": [] } ] }