|
9 | 9 | ## Errdisable
|
10 | 10 |
|
11 | 11 | ### Errdisable Summary
|
| 12 | +{% if errdisable.recovery.interval is arista.avd.defined %} |
12 | 13 |
|
13 |
| -{% if errdisable.recovery is defined %} |
14 |
| -{% if errdisable.detect.causes is defined %} |
15 |
| -| Detect Cause | Enabled | |
16 |
| -| ------------- | ------- | |
17 |
| -{% for cause in errdisable.detect.causes | arista.avd.natural_sort %} |
18 |
| -{% if cause == 'acl' %} |
19 |
| -| {{ cause }} | True | |
20 |
| -{% elif cause == 'arp-inspection' %} |
21 |
| -| {{ cause }} | True | |
22 |
| -{% elif cause == 'dot1x' %} |
23 |
| -| {{ cause }} | True | |
24 |
| -{% elif cause == 'link-change' %} |
25 |
| -| {{ cause }} | True | |
26 |
| -{% elif cause == 'tapagg' %} |
27 |
| -| {{ cause }} | True | |
28 |
| -{% elif cause == 'xcvr-misconfigured' %} |
29 |
| -| {{ cause }} | True | |
30 |
| -{% elif cause == 'xcvr-overheat' %} |
31 |
| -| {{ cause }} | True | |
32 |
| -{% elif cause == 'xcvr-power-unsupported' %} |
33 |
| -| {{ cause }} | True | |
34 |
| -{% endif %} |
35 |
| -{% endfor %} |
36 |
| -{% endif %} |
| 14 | +Errdisable recovery timer interval: {{ errdisable.recovery.interval }} seconds |
| 15 | +{% endif %} |
| 16 | +{% if errdisable.detect.causes is arista.avd.defined or errdisable.recovery.causes is arista.avd.defined %} |
| 17 | +{% set combined_causes = ( errdisable.detect.causes | arista.avd.default([]) + errdisable.recovery.causes | arista.avd.default([]) ) | unique %} |
37 | 18 |
|
38 |
| -{% if errdisable.recovery.interval is arista.avd.defined %} |
39 |
| -{% endif %} |
40 |
| -{% if errdisable.recovery.causes is defined %} |
41 |
| -| Detect Cause | Enabled | Interval | |
42 |
| -| ------------- | ------- | -------- | |
43 |
| -{% for cause in errdisable.recovery.causes | arista.avd.natural_sort %} |
44 |
| -{% if cause == 'arp-inspection' %} |
45 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
46 |
| -{% elif cause == 'bpduguard' %} |
47 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
48 |
| -{% elif cause == 'dot1x' %} |
49 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
50 |
| -{% elif cause == 'hitless-reload-down' %} |
51 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
52 |
| -{% elif cause == 'lacp-rate-limit' %} |
53 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
54 |
| -{% elif cause == 'link-flap' %} |
55 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
56 |
| -{% elif cause == 'no-internal-vlan' %} |
57 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
58 |
| -{% elif cause == 'portchannelguard' %} |
59 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
60 |
| -{% elif cause == 'portsec' %} |
61 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
62 |
| -{% elif cause == 'speed-misconfigured' %} |
63 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
64 |
| -{% elif cause == 'tapagg' %} |
65 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
66 |
| -{% elif cause == 'uplink-failure-detection' %} |
67 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
68 |
| -{% elif cause == 'xcvr-misconfigured' %} |
69 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
70 |
| -{% elif cause == 'xcvr-overheat' %} |
71 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
72 |
| -{% elif cause == 'xcvr-power-unsupported' %} |
73 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
74 |
| -{% elif cause == 'xcvr-unsupported' %} |
75 |
| -| {{ cause }} | True | {{ errdisable.recovery.interval }} | |
76 |
| -{% endif %} |
77 |
| -{% endfor %} |
78 |
| -{% endif %} |
| 19 | +| Cause | Detection Enabled | Recovery Enabled | |
| 20 | +| ------ | ----------------- | ---------------- | |
| 21 | +{% for cause in combined_causes | arista.avd.natural_sort %} |
| 22 | +{% if cause in errdisable.detect.causes | arista.avd.default([]) %} |
| 23 | +{% set detect_status = True %} |
| 24 | +{% else %} |
| 25 | +{% set detect_status = "-" %} |
| 26 | +{% endif %} |
| 27 | +{% if cause in errdisable.recovery.causes | arista.avd.default([]) %} |
| 28 | +{% set recovery_status = True %} |
| 29 | +{% else %} |
| 30 | +{% set recovery_status = "-" %} |
| 31 | +{% endif %} |
| 32 | +| {{ cause }} | {{ detect_status }} | {{ recovery_status }} | |
| 33 | +{% endfor %} |
79 | 34 | {% endif %}
|
80 | 35 |
|
81 | 36 | ```eos
|
|
0 commit comments