anta
anta copied to clipboard
VerifyLLDPNeighbors test adding an extra carriage return, causing an extra line in Markdown report
Found that the LLDP Neighbor check is adding an extra line break moving the interface to its own line in the Markdown report.
| 6 | dc2-bsl-01 | Connectivity | VerifyLLDPNeighbors | Verifies that the provided LLDP neighbors are connected properly. | Local: Ethernet1/1 - Remote: dc1-bsl-01 Ethernet1/1 | FAIL | No LLDP neighbor(s) on port(s):
Ethernet1/1 |
If I modify the file anta/tests/connectivity.py line 167 from failure_messages.append(f"{failure_type}:\n {ports_str}")
to failure_messages.append(f"{failure_type}: {ports_str}")
my output Markdown file is formatted correctly;
| 6 | dc2-bsl-01 | Connectivity | VerifyLLDPNeighbors | Verifies that the provided LLDP neighbors are connected properly. | Local: Ethernet1/1 - Remote: dc1-bsl-01 Ethernet1/1 | FAIL | No LLDP neighbor(s) on port(s): Ethernet1/1 |