forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(eos_cli_config_gen): Add RADIUS Source-Interface (aristanetworks…
- Loading branch information
Showing
9 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
...molecule/eos_cli_config_gen/documentation/devices/ip-radius-source-interface.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# ip-radius-source-interface | ||
# Table of Contents | ||
<!-- toc --> | ||
|
||
- [Management](#management) | ||
- [Management Interfaces](#management-interfaces) | ||
- [Authentication](#authentication) | ||
- [IP RADIUS Source Interfaces](#ip-radius-source-interfaces) | ||
- [Monitoring](#monitoring) | ||
- [Internal VLAN Allocation Policy](#internal-vlan-allocation-policy) | ||
- [Internal VLAN Allocation Policy Summary](#internal-vlan-allocation-policy-summary) | ||
- [Interfaces](#interfaces) | ||
- [Routing](#routing) | ||
- [IP Routing](#ip-routing) | ||
- [IPv6 Routing](#ipv6-routing) | ||
- [Multicast](#multicast) | ||
- [Filters](#filters) | ||
- [ACL](#acl) | ||
- [Quality Of Service](#quality-of-service) | ||
|
||
<!-- toc --> | ||
# Management | ||
|
||
## Management Interfaces | ||
|
||
### Management Interfaces Summary | ||
|
||
#### IPv4 | ||
|
||
| Management Interface | description | Type | VRF | IP Address | Gateway | | ||
| -------------------- | ----------- | ---- | --- | ---------- | ------- | | ||
| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 | | ||
|
||
#### IPv6 | ||
|
||
| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway | | ||
| -------------------- | ----------- | ---- | --- | ------------ | ------------ | | ||
| Management1 | oob_management | oob | MGMT | - | - | | ||
|
||
### Management Interfaces Device Configuration | ||
|
||
```eos | ||
! | ||
interface Management1 | ||
description oob_management | ||
vrf MGMT | ||
ip address 10.73.255.122/24 | ||
``` | ||
|
||
# Authentication | ||
|
||
## IP RADIUS Source Interfaces | ||
|
||
### IP RADIUS Source Interfaces | ||
|
||
| VRF | Source Interface Name | | ||
| --- | --------------- | | ||
| default | loopback1 | | ||
| MGMT | Ma1 | | ||
| default | loopback10 | | ||
|
||
### IP SOURCE Source Interfaces Device Configuration | ||
|
||
```eos | ||
! | ||
ip radius vrf default source-interface loopback1 | ||
! | ||
ip radius vrf MGMT source-interface Ma1 | ||
! | ||
ip radius source-interface loopback10 | ||
``` | ||
|
||
# Monitoring | ||
|
||
# Internal VLAN Allocation Policy | ||
|
||
## Internal VLAN Allocation Policy Summary | ||
|
||
**Default Allocation Policy** | ||
|
||
| Policy Allocation | Range Beginning | Range Ending | | ||
| ------------------| --------------- | ------------ | | ||
| ascending | 1006 | 4094 | | ||
|
||
# Interfaces | ||
|
||
# Routing | ||
|
||
## IP Routing | ||
|
||
### IP Routing Summary | ||
|
||
| VRF | Routing Enabled | | ||
| --- | --------------- | | ||
| default | false| | ||
### IP Routing Device Configuration | ||
|
||
```eos | ||
``` | ||
## IPv6 Routing | ||
|
||
### IPv6 Routing Summary | ||
|
||
| VRF | Routing Enabled | | ||
| --- | --------------- | | ||
| default | false | | ||
|
||
# Multicast | ||
|
||
# Filters | ||
|
||
# ACL | ||
|
||
# Quality Of Service |
21 changes: 21 additions & 0 deletions
21
...ns/arista/avd/molecule/eos_cli_config_gen/intended/configs/ip-radius-source-interface.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
hostname ip-radius-source-interface | ||
! | ||
no aaa root | ||
no enable password | ||
! | ||
interface Management1 | ||
description oob_management | ||
vrf MGMT | ||
ip address 10.73.255.122/24 | ||
! | ||
ip radius vrf default source-interface loopback1 | ||
! | ||
ip radius vrf MGMT source-interface Ma1 | ||
! | ||
ip radius source-interface loopback10 | ||
! | ||
end |
9 changes: 9 additions & 0 deletions
9
...arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/ip-radius-source-interface.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### IP RADIUSsource interface ### | ||
|
||
ip_radius_source_interfaces: | ||
- vrf : default | ||
name: loopback1 | ||
- vrf : MGMT | ||
name: Ma1 | ||
- vrf : | ||
name: loopback10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...rista/avd/roles/eos_cli_config_gen/templates/documentation/ip-radius-source-interfaces.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% if ip_radius_source_interfaces is defined and ip_radius_source_interfaces is not none %} | ||
|
||
## IP RADIUS Source Interfaces | ||
|
||
### IP RADIUS Source Interfaces | ||
|
||
| VRF | Source Interface Name | | ||
| --- | --------------- | | ||
{% for ip_radius_source_interface in ip_radius_source_interfaces | arista.avd.natural_sort %} | ||
| {{ ip_radius_source_interface['vrf'] | arista.avd.default('default') }} | {{ ip_radius_source_interface['name'] }} | | ||
{% endfor %} | ||
|
||
### IP SOURCE Source Interfaces Device Configuration | ||
|
||
```eos | ||
{% include 'eos/ip-radius-source-interfaces.j2' %} | ||
``` | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...lections/arista/avd/roles/eos_cli_config_gen/templates/eos/ip-radius-source-interfaces.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{# eos - IP radius Source interfaces#} | ||
{% for ip_radius_source_interface in ip_radius_source_interfaces | arista.avd.natural_sort %} | ||
! | ||
{% set ip_radius_cli = "ip radius" %} | ||
{% if ip_radius_source_interface.vrf is arista.avd.defined %} | ||
{% set ip_radius_cli = ip_radius_cli ~ " vrf " ~ ip_radius_source_interface.vrf %} | ||
{% endif %} | ||
{% if ip_radius_source_interface.name is arista.avd.defined %} | ||
{% set ip_radius_cli = ip_radius_cli ~ " source-interface " ~ ip_radius_source_interface.name %} | ||
{% endif %} | ||
{{ ip_radius_cli }} | ||
{% endfor %} |