Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(eos_cli_config_gen): Add support for LSP and CSNP timers under router_isis #4619

Merged
merged 19 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ interface Management1
| Settings | Value |
| -------- | ----- |
| Instance | EVPN_UNDERLAY |
| LSP Generation Maximum Interval | 30 seconds |

#### ISIS Interfaces Summary

Expand All @@ -57,6 +58,7 @@ interface Management1
router isis EVPN_UNDERLAY
set-overload-bit
set-overload-bit on-startup 55
timers lsp generation 30
authentication mode sha key-id 4 rx-disabled
!
```
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ interface Vlan4094
| Log Adjacency Changes | False |
| MPLS LDP Sync Default | True |
| Local Convergence Delay (ms) | 10000 |
| LSP Generation Maximum Interval | 30 seconds |
| LSP Generation Initial Wait-time | 40 milliseconds |
| Advertise Passive-only | True |
| SR MPLS Enabled | True |
| SPF Interval | 250 seconds |
Expand Down Expand Up @@ -282,6 +284,7 @@ router isis EVPN_UNDERLAY
set-overload-bit
advertise passive-only
spf-interval 250 seconds 10 milliseconds 20 milliseconds
timers lsp generation 30 40
authentication mode shared-secret profile test1 algorithm md5 level-1
authentication mode sha key-id 2 level-2
graceful-restart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ interface Vlan4094
| Router-ID | 192.168.255.3 |
| Log Adjacency Changes | True |
| Local Convergence Delay (ms) | 15000 |
| CSN Packet Transmission Interval | 10 seconds |
| CSN Packet P2P Links Disabled | True |
| LSP Generation Maximum Interval | 30 seconds |
| LSP Generation Initial Wait-time | 40 milliseconds |
| LSP Generation Wait-time | 50 milliseconds |
| LSP Out-delay | 20 milliseconds |
| LSP Refresh Interval | 56 seconds |
| LSP Minimum Remaining Lifetime | 78 seconds |
gmuloc marked this conversation as resolved.
Show resolved Hide resolved
| Advertise Passive-only | True |
| SR MPLS Enabled | False |
| SPF Interval | 250 seconds |
Expand Down Expand Up @@ -352,6 +360,12 @@ router isis EVPN_UNDERLAY
set-overload-bit on-startup wait-for-bgp
advertise passive-only
spf-interval 250
timers csnp generation interval 10 seconds
timers csnp generation p2p disabled
timers lsp out-delay 20
timers lsp refresh 56
timers lsp generation 30 40 50
timers lsp min-remaining-lifetime 78
authentication mode sha key-id 5 rx-disabled level-1
authentication mode shared-secret profile test2 algorithm md5 rx-disabled level-2
authentication key 0 password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ interface Management1
router isis EVPN_UNDERLAY
set-overload-bit
set-overload-bit on-startup 55
timers lsp generation 30
authentication mode sha key-id 4 rx-disabled
!
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ router isis EVPN_UNDERLAY
set-overload-bit
advertise passive-only
spf-interval 250 seconds 10 milliseconds 20 milliseconds
timers lsp generation 30 40
authentication mode shared-secret profile test1 algorithm md5 level-1
authentication mode sha key-id 2 level-2
graceful-restart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ router isis EVPN_UNDERLAY
set-overload-bit on-startup wait-for-bgp
advertise passive-only
spf-interval 250
timers csnp generation interval 10 seconds
MaheshGSLAB marked this conversation as resolved.
Show resolved Hide resolved
timers csnp generation p2p disabled
timers lsp out-delay 20
timers lsp refresh 56
timers lsp generation 30 40 50
timers lsp min-remaining-lifetime 78
authentication mode sha key-id 5 rx-disabled level-1
authentication mode shared-secret profile test2 algorithm md5 rx-disabled level-2
authentication key 0 password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ router_isis:
enabled: true
on_startup:
delay: 55
timers:
lsp:
generation:
interval: 30
authentication:
both:
key_type: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ router_isis:
timers:
local_convergence:
protected_prefixes: true
lsp:
generation:
interval: 30
initial_wait_time: 40
advertise:
passive_only: true
redistribute_routes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ router_isis:
local_convergence:
protected_prefixes: true
delay: 15000
csnp_generation:
interval: 10
p2p_disabled: true
lsp:
out_delay: 20
refresh_interval: 56
generation:
interval: 30
initial_wait_time: 40
wait_time: 50
min_remaining_lifetime: 78
advertise:
passive_only: true
redistribute_routes:
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 @@ -33,6 +33,30 @@
{% if router_isis.timers.local_convergence.protected_prefixes is arista.avd.defined(true) %}
| Local Convergence Delay (ms) | {{ router_isis.timers.local_convergence.delay | arista.avd.default(10000) }} |
gmuloc marked this conversation as resolved.
Show resolved Hide resolved
{% endif %}
{% if router_isis.timers.csnp_generation.interval is arista.avd.defined %}
| CSN Packet Transmission Interval | {{ router_isis.timers.csnp_generation.interval }} seconds |
{% endif %}
{% if router_isis.timers.csnp_generation.p2p_disabled is arista.avd.defined %}
| CSN Packet P2P Links Disabled | {{ router_isis.timers.csnp_generation.p2p_disabled }} |
{% endif %}
{% if router_isis.timers.lsp.generation.interval is arista.avd.defined %}
| LSP Generation Maximum Interval | {{ router_isis.timers.lsp.generation.interval }} seconds |
{% endif %}
{% if router_isis.timers.lsp.generation.initial_wait_time is arista.avd.defined %}
| LSP Generation Initial Wait-time | {{ router_isis.timers.lsp.generation.initial_wait_time }} milliseconds |
{% endif %}
{% if router_isis.timers.lsp.generation.wait_time is arista.avd.defined %}
| LSP Generation Wait-time | {{ router_isis.timers.lsp.generation.wait_time }} milliseconds |
{% endif %}
{% if router_isis.timers.lsp.out_delay is arista.avd.defined %}
| LSP Out-delay | {{ router_isis.timers.lsp.out_delay }} milliseconds |
{% endif %}
{% if router_isis.timers.lsp.refresh_interval is arista.avd.defined %}
| LSP Refresh Interval | {{ router_isis.timers.lsp.refresh_interval }} seconds |
{% endif %}
{% if router_isis.timers.lsp.min_remaining_lifetime is arista.avd.defined %}
| LSP Minimum Remaining Lifetime | {{ router_isis.timers.lsp.min_remaining_lifetime }} seconds |
{% endif %}
{% if router_isis.advertise.passive_only is arista.avd.defined(true) %}
| Advertise Passive-only | {{ router_isis.advertise.passive_only }} |
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,31 @@ router isis {{ router_isis.instance }}
{% endif %}
{{ spf_interval_cli }}
{% endif %}
{% if router_isis.timers.csnp_generation.interval is arista.avd.defined %}
timers csnp generation interval {{ router_isis.timers.csnp_generation.interval }} seconds
{% endif %}
{% if router_isis.timers.csnp_generation.p2p_disabled is arista.avd.defined(true) %}
timers csnp generation p2p disabled
{% endif %}
{% if router_isis.timers.lsp.out_delay is arista.avd.defined %}
timers lsp out-delay {{ router_isis.timers.lsp.out_delay }}
{% endif %}
{% if router_isis.timers.lsp.refresh_interval is arista.avd.defined %}
timers lsp refresh {{ router_isis.timers.lsp.refresh_interval }}
{% endif %}
{% if router_isis.timers.lsp.generation.interval is arista.avd.defined %}
{% set timers_lsp_generation = "timers lsp generation " ~ router_isis.timers.lsp.generation.interval %}
{% if router_isis.timers.lsp.generation.initial_wait_time is arista.avd.defined %}
{% set timers_lsp_generation = timers_lsp_generation ~ " " ~ router_isis.timers.lsp.generation.initial_wait_time %}
{% if router_isis.timers.lsp.generation.wait_time is arista.avd.defined %}
{% set timers_lsp_generation = timers_lsp_generation ~ " " ~ router_isis.timers.lsp.generation.wait_time %}
{% endif %}
{% endif %}
Shivani-gslab marked this conversation as resolved.
Show resolved Hide resolved
{{ timers_lsp_generation }}
{% endif %}
{% if router_isis.timers.lsp.min_remaining_lifetime is arista.avd.defined %}
timers lsp min-remaining-lifetime {{ router_isis.timers.lsp.min_remaining_lifetime }}
{% endif %}
{% if router_isis.authentication.both.mode is arista.avd.defined
and (router_isis.authentication.both.mode in ["md5", "text"]
or (router_isis.authentication.both.mode == "sha" and router_isis.authentication.both.sha.key_id is arista.avd.defined)
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 @@ -44,6 +44,69 @@ keys:
- str
default: 10000
description: Delay in milliseconds.
lsp:
description: Link State Packet timers.
type: dict
keys:
generation:
type: dict
keys:
interval:
type: int
convert_types:
- str
min: 1
max: 300
required: true
description: Maximum interval (in seconds) between generating two LSPs.
initial_wait_time:
type: int
convert_types:
- str
min: 1
max: 300000
description: Initial wait time (in milliseconds) before generating LSPs.
wait_time:
type: int
convert_types:
- str
min: 1
max: 300000
description: Wait time (in milliseconds) between generating the first and second LSPs.
out_delay:
type: int
convert_types:
- str
min: 1
max: 65000
description: Transmit delay (in milliseconds) for link state packets.
refresh_interval:
type: int
convert_types:
- str
min: 30
max: 65535
description: Interval (in seconds) between two LSP refreshes.
min_remaining_lifetime:
type: int
convert_types:
- str
min: 60
max: 65535
description: Minimum remaining lifetime for LSPs (in seconds).
csnp_generation:
type: dict
keys:
interval:
type: int
convert_types:
- str
min: 1
max: 300
description: Transmit frequency (in seconds) for CSN packets.
p2p_disabled:
type: bool
description: Disable periodic CSN packets for P2P links.
gmuloc marked this conversation as resolved.
Show resolved Hide resolved
set_overload_bit:
type: dict
keys:
Expand Down
Loading