Skip to content

Commit

Permalink
polish ztp
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryperets committed Aug 26, 2020
1 parent a9a6891 commit 380657a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Managed_SDWAN_6_4_2.postman.json
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"1\",\n \"session\": \"{{session}}\",\n \"method\": \"update\",\n \"params\": [\n {\n \"url\": \"/dvmdb/adom/{{adom}}/device/{{name_fgt_ztp}}\",\n \"data\": {\n \"name\": \"{{name_fgt_ztp}}\",\n \"latitude\": \"40.418852\",\n \"longitude\": \" -3.693454\",\n \"meta fields\": {\n \"Address\": \"Madrid, Spain\",\n \"branch-id\": \"3\",\n \"dc-id\": \"\",\n \"remote-dc-id\": \"\"\n },\n \"flags\": 69468192\n }\n }\n ]\n}",
"raw": "{\n \"id\": \"1\",\n \"session\": \"{{session}}\",\n \"method\": \"update\",\n \"params\": [\n {\n \"url\": \"/dvmdb/adom/{{adom}}/device/{{name_fgt_ztp}}\",\n \"data\": {\n \"name\": \"{{name_fgt_ztp}}\",\n \"latitude\": \"40.418852\",\n \"longitude\": \"-3.693454\",\n \"meta fields\": {\n \"Address\": \"Madrid, Spain\",\n \"branch-id\": \"3\",\n \"dc-id\": \"\",\n \"remote-dc-id\": \"\"\n },\n \"flags\": 69468192\n }\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -2540,7 +2540,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"session\": \"{{session}}\",\n \"id\": 1,\n \"method\": \"set\",\n \"params\": [\n {\n \"url\": \"/dvmdb/adom/{{adom}}/script\",\n \"data\": [\n {\n \"script_schedule\": null,\n \"name\": \"Configure ZTP Interfaces\",\n \"type\": \"cli\",\n \"desc\": \"\",\n \"content\": \"# Interfaces for ZTP device\nconfig system interface\n edit port4\n set ip 172.16.0.11 255.255.255.248\n set mode static\n set type physical\n set allowaccess ping\n set vdom root\n next\n edit port5\n set type physical\n set vdom root\n next\n edit port10\n set mode dhcp\n set type physical\n set allowaccess ping http https fgfm ssh\n set vdom root\n next\n edit vl_lan\n set vdom root\n set ip 10.0.3.1 255.255.255.0\n set allowaccess ping ssh\n set color 3\n set interface port5\n set vlanid 1000\n next \nend\nconfig router static \n edit 1\n set dst 172.16.0.0 255.255.0.0\n set gateway 172.16.0.9\n set device port4\n next \n edit 2\n set gateway 203.0.113.1 \n set device port1 \n next \nend\",\n \"target\": \"device_database\"\n }\n ]\n }\n ]\n}"
"raw": "{\n \"session\": \"{{session}}\",\n \"id\": 1,\n \"method\": \"set\",\n \"params\": [\n {\n \"url\": \"/dvmdb/adom/{{adom}}/script\",\n \"data\": [\n {\n \"script_schedule\": null,\n \"name\": \"Configure ZTP Interfaces\",\n \"type\": \"cli\",\n \"desc\": \"\",\n \"content\": \"# Interfaces for ZTP device\nconfig system interface\n edit port4\n set ip 172.16.0.11 255.255.255.248\n set mode static\n set type physical\n set allowaccess ping\n set vdom root\n next\n edit port5\n set type physical\n set vdom root\n next\n edit port10\n set ip 192.168.0.14 255.255.255.0\n set type physical\n set allowaccess ping http https fgfm ssh\n set vdom root\n next\n edit vl_lan\n set vdom root\n set ip 10.0.3.1 255.255.255.0\n set allowaccess ping ssh\n set color 3\n set interface port5\n set vlanid 1000\n next \nend\nconfig router static \n edit 1\n set dst 172.16.0.0 255.255.0.0\n set gateway 172.16.0.9\n set device port4\n next \n edit 2\n set gateway 203.0.113.1 \n set device port1 \n next \nend\nconfig system global\n set hostname \\\"{{name_fgt_ztp}}\\\"\n set gui-device-latitude \\\"40.418852\\\"\n set gui-device-longitude \\\"-3.693454\\\"\nend\",\n \"target\": \"device_database\"\n }\n ]\n }\n ]\n}"
},
"url": {
"raw": "https://{{ip}}/jsonrpc",
Expand Down

0 comments on commit 380657a

Please sign in to comment.