Routed Ethernet Port
The Routed Ethernet Port configuration allows to define the multiple attributes that an routed interface can have.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”topology_switch_routed_interface (vxlan.topology.switches.interfaces)
Section titled “topology_switch_routed_interface (vxlan.topology.switches.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$ | Yes | |
| mode | Choice | routed | Yes | |
| description | String | max: 256 | No | NetAsCode Routed Interface |
| vrf | String | No | ||
| mtu | Integer | min: 1500, max: 9216 | No | 9216 |
| speed | String | Regex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$ | No | auto |
| enabled | Boolean | true, false | No | true |
| ipv4_address | IP | No | ||
| ipv4_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ipv4_addresses | List | [secondary_ipv4_addresses] | No | |
| ipv6_address | IP | No | ||
| ipv6_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ipv6_addresses | List | [secondary_ipv6_addresses] | No | |
| enable_qos | Boolean | true, false | No | false |
| qos_policy | String | No | ||
| queuing_policy | String | No | ||
| freeform_config | String | No | ||
| fec | Choice | auto, fc-fec, off, rs-cons16, rs-fec, rs-ieee | No | auto |
secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)
Section titled “secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ip_address | IP | Yes | ||
| route_tag | Integer | min: 0, max: 4294967295 | No |
secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)
Section titled “secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ip_address | IP | Yes | ||
| route_tag | Integer | min: 0, max: 4294967295 | No |
Forward Error Correction (FEC)
Section titled “Forward Error Correction (FEC)”If you previously configured FEC via freeform_config, you must migrate to the fec parameter using the same value and remove the FEC configuration from freeform_config to avoid conflicts.
Forward Error Correction (FEC) controls error correction on the physical interface. The following FEC modes are supported:
auto- Automatic FEC selection (default, not visible inshow run)fc-fec- FireCode FEC (also known as BASE-R or Clause 74)off- FEC disabledrs-cons16- Reed-Solomon FEC Consortium 1.6rs-fec- Reed-Solomon FEC (Clause 91 for 100G, Consortium 1.5 for 25G/50G)rs-ieee- Reed-Solomon FEC IEEE standard
Example 1 - Basic Routed Interface Configuration
Section titled “Example 1 - Basic Routed Interface Configuration”This configuration creates Ethernet 1/46 and Ethernet 1/47 on dc1-leaf1. Ethernet 1/46 is member of the VRF red, with the IPv4 address 192.168.57.5/30, MTU set as 1500, speed of 10gb and a IPv4 tag 12345. Interface Ethernet 1/47 is member of the default VRF with the IPv4 address 192.168.111.1/30.
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: Ethernet1/46 mode: routed description: 'Routed Interface 1' enabled: true vrf: red mtu: 1500 speed: 10gb ipv4_address: 192.168.57.5/30 ipv4_route_tag: 12345 - name: Ethernet1/47 mode: routed description: 'Routed Interface 2' ipv4_address: 192.168.111.1/30Example 2 - FEC Configuration on 25G Routed Interfaces
Section titled “Example 2 - FEC Configuration on 25G Routed Interfaces”This configuration demonstrates FEC on 25G routed interfaces:
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: Ethernet1/3 mode: routed description: '25G Routed with RS-FEC' speed: 25gb fec: rs-fec ipv4_address: 10.1.1.1/30 - name: Ethernet1/4 mode: routed description: '25G Routed with FC-FEC' speed: 25gb fec: fc-fec ipv4_address: 10.1.1.5/30The Routed Ethernet Port configuration allows to define the multiple attributes that an routed interface can have.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”topology_switch_routed_interface (vxlan.topology.switches.interfaces)
Section titled “topology_switch_routed_interface (vxlan.topology.switches.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$ | Yes | |
| mode | Choice | routed | Yes | |
| description | String | max: 256 | No | NetAsCode Routed Interface |
| vrf | String | No | ||
| mtu | Integer | min: 1500, max: 9216 | No | 9216 |
| speed | String | Regex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$ | No | auto |
| enabled | Boolean | true, false | No | true |
| ipv4_address | IP | No | ||
| ipv4_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ipv4_addresses | List | [secondary_ipv4_addresses] | No | |
| ipv6_address | IP | No | ||
| ipv6_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ipv6_addresses | List | [secondary_ipv6_addresses] | No | |
| freeform_config | String | No |
secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)
Section titled “secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ip_address | IP | Yes | ||
| route_tag | Integer | min: 0, max: 4294967295 | No |
secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)
Section titled “secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_interface)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ip_address | IP | Yes | ||
| route_tag | Integer | min: 0, max: 4294967295 | No |
Example
Section titled “Example”This configuration creates Ethernet 1/46 and Ethernet 1/47 on dc1-leaf1. Ethernet 1/46 is member of the VRF red, with the IPv4 address 192.168.57.5/30, MTU set as 1500, speed of 10gb and a IPv4 tag 12345. Interface Ethernet 1/47 is member of the default VRF with the IPv4 address 192.168.111.1/30.
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: Ethernet1/46 mode: routed description: 'Routed Interface 1' enabled: true vrf: red mtu: 1500 speed: 10gb ipv4_address: 192.168.57.5/30 ipv4_route_tag: 12345 - name: Ethernet1/47 mode: routed description: 'Routed Interface 2' ipv4_address: 192.168.111.1/30