Skip to content

Access Port-Channel

The Access Port-Channel configuration allows to define the multiple attributes that an access port-channel or vPC can have.

Diagram

Diagram

Classes

topology_switch_access_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
modeChoiceaccessYes
descriptionStringmax: 256NoNetAsCode Access 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
access_vlanIntegermin: 1, max: 4094No1
duplexChoiceauto, full, halfNoauto
orphan_portBooleantrue, falseNofalse
freeform_configStringNo

Example

This configuration creates a port-channel10 (vPC id: 10) and port-channel20 on dc1-leaf1 and dc1-leaf2:

Note that port-channel20 is not a VPC.

  • Interface port-channel10 is configured with VLAN 10, using interfaces Ethernet1/11 and Ethernet1/12 as member of the port-channel using LACP active mode. MTU set as Jumbo (9216), speed as auto, and spanning-tree portfast and BPDU guard enabled. This configuration is applied for both switches.
  • Interface port-channel20 on dc1-leaf1 is configured with VLAN 20, using interfaces Ethernet1/21 and Ethernet1/22 as member of the port-channel using LACP active mode. MTU set as default (1500), speed as auto, and spanning-tree portfast and BPDU guard enabled.
  • Interface port-channel20 on dc1-leaf2 is configured with VLAN 20, using interfaces Ethernet1/21 and Ethernet1/22 as member of the port-channel using LACP active mode. MTU set as default (1500), speed as auto, and spanning-tree portfast and BPDU guard enabled (BPDU Guard is using the default value).
topology_interfaces.nac.yaml
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: port-channel10
mode: access
description: 'VPC Access Interface 1 Leaf 1'
enabled: true
pc_mode: active
vpc_id: 10 # (VPC Port-channel)
mtu: jumbo
speed: auto
access_vlan: 10
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/11
- eth1/12
- name: po20
mode: access
description: 'Port-channel Access Interface 1'
enabled: true
pc_mode: active
mtu: default
speed: auto
access_vlan: 20
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/21
- eth1/22
- name: dc1-leaf2
interfaces:
- name: port-channel10
mode: access
description: 'VPC Access Interface 1 Leaf 2'
enabled: true
pc_mode: active
vpc_id: 10 # (VPC Port-channel)
mtu: jumbo
speed: auto
access_vlan: 10
spanning_tree_portfast: true
enable_bpdu_guard: true
members:
- eth1/11
- eth1/12
- name: po20
mode: access
description: 'Port-channel Access Interface 2'
enabled: true
pc_mode: active
mtu: default
speed: auto
access_vlan: 20
spanning_tree_portfast: true
members:
- eth1/21
- eth1/22