Access Port-Channel
Diagram
Classes
topology_switch_access_po_interface (vxlan.topology.switches.interfaces)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Regex: (?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 | |
mode | Choice | access | Yes | |
description | String | max: 256 | No | NetAsCode Access PO Interface |
vpc_id | Integer | min: 1 , max: 4906 | No | |
mtu | Any | Integer[min: 1500 , max: 9216 ] or Choice[default , jumbo ] | No | jumbo |
speed | String | Regex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$ | No | auto |
enabled | Boolean | true , false | No | true |
spanning_tree_portfast | Boolean | true , false | No | true |
enable_bpdu_guard | Boolean | true , false | No | true |
pc_mode | Choice | active , on , passive | No | active |
members | List | String[Regex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$ ] | Yes | |
access_vlan | Integer | min: 1 , max: 4094 | No | 1 |
freeform_config | String | No |
Examples
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