This article is to show the way of pushing configuration from MIST UI by using an API either from the “GATEWAY" API or from "GATEWAYTEMPLATE"
The example used is to push an "ARP policer" towards interfaces as an alternative to additional CLI
From the MIST UI
Step-1
Organization ---> WAN Edge Templates
Choose the Template used for the site where the configuration changes need to be made
Step-2: From the “Quick API Access” click the “GATEWAYTEMPLATE”
Step-3: Copy the whole/full part of “port_config” from the listed API content, add the following and make sure to put the new config with curly brackets referenced below as an example
{
"port_config": {
"ge-0/0/3": {
"name": "WAN-0",
"usage": "wan",
"aggregated": false,
"redundant": false,
"critical": false,
"disabled": false,
"wan_arp_policer": "recommended", >>>>HERE is the APR Policer
"wan_type": "broadband",
"ip_config": {
"type": "static",
"ip": "192.168.1.1",
"netmask": "/30"
},
"disable_autoneg": false,
"wan_source_nat": {
"disabled": true
"vpn_paths": {
"HUB-WAN0_HUB.OrgOverlay": {
"role": "spoke",
"bfd_profile": "broadband",
"key": 0
}
"ge-3/0/3": {
"name": "WAN-1",
"wan_arp_policer": "recommended",>>>>HERE is the APR Policer
"ip": "192.168.3.1",
"ge-0/0/4,ge-3/0/4": {
"networks": [
"CLIENT-SPOKE-SITE-A"
],
"usage": "lan",
"redundant": true,
"reth_idx": 1,
"reth_node": "node0",
"disabled": false
}}
Once this adjusted over the text editor, please dump the new “port_config” under the “Content” section as below
Step-4: Press “PUT” and check if the config adjusted over the Gatewaytemplate as below
Step-5: If template got successful, the configuration will be pushed to the device that referenced the adjusted template, and you can check it from the running configuration of the device
+ Added Category