Skip to main content

Trunk Port-Channel

Diagram

Classes

topology_switch_trunk_po_interface (vxlan.topology.switches.interfaces)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: (?i)^(po|port-channel)([1-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-6])$Yes
modeChoicetrunkYes
descriptionStringmax: 256NoNetAsCode Trunk PO Interface
vpc_idIntegermin: 1, max: 4906No
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
spanning_tree_portfastBooleantrue, falseNotrue
enable_bpdu_guardBooleantrue, falseNotrue
pc_modeChoiceactive, on, passiveNoactive
membersListString[Regex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$]Yes
trunk_allowed_vlansList[trunk_allowed_vlans]Nonone
freeform_configStringNo

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

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

Examples

vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: port-channel11
mode: trunk
description: 'VPC Trunk Interface 1 Leaf 1'
enabled: true
pc_mode: active
vpc_id: 10 # (VPC Port-channel)
mtu: jumbo
speed: auto
trunk_allowed_vlans:
- from: 100
to: 200
- from: 300
to: 310
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/11
- eth1/12
- name: po21
mode: trunk
description: 'Port-channel Trunk Interface 1'
enabled: true
pc_mode: active
mtu: default
speed: auto
trunk_allowed_vlans:
- from: 1
to: 4094
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/21
- eth1/22
- name: dc1-leaf2
interfaces:
- name: port-channel11
mode: trunk
description: 'VPC Trunk Interface 1 Leaf 2'
enabled: true
pc_mode: active
vpc_id: 10 # (VPC Port-channel)
mtu: jumbo
speed: auto
trunk_allowed_vlans:
- from: 100
to: 200
- from: 300
to: 310
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/11
- eth1/12
- name: po21
description: 'Port-channel Trunk Interface 2'
mode: trunk
members:
- eth1/21
- eth1/22