updateSiteDevice_Gateway

PUT https://{{host}}/api/v1/sites/:site_id/devices/:device_id

Gateway OSPF

NameTypeDescription
router_idstringrouter-id used for OSPF/ BGP, required if ospf_config.enabled=true
ospf_configobjectOSPF config
enabledbooleanwhether to rung OSPF on this device
areasobjectOSPF areas to run on this device and the corresponding per-area-specific configs
no_summarybooleanfor a stub/nssa area, where to avoid forwarding type-3 LSA to this area
reference_bandwidthstringBandwidth for calculating metric defaults (9600..4000000000000), default is 100M

Request Body

{"name"=>"corp-a135", "port_config"=>{"ge-0/0/0"=>{"usage"=>"wan", "ip_config"=>{"type"=>"dhcp"}}, "ge-0/0/7"=>{"usage"=>"wan", "ip_config"=>{"type"=>"static"}}, "cl-0/0/1"=>{"usage"=>"wan", "wan_config"=>{"backup_only"=>true}, "ip_config"=>{"type"=>"pppoe"}}, "ge-0/0/1-5"=>{"usage"=>"lan"}, "ge-0/0/0,ge-7/0/0"=>{"usage"=>"wan", "clustered"=>true, "reth_idx"=>3}}, "ip_configs"=>{"corp"=>{"type"=>"static", "ip"=>"192.168.10.1"}}, "dhcpd_config"=>{"enabled"=>true, "corp"=>{"type"=>"relay", "ip_start"=>"192.168.70.100", "ip_end"=>"192.168.70.200", "gateway"=>"192.168.70.1", "dns_servers"=>["8.8.8.8", "4.4.4.4"], "dns_suffix"=>[".mist.local", ".mist.com"], "fixed_bindings"=>{"5684dae9ac8b"=>{"name"=>"John", "ip"=>"192.168.70.35"}}, "options"=>[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, {"type"=>"string", "value"=>"string"}], "vendor_encapulated"=>{"25300:8"=>{"type"=>"string", "value"=>"..."}}, "servers"=>["11.2.3.4"]}}, "extra_routes"=>{"0.0.0.0/0"=>{"via"=>"10.2.1.1"}}, "oob_ip_config"=>{"type"=>"static", "ip"=>"192.168.50.3", "netmask"=>"255.255.255.0", "use_mgmt_vrf"=>false}, "ntp_servers"=>["pool.ntp.org", "time.google.com"], "managed"=>false, "additional_config_cmds"=>["set snmp community public"], "vars"=>{"RADIUS_SECRET"=>"11s64632d", "RADIUS_IP1"=>"172.31.2.5"}, "deviceprofile_id"=>"6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9", "image1_url"=>"https://url/to/image.png", "port_mirroring"=>{"port_mirror"=>{"run_length"=>12, "rate"=>2, "family_type"=>"inet", "ingress_port_ids"=>["ge-0/0/3", "ge-0/0/4"], "output_port_id"=>"ge-0/0/5"}}}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring