Skip to content

Commit

Permalink
Refactor(eos_cli_config_gen): Addressed missed comments for patch-pan…
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jun 7, 2024
1 parent d0c043b commit 6e1686f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ interface Management1

### Patch Panel Summary

Patch Panel Connector Interface Recovery Review Delay Min: 10

Patch Panel Connector Interface Recovery Review Delay Max: 900
Patch Panel Connector Interface Recovery Review Delay Min: 10s - Max: 900s

Patch Panel Connector Interface Path BGP VPWS Remote Failure Errdisable is enabled.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bgp_vpws_remote_failure_errdisable</samp>](## "patch_panel.connector.interface.patch.bgp_vpws_remote_failure_errdisable") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recovery</samp>](## "patch_panel.connector.interface.recovery") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;review_delay</samp>](## "patch_panel.connector.interface.recovery.review_delay") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min</samp>](## "patch_panel.connector.interface.recovery.review_delay.min") | Integer | Required | | Min: 10 | Minimum delay (10-600). |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max</samp>](## "patch_panel.connector.interface.recovery.review_delay.max") | Integer | Required | | Min: 15 | Maximum delay (15-900). |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min</samp>](## "patch_panel.connector.interface.recovery.review_delay.min") | Integer | Required | | Min: 10<br>Max: 600 | Minimum delay. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max</samp>](## "patch_panel.connector.interface.recovery.review_delay.max") | Integer | Required | | Min: 15<br>Max: 900 | Maximum delay. |
| [<samp>&nbsp;&nbsp;patches</samp>](## "patch_panel.patches") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;name</samp>](## "patch_panel.patches.[].name") | String | Required, Unique | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enabled</samp>](## "patch_panel.patches.[].enabled") | Boolean | | | | |
Expand All @@ -35,11 +35,11 @@
recovery:
review_delay:

# Minimum delay (10-600).
min: <int; >=10; required>
# Minimum delay.
min: <int; 10-600; required>

# Maximum delay (15-900).
max: <int; >=15; required>
# Maximum delay.
max: <int; 15-900; required>
patches:
- name: <str; required; unique>
enabled: <bool>
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 @@ -30,16 +30,18 @@ keys:
type: int
required: true
min: 10
max: 600
convert_types:
- str
description: Minimum delay (10-600).
description: Minimum delay.
max:
type: int
required: true
min: 15
max: 900
convert_types:
- str
description: Maximum delay (15-900).
description: Maximum delay.
patches:
type: list
primary_key: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
## Patch Panel

### Patch Panel Summary
{% if patch_panel.connector.interface.recovery.review_delay.min is arista.avd.defined %}
{% if patch_panel.connector.interface.recovery.review_delay.min is arista.avd.defined and patch_panel.connector.interface.recovery.review_delay.max is arista.avd.defined %}

Patch Panel Connector Interface Recovery Review Delay Min: {{ patch_panel.connector.interface.recovery.review_delay.min }}
{% endif %}
{% if patch_panel.connector.interface.recovery.review_delay.max is arista.avd.defined %}

Patch Panel Connector Interface Recovery Review Delay Max: {{ patch_panel.connector.interface.recovery.review_delay.max }}
Patch Panel Connector Interface Recovery Review Delay Min: {{ patch_panel.connector.interface.recovery.review_delay.min }}s - Max: {{ patch_panel.connector.interface.recovery.review_delay.max }}s
{% endif %}
{% if patch_panel.connector.interface.patch.bgp_vpws_remote_failure_errdisable is arista.avd.defined(true) %}

Expand Down

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

0 comments on commit 6e1686f

Please sign in to comment.