Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): add_hardware_port_group_knob (#4500)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccsnw authored Sep 23, 2024
1 parent af3ea14 commit bcdf59b
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
!
hardware port-group 1 select Et32/1-4
hardware port-group 2 select Et32/1,Et32/3,Et34
!
hardware access-list mechanism tcam
!
hardware speed-group 1 serdes 10g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ hardware:
serdes: 25g
- speed_group: 3/1
serdes: 25g
port_groups:
- port_group: 1
select: Et32/1-4
- port_group: 2
select: Et32/1,Et32/3,Et34

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
that can be found in the LICENSE file.
#}
{# eos - hardware #}
{% if hardware.port_groups is arista.avd.defined %}
!
{% for port_group in hardware.port_groups %}
{% if port_group.select is arista.avd.defined %}
hardware port-group {{ port_group.port_group }} select {{ port_group.select }}
{% endif %}
{% endfor %}
{% endif %}
{% if hardware.access_list.mechanism is arista.avd.defined %}
!
hardware access-list mechanism {{ hardware.access_list.mechanism }}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,16 @@ keys:
serdes:
type: str
description: Serdes speed like "10g" or "25g".
port_groups:
type: list
primary_key: port_group
items:
type: dict
keys:
port_group:
type: str
convert_types:
- int
select:
type: str
description: Select Ports to activate

0 comments on commit bcdf59b

Please sign in to comment.