Skip to content

VLAN

Diagram

Diagram

Classes

interfaces (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
vlansList[vlans]No

vlans (iosxe.devices.configuration.interfaces)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 4094Yes
interface_groupsListStringNo
descriptionStringNo
shutdownBooleantrue, falseNo
vrf_forwardingStringNo
ipv4Class[ipv4]No
ipv6Class[ipv6]No
bfdClass[bfd]No
load_intervalIntegermin: 30, max: 600No
mplsClass[mpls]No
ospfClass[ospf]No
ospfv3Class[ospfv3]No
pimClass[pim]No

ipv4 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
addressIPNo
address_maskIPNo
proxy_arpBooleantrue, falseNo
arp_inspection_trustBooleantrue, falseNo
arp_inspection_limit_rateIntegermin: 0, max: 4294967295No
dhcp_relay_source_interfaceStringNo
helper_addressesList[helper_addresses]No
access_group_inStringNo
access_group_outStringNo
redirectsBooleantrue, falseNo
unreachablesBooleantrue, falseNo
unnumberedStringNo

ipv6 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
enableBooleantrue, falseNo
addressesList[addresses]No
link_local_addressesListIPNo
address_autoconfig_defaultBooleantrue, falseNo
address_dhcpBooleantrue, falseNo
mtuIntegermin: 1280, max: 9976No
nd_ra_suppress_allBooleantrue, falseNo

bfd (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
templateStringNo
enableBooleantrue, falseNo
local_addressStringNo
intervalIntegermin: 50, max: 9999No
interval_min_rxIntegermin: 50, max: 9999No
interval_multiplierIntegermin: 3, max: 50No
echoBooleantrue, falseNo

mpls (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
ipBooleantrue, falseNo
mtuIntegerNo

ospf (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
costIntegermin: 1, max: 65535No
dead_intervalIntegermin: 1, max: 65535No
hello_intervalIntegermin: 1, max: 65535No
mtu_ignoreBooleantrue, falseNo
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
priorityIntegermin: 0, max: 255No
ttl_security_hopsIntegermin: 1, max: 254No
process_idsList[process_ids]No

ospfv3 (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
costIntegermin: 1, max: 65535No

pim (iosxe.devices.configuration.interfaces.vlans)

NameTypeConstraintMandatoryDefault Value
passiveBooleantrue, falseNo
dense_modeBooleantrue, falseNo
sparse_modeBooleantrue, falseNo
sparse_dense_modeBooleantrue, falseNo
bfdBooleantrue, falseNo
borderBooleantrue, falseNo
bsr_borderBooleantrue, falseNo
dr_priorityIntegermin: 0, max: 4294967295No

helper_addresses (iosxe.devices.configuration.interfaces.vlans.ipv4)

NameTypeConstraintMandatoryDefault Value
addressIPYes
globalBooleantrue, falseNo
vrfStringNo

addresses (iosxe.devices.configuration.interfaces.vlans.ipv6)

NameTypeConstraintMandatoryDefault Value
prefixIPYes
eui_64Booleantrue, falseNo

process_ids (iosxe.devices.configuration.interfaces.vlans.ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65535No
areasListStringNo

Examples

iosxe:
devices:
- name: Device1
configuration:
interfaces:
vlans:
- id: 100
description: SVI 100
ip_address: 1.1.10.1
ip_address_mask: 255.255.255.0

Full example:

iosxe:
devices:
- name: Device1
configuration:
interfaces:
vlans:
- id: 10
description: VLAN 10
interface_groups:
- dot1x
shutdown: false
ipv4:
address: 172.16.10.1
address_mask: 255.255.255.0
proxy_arp: true
dhcp_relay_source_interface: gi1/0/1
helper_addresses:
- address: 10.1.1.1
access_group_in: ACL_IN
access_group_out: ACL_OUT
redirects: false
unreachables: false
ipv6:
enable: true
addresses:
- prefix: 2010::1
prefix_length: 64
link_local_addresses:
- fe80::11
address_autoconfig_default: false
address_dhcp: false
mtu: 1450
nd_ra_suppress_all: true
bfd:
enable: true
local_address: 1.2.3.4
interval: 100
interval_multiplier: 3
interval_min_rx: 120
echo: false
mpls:
ip: true
mtu: 1450
ospf:
cost: 50
dead_interval: 3
hello_interval: 1
mtu_ignore: true
network_type: broadcast
priority: 1
ttl_security_hops: 2
process_ids:
- id: 1
areas:
- 0.0.0.1
ospfv3:
network_type: broadcast
cost: 50
pim:
passive: true
dense_mode: false
sparse_mode: false
sparse_dense_mode: false
bfd: true
border: true
bsr_border: true
dr_priority: 100