Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add interface TE twamp-light with fallback …
Browse files Browse the repository at this point in the history
…knobs (#4935)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Mahesh Kumar <[email protected]>
Co-authored-by: Guillaume Mulocher <[email protected]>
Co-authored-by: Claus Holbech <[email protected]>
  • Loading branch information
5 people authored Feb 6, 2025
1 parent c15b52c commit 66d965f
Show file tree
Hide file tree
Showing 14 changed files with 346 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3934,6 +3934,7 @@ interface Dps1
| Interface | Enabled | Administrative Groups | Metric | Max Reservable Bandwidth | Min-delay | SRLG |
| --------- | ------- | --------------------- | ------ | ------------------------ | --------- | ---- |
| Ethernet81/3 | True | 3,15-29,testgrp | 4 | 10 percent | 5 microseconds | TEST-SRLG |
| Ethernet81/4 | True | 4,7-100,testgrp | 2 | 100 mbps | twamp-light, fallback 2 milliseconds | 16 |

#### Ethernet Interfaces Device Configuration

Expand Down Expand Up @@ -4940,11 +4941,12 @@ interface Ethernet81/4
no shutdown
no switchport
ip address 100.64.127.0/31
traffic-engineering
traffic-engineering bandwidth 100 mbps
traffic-engineering administrative-group 4,7-100,testgrp
traffic-engineering srlg 16
traffic-engineering metric 2
traffic-engineering min-delay static 2 milliseconds
traffic-engineering min-delay dynamic twamp-light fallback 2 milliseconds
!
interface Ethernet81/10
description isis_port_channel_member
Expand Down Expand Up @@ -5193,7 +5195,7 @@ interface Ethernet84

| Interface | Enabled | Administrative Groups | Metric | Max Reservable Bandwidth | Min-delay | SRLG |
| --------- | ------- | --------------------- | ------ | ------------------------ | --------- | ---- |
| Port-Channel136 | True | 7 | - | - | - | - |
| Port-Channel136 | True | 7 | - | - | twamp-light, fallback 123 microseconds | - |

#### Port-Channel Interfaces Device Configuration

Expand Down Expand Up @@ -5814,6 +5816,7 @@ interface Port-Channel136
ip address 100.64.127.2/31
traffic-engineering
traffic-engineering administrative-group 7
traffic-engineering min-delay dynamic twamp-light fallback 123 microseconds
!
interface Port-Channel137
description Traffic Engineering Interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,7 @@ interface Port-Channel136
ip address 100.64.127.2/31
traffic-engineering
traffic-engineering administrative-group 7
traffic-engineering min-delay dynamic twamp-light fallback 123 microseconds
!
interface Port-Channel137
description Traffic Engineering Interface
Expand Down Expand Up @@ -3308,11 +3309,12 @@ interface Ethernet81/4
no shutdown
no switchport
ip address 100.64.127.0/31
traffic-engineering
traffic-engineering bandwidth 100 mbps
traffic-engineering administrative-group 4,7-100,testgrp
traffic-engineering srlg 16
traffic-engineering metric 2
traffic-engineering min-delay static 2 milliseconds
traffic-engineering min-delay dynamic twamp-light fallback 2 milliseconds
!
interface Ethernet81/10
description isis_port_channel_member
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ ethernet_interfaces:
enabled: false
ip_address: 100.64.127.0/31
traffic_engineering:
enabled: false
enabled: true
administrative_groups:
- 4
- 7-100
Expand All @@ -1907,9 +1907,10 @@ ethernet_interfaces:
bandwidth:
number: 100
unit: mbps
min_delay_static:
number: 2
unit: milliseconds
min_delay_dynamic:
twamp_light_fallback:
number: 2
unit: milliseconds

- name: Ethernet82
description: Switchport_tap_tool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,10 @@ port_channel_interfaces:
enabled: true
administrative_groups:
- 7
min_delay_dynamic:
twamp_light_fallback:
number: 123
unit: microseconds

- name: Port-Channel137
description: Traffic Engineering Interface
Expand Down

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

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 @@ -819,6 +819,8 @@
{% endif %}
{% if te_interface.traffic_engineering.min_delay_static is arista.avd.defined %}
{% set te_min_del = te_interface.traffic_engineering.min_delay_static.number ~ " " ~ te_interface.traffic_engineering.min_delay_static.unit %}
{% elif te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback is arista.avd.defined %}
{% set te_min_del = "twamp-light, fallback " ~ te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.number ~ " " ~ te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.unit %}
{% else %}
{% set te_min_del = "-" %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@
{% endif %}
{% if po_te_interface.traffic_engineering.min_delay_static is arista.avd.defined %}
{% set te_min_del = po_te_interface.traffic_engineering.min_delay_static.number ~ " " ~ po_te_interface.traffic_engineering.min_delay_static.unit %}
{% elif po_te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback is arista.avd.defined %}
{% set te_min_del = "twamp-light, fallback " ~ po_te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.number ~ " " ~ po_te_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.unit %}
{% else %}
{% set te_min_del = "-" %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,8 @@ interface {{ ethernet_interface.name }}
{% endif %}
{% if ethernet_interface.traffic_engineering.min_delay_static is arista.avd.defined %}
traffic-engineering min-delay static {{ ethernet_interface.traffic_engineering.min_delay_static.number }} {{ ethernet_interface.traffic_engineering.min_delay_static.unit }}
{% elif ethernet_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback is arista.avd.defined %}
traffic-engineering min-delay dynamic twamp-light fallback {{ ethernet_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.number }} {{ ethernet_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.unit }}
{% endif %}
{% for link_tracking_group in ethernet_interface.link_tracking_groups | arista.avd.natural_sort %}
{% if link_tracking_group.name is arista.avd.defined and link_tracking_group.direction is arista.avd.defined %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ interface {{ port_channel_interface.name }}
{% endif %}
{% if port_channel_interface.traffic_engineering.min_delay_static is arista.avd.defined %}
traffic-engineering min-delay static {{ port_channel_interface.traffic_engineering.min_delay_static.number }} {{ port_channel_interface.traffic_engineering.min_delay_static.unit }}
{% elif port_channel_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback is arista.avd.defined %}
traffic-engineering min-delay dynamic twamp-light fallback {{ port_channel_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.number }} {{ port_channel_interface.traffic_engineering.min_delay_dynamic.twamp_light_fallback.unit }}
{% endif %}
{% for link_tracking_group in port_channel_interface.link_tracking_groups | arista.avd.natural_sort('name') %}
{% if link_tracking_group.name is arista.avd.defined and link_tracking_group.direction is arista.avd.defined %}
Expand Down
Loading

0 comments on commit 66d965f

Please sign in to comment.