Access Ethernet Port
The Access Ethernet port configuration allows to define the multiple attributes that an access port can have.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”topology_switch_access_interface (vxlan.topology.switches.interfaces)
Section titled “topology_switch_access_interface (vxlan.topology.switches.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$ | Yes | |
| mode | Choice | access | Yes | |
| description | String | max: 256 | No | NetAsCode Access Interface |
| 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 |
| access_vlan | Integer | min: 1, max: 4094 | No | 1 |
| spanning_tree_portfast | Boolean | true, false | No | true |
| enable_bpdu_guard | Boolean | true, false | No | true |
| duplex | Choice | auto, full, half | No | auto |
| orphan_port | Boolean | true, false | No | false |
| freeform_config | String | No |
Example
Section titled “Example”This configuration creates one interface on switch dc1-leaf1 and two interfaces on dc1-leaf2:
- Interface
Ethernet1/11ondc1-leaf1is configured with VLAN11, MTU set asdefault (1500), speedautoand spanning-tree portfast and BPDU guard enabled. - Interface
Ethernet1/12ondc1-leaf2is configured with the default settings. - Interface
Ethernet1/13ondc1-leaf2is configured with VLAN13.
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: e1/11 mode: access description: 'Access Interface 1' enabled: true mtu: default speed: auto access_vlan: 11 spanning_tree_portfast: true enable_bpdu_guard: true - name: dc1-leaf2 interfaces: - name: ethernet1/12 mode: access - name: eth1/13 mode: access access_vlan: 13