-
Notifications
You must be signed in to change notification settings - Fork 239
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 support for Receive Side Scaling (RSS) …
…interface profile
- Loading branch information
1 parent
6d2c93c
commit a675cd3
Showing
11 changed files
with
589 additions
and
0 deletions.
There are no files selected for viewing
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
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
44 changes: 44 additions & 0 deletions
44
ansible_collections/arista/avd/roles/eos_cli_config_gen/docs/tables/platform.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/platform-sfe-interface.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,48 @@ | ||
{# | ||
Copyright (c) 2023-2025 Arista Networks, Inc. | ||
Use of this source code is governed by the Apache License 2.0 | ||
that can be found in the LICENSE file. | ||
#} | ||
{# doc - platform sfe interface #} | ||
{% if platform.sfe.interface is arista.avd.defined %} | ||
|
||
##### Platform Software Forwarding Engine Interface Summary | ||
|
||
{% if platform.sfe.interface.interface_profile is arista.avd.defined %} | ||
###### RSS Profile to apply | ||
|
||
####### {{ platform.sfe.interface.interface_profile }} | ||
{% endif %} | ||
|
||
{% if platform.sfe.interface.profiles is arista.avd.defined %} | ||
###### RSS Profiles | ||
{% for profile_data in platform.sfe.interface.profiles | arista.avd.natural_sort('name') %} | ||
|
||
####### {{ profile_data.name }} | ||
{% for interface_data in profile_data.interfaces | arista.avd.natural_sort('name') %} | ||
|
||
######## {{ interface_data.name }} | ||
{% if interface_data.rx_queue is arista.avd.defined %} | ||
|
||
| Settings | Value | | ||
| -------- | ----- | | ||
{% if interface_data.rx_queue.count is arista.avd.defined %} | ||
| Rx-Queue Count | {{ interface_data.rx_queue.count }} | | ||
{% endif %} | ||
{% if interface_data.rx_queue.worker is arista.avd.defined %} | ||
| Rx-Queue Worker | {{ interface_data.rx_queue.worker }} | | ||
{% endif %} | ||
{% if interface_data.rx_queue.mode is arista.avd.defined %} | ||
| Rx-Queue Mode | {{ interface_data.rx_queue.mode }} | | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
##### Platform Software Forwarding Engine Interface Device Configuration | ||
|
||
```eos | ||
{% include 'eos/platform-sfe-interface.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
34 changes: 34 additions & 0 deletions
34
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/platform-sfe-interface.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,34 @@ | ||
{# | ||
Copyright (c) 2023-2025 Arista Networks, Inc. | ||
Use of this source code is governed by the Apache License 2.0 | ||
that can be found in the LICENSE file. | ||
#} | ||
{# eos - platform sfe interface #} | ||
{% if platform.sfe.interface is arista.avd.defined %} | ||
! | ||
platform sfe interface | ||
{# interface profile to apply #} | ||
{% if platform.sfe.interface.interface_profile is arista.avd.defined %} | ||
interface profile {{ platform.sfe.interface.interface_profile }} | ||
{% endif %} | ||
{% for profile_data in platform.sfe.interface.profiles | arista.avd.natural_sort('name') %} | ||
{# profiles available #} | ||
! | ||
profile {{ profile_data.name }} | ||
{% for interface_data in profile_data.interfaces | arista.avd.natural_sort('name') %} | ||
interface {{ interface_data.name }} | ||
{% if interface_data.rx_queue.count is arista.avd.defined %} | ||
rx-queue count {{ interface_data.rx_queue.count }} | ||
{% endif %} | ||
{% if interface_data.rx_queue.worker is arista.avd.defined %} | ||
rx-queue worker {{ interface_data.rx_queue.worker }} | ||
{% endif %} | ||
{% if interface_data.rx_queue.mode is arista.avd.defined %} | ||
rx-queue mode {{ interface_data.rx_queue.mode }} | ||
{% endif %} | ||
{% if not loop.last %} | ||
! | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
Oops, something went wrong.