Skip to main content

Routed Sub-interface

Diagram

Classes

topology_switch_routed_sub_interface (vxlan.topology.switches.interfaces)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}\.\d{1,4}$Yes
modeChoicerouted_subYes
descriptionStringmax: 256NoNetAsCode Routed Sub Interface
dot1q_idIntegermin: 1, max: 4096Yes
vrfStringNo
mtuIntegermin: 1500, max: 9216No9216
speedStringRegex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$Noauto
enabledBooleantrue, falseNotrue
ipv4_addressIPNo
ipv4_route_tagIntegermin: 0, max: 4294967295No
secondary_ipv4_addressesList[secondary_ipv4_addresses]No
ipv6_addressIPNo
ipv6_route_tagIntegermin: 0, max: 4294967295No
secondary_ipv6_addressesList[secondary_ipv6_addresses]No
freeform_configStringNo

secondary_ipv4_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_sub_interface)

NameTypeConstraintMandatoryDefault Value
ip_addressIPYes
route_tagIntegermin: 0, max: 4294967295No

secondary_ipv6_addresses (vxlan.topology.switches.interfaces.topology_switch_routed_sub_interface)

NameTypeConstraintMandatoryDefault Value
ip_addressIPYes
route_tagIntegermin: 0, max: 4294967295No

Examples

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