Loopback
nac-vxlan/docs/templates/vxlan/topology/interface/loopback_interface.md
The Loopback configuration allows to define the multiple attributes that an Loppback interface can have.
Diagram
Classes
topology_switch_loopback_interface (vxlan.topology.switches.interfaces)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Regex: (?i)^(lo|loopback)([0-9]|[1-9][0-9]{1,2}|10[0-1][0-9]|102[0-3])$ | Yes | |
mode | Choice | loopback , fabric_loopback , mpls_loopback | Yes | |
description | String | max: 256 | No | NetAsCode Loopback Interface |
vrf | String | No | ||
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_loopback_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_loopback_interface)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
ip_address | IP | Yes | ||
route_tag | Integer | min: 0 , max: 4294967295 | No |
Example
This configuration creates a Loopback 0
interface on dc1-leaf1
. This loopback is member of the VRF red
, with the IPv4 address 10.1.1.1
, a IPv4 tag 12345
and an IPv6 address 2021:10:1:1::1
.
vxlan: topology: switches: - name: dc1-leaf1 interfaces: - name: lo0 mode: loopback description: 'Loopback Interface 0' enabled: true vrf: red ipv4_address: 10.1.1.1 ipv4_route_tag: 12345 ipv6_address: 2021:10:1:1::1