-
Notifications
You must be signed in to change notification settings - Fork 219
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): Support LACP global configuration parameters (
#1301) * Feat(eos_cli_config_gen): Support LACP global parameters * Update README * Upload artifacts
- Loading branch information
Showing
9 changed files
with
195 additions
and
1 deletion.
There are no files selected for viewing
112 changes: 112 additions & 0 deletions
112
...ollections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/lacp.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,112 @@ | ||
# lacp | ||
# Table of Contents | ||
<!-- toc --> | ||
|
||
- [Management](#management) | ||
- [Management Interfaces](#management-interfaces) | ||
- [Authentication](#authentication) | ||
- [Monitoring](#monitoring) | ||
- [LACP](#lacp) | ||
- [LACP Summary](#lacp-summary) | ||
- [LACP Device Configuration](#lacp-device-configuration) | ||
- [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 | ||
|
||
# Monitoring | ||
|
||
# LACP | ||
|
||
## LACP Summary | ||
|
||
| Port-id range | Rate-limit default | System-priority | | ||
| ------------- | ------------------ | --------------- | | ||
| 1 - 128 | False | 0 | | ||
|
||
## LACP Device Configuration | ||
|
||
```eos | ||
! | ||
lacp port-id range 1 128 | ||
no lacp rate-limit default | ||
lacp system-priority 0 | ||
``` | ||
|
||
# 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 |
19 changes: 19 additions & 0 deletions
19
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/lacp.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,19 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
lacp port-id range 1 128 | ||
no lacp rate-limit default | ||
lacp system-priority 0 | ||
! | ||
hostname lacp | ||
! | ||
no aaa root | ||
no enable password | ||
! | ||
interface Management1 | ||
description oob_management | ||
vrf MGMT | ||
ip address 10.73.255.122/24 | ||
! | ||
end |
8 changes: 8 additions & 0 deletions
8
ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/lacp.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,8 @@ | ||
lacp: | ||
port_id: | ||
range: | ||
begin: 1 | ||
end: 128 | ||
rate_limit: | ||
default: false | ||
system_priority: 0 |
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
21 changes: 21 additions & 0 deletions
21
...ections/arista/avd/roles/eos_cli_config_gen/templates/documentation/lacp-configuration.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,21 @@ | ||
{% if lacp is arista.avd.defined %} | ||
|
||
# LACP | ||
|
||
## LACP Summary | ||
|
||
| Port-id range | Rate-limit default | System-priority | | ||
| ------------- | ------------------ | --------------- | | ||
{% if lacp.port_id.range.begin is arista.avd.defined and lacp.port_id.range.end is arista.avd.defined %} | ||
{% set row_range = lacp.port_id.range.begin ~ ' - ' ~ lacp.port_id.range.end %} | ||
{% else %} | ||
{% set row_range = '-' %} | ||
{% endif %} | ||
| {{ row_range }} | {{ lacp.rate_limit.default | arista.avd.default('-') }} | {{ lacp.system_priority | arista.avd.default('-') }} | | ||
|
||
## LACP Device Configuration | ||
|
||
```eos | ||
{% include 'eos/lacp.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
15 changes: 15 additions & 0 deletions
15
ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/lacp.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,15 @@ | ||
{# eos - lacp #} | ||
{% if lacp is arista.avd.defined %} | ||
! | ||
{% if lacp.port_id.range.begin is arista.avd.defined and lacp.port_id.range.end is arista.avd.defined %} | ||
lacp port-id range {{ lacp.port_id.range.begin }} {{ lacp.port_id.range.end }} | ||
{% endif %} | ||
{% if lacp.rate_limit.default is arista.avd.defined(true) %} | ||
lacp rate-limit default | ||
{% elif lacp.rate_limit.default is arista.avd.defined(false) %} | ||
no lacp rate-limit default | ||
{% endif %} | ||
{% if lacp.system_priority is arista.avd.defined %} | ||
lacp system-priority {{ lacp.system_priority }} | ||
{% endif %} | ||
{% endif %} |