Skip to main content

Switch Ports

Location in Dashboard: Switching >> Switch Ports

Diagram

Classes

devices (meraki.domains.organizations.networks)

NameTypeConstraintMandatoryDefault Value
switch_portsList[switch_ports]No

switch_ports (meraki.domains.organizations.networks.devices)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 127No
tagsListString[min: 1, max: 255]No
enabledBooleantrue, falseNo
typeChoiceaccess, stack, trunkNo
vlanAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
voice_vlanAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
allowed_vlansAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
stp_guardChoicebpdu guard, disabled, loop guard, root guardNo
link_negotiationStringmin: 1, max: 127No
udldChoiceAlert only, EnforceNo
access_policy_typeChoiceCustom access policy, MAC allow list, Open, Sticky MAC allow listNo
mac_allow_listListMACNo
sticky_mac_allow_listListMACNo
sticky_mac_allow_list_limitIntegermin: 1, max: 10No
peer_sgt_capableBooleantrue, falseNo
dai_trustedBooleantrue, falseNo
profileClass[profile]No
dot3azClass[dot3az]No
poeBooleantrue, falseNo
isolationBooleantrue, falseNo
rstpBooleantrue, falseNo
storm_controlBooleantrue, falseNo
flexible_stackingBooleantrue, falseNo
port_idsStringRegex: \d{1,3}No
port_schedule_nameStringmin: 1, max: 127No
access_policy_nameStringmin: 1, max: 127No
adaptive_policy_group_nameStringmin: 1, max: 127No

profile (meraki.domains.organizations.networks.devices.switch_ports)

NameTypeConstraintMandatoryDefault Value
enabledBooleantrue, falseNo
inameStringmin: 1, max: 127No
nameStringmin: 1, max: 127No

dot3az (meraki.domains.organizations.networks.devices.switch_ports)

NameTypeConstraintMandatoryDefault Value
enabledBooleantrue, falseNo

Config Sample

meraki:
domains:
- name: EMEA
administrator:
name: Foo Bar
organizations:
- name: Dev
networks:
- name: Dev-main-cx-provider
product_types:
- appliance
- camera
- switch
- wireless
devices:
- name: Core Switch 01
switch_ports:
- port_ids: 1-4,5,7,10,11,12
name: User Port
tags:
- tag1
enabled: true
type: access
vlan: 1
voice_vlan: 100
allowed_vlans: 1-100
isolation: true
rstp: true
stp_guard: bpdu guard
link_negotiation: Auto negotiate
port_schedule_name: "Dev Weekend Only Port Schedule"
udld: Enforce
# access_policy_type: Custom access policy
# access_policy_name: Test Policy
# mac_allow_list:
# - 00:11:22:33:44:55
# sticky_mac_allow_list:
# - 00:11:22:33:44:55
# sticky_mac_allow_list_limit: 1
storm_control: true
# adaptive_policy_group_name: "Corp Policy"
# peer_sgt_capable: false
# flexible_stacking: false
# dai_trusted: true
# profile:
# enabled: true
# name: "vlan profile"
# iname: test
# dot3az:
# enabled: true
- name: DMZ Switch 01
switch_ports:
- port_ids: 1-3,5,7
name: User Port
tags:
- tag1
enabled: true
type: access
vlan: 1
voice_vlan: 100
allowed_vlans: 1-100
isolation: true
rstp: true
stp_guard: bpdu guard
link_negotiation: Auto negotiate
port_schedule_name: "Dev Weekend Only Port Schedule"
udld: Enforce
# access_policy_type: Custom access policy
# access_policy_name: Test Policy
# mac_allow_list:
# - 00:11:22:33:44:55
# sticky_mac_allow_list:
# - 00:11:22:33:44:55
# sticky_mac_allow_list_limit: 1
storm_control: true
# adaptive_policy_group_name: "Corp Policy"
# peer_sgt_capable: true
# flexible_stacking: false
dai_trusted: true
# profile:
# enabled: true
# name: "vlan profile"
# iname: test
# dot3az:
# enabled: true