MIST-sw_template_create
POST {{host}}/api/v1/orgs/{{org_id}}/networktemplates
Request Body
{"name"=>"EX2300-SW-Template", "additional_config_cmds"=>["annotate system \" -- Additional CLI -- API TEMPLATE --\"", "delete apply-groups api-cli-tmpl", "delete groups api-cli-tmpl", "set apply-groups api-cli-tmpl", "set groups api-cli-tmpl chassis alarm management-ethernet link-down ignore", "set groups api-cli-tmpl interfaces irb description \"IRB DHCP modified via API\"", "set groups api-cli-tmpl interfaces irb unit 0 family inet dhcp retransmission-attempt 600"], "networks"=>{"guest"=>{"vlan_id"=>"{{lan_guest}}", "subnet"=>""}, "infra"=>{"vlan_id"=>"{{lan_infra}}", "subnet"=>""}, "prod"=>{"vlan_id"=>"{{lan_prod}}", "subnet"=>""}, "quarantine"=>{"vlan_id"=>"66", "subnet"=>""}}, "port_usages"=>{"Server-trunk"=>{"mode"=>"trunk", "disabled"=>false, "port_network"=>"infra", "voip_network"=>nil, "stp_edge"=>false, "all_networks"=>false, "networks"=>["prod"], "port_auth"=>nil, "speed"=>"auto", "duplex"=>"auto", "mac_limit"=>0, "persist_mac"=>false, "poe_disabled"=>false, "enable_qos"=>false, "mtu"=>nil}, "unused"=>{"mode"=>"access", "disabled"=>false, "port_network"=>"quarentine", "voip_network"=>nil, "stp_edge"=>true, "all_networks"=>false, "networks"=>nil, "port_auth"=>nil, "speed"=>"auto", "duplex"=>"auto", "mac_limit"=>0, "persist_mac"=>false, "poe_disabled"=>false, "enable_qos"=>false, "mtu"=>nil}}, "switch_matching"=>{"enable"=>true, "rules"=>[{"name"=>"ex2300-c-12", "port_config"=>{"ge-0/0/9"=>{"usage"=>"uplink", "dynamic_usage"=>nil, "description"=>"Uplink ot FW"}, "ge-0/0/0"=>{"usage"=>"ap", "dynamic_usage"=>nil, "description"=>"Trunk to AP"}, "ge-0/0/1-6"=>{"usage"=>"disabled", "dynamic_usage"=>nil, "description"=>"Disabled"}, "ge-0/0/10-11"=>{"usage"=>"disabled", "dynamic_usage"=>nil, "description"=>"Disabled"}, "ge-0/0/7-8"=>{"usage"=>"Server-trunk", "dynamic_usage"=>nil, "description"=>"Server trunk", "aggregated"=>true, "ae_disable_lacp"=>false, "ae_idx"=>0}}, "match_model"=>{"0:11"=>"EX2300-C-12"}}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-CSRFToken | string |