Skip to content

Trunk Interface Port

The Trunk Ethernet port configuration allows to define the multiple attributes that an trunk port can have.

Diagram

Diagram

Classes

topology_switch_trunk_interface (vxlan.topology.switches.interfaces)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$Yes
modeChoicetrunkYes
descriptionStringmax: 256NoNetAsCode Trunk Interface
mtuAnyInteger[min: 1500, max: 9216] or Choice[default, jumbo]Nojumbo
speedStringRegex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$Noauto
enabledBooleantrue, falseNotrue
trunk_allowed_vlansList[trunk_allowed_vlans]Nonone
spanning_tree_portfastBooleantrue, falseNotrue
enable_bpdu_guardBooleantrue, falseNotrue
duplexChoiceauto, full, halfNoauto
orphan_portBooleantrue, falseNofalse
native_vlanIntegermin: 1, max: 4094No
freeform_configStringNo

trunk_allowed_vlans (vxlan.topology.switches.interfaces.topology_switch_trunk_interface)

NameTypeConstraintMandatoryDefault Value
fromIntegermin: 1, max: 4094Yesnone
toIntegermin: 1, max: 4094Nonone

Example

This configuration creates Ethernet1/11, Ethernet1/12 and Ethernet1/13 on switch dc1-leaf1.

  • Interface Ethernet1/11 is configured with VLANs 10-20, 30, 40-50, MTU set as Jumbo (9216), speed auto and spanning-tree portfast enabled and BPDU guard disabled.
  • Interface Ethernet1/12 is configured with VLANs 45-48, the rest of the attributes are configured with the default settings.
  • Interface Ethernet1/13 is configured with all VLANs (1-4904), the rest of the attributes are configured with the default settings.
topology_interfaces.nac.yaml
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: Ethernet1/11
mode: trunk
description: 'Trunk Interface 1'
enabled: true
mtu: jumbo
speed: auto
trunk_allowed_vlans:
- from: 10
to: 20
- from: 30
- from: 40
to: 50
spanning_tree_portfast: true
enable_bpdu_guard: false
- name: e1/12
mode: trunk
speed: 10gb
trunk_allowed_vlans:
- from: 45
to: 48
- name: e1/13
mode: trunk
trunk_allowed_vlans:
- from: 1
to: 4094