Routed Sub-interface
VXLANThe Routed Sub-interface configuration allows to define the multiple attributes that a routed sub-interface can have.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| topology | Class | topology | No |
topology (vxlan)
Section titled “topology (vxlan)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| switches | List | switches | No |
switches (vxlan.topology)
Section titled “switches (vxlan.topology)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interfaces | List | Any[Class[[topology_] or Class[[topology_] or Class[[topology_] or Class[[topology_] or Class[[topology_] or Class[topology_[topology_] or Class[[topology_] or Class[[topology_]] | No |
topology_switch_routed_sub_interface (vxlan.topology.switches.interfaces)
Section titled “topology_switch_routed_sub_interface (vxlan.topology.switches.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: (?i) | Yes | |
| mode | Choice | routed_sub | Yes | |
| description | String | max: 256 | No | NetAsCode Routed Sub Interface |
| dot1q_id | Integer | min: 1, max: 4096 | Yes | |
| vrf | String | No | ||
| mtu | Integer | min: 1500, max: 9216 | No | 9216 |
| speed | String | Regex: (?i) | No | auto |
| enabled | Boolean | true, false | No | true |
| ipv4_address | IP | No | ||
| ipv4_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ | List | secondary_ | No | |
| ipv6_address | IP | No | ||
| ipv6_route_tag | Integer | min: 0, max: 4294967295 | No | |
| secondary_ | List | secondary_ | No | |
| freeform_config | String | No |
secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_sub_interface)
Section titled “secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_sub_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_sub_interface)
Section titled “secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_sub_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/47.2 on dc1-leaf1. This interface is member of the VRF red, with the IPv4 address 10.1.1.1/30 and the IPV6 address 2021:10:1:1::1/64, MTU set as 1500 and a Dot1q VLAN encapsulation 2.
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: e1/47.2 mode: routed_sub description: 'Routed Sub-Interface 1' enabled: true dot1q_id: 2 vrf: red mtu: 1500 ipv4_address: 10.1.1.1/30 ipv6_address: 2021:10:1:1::1/64