fix: parse AOS-CX neighbor system names

Recognize the Neighbor System-Name field emitted by Aruba 6100 PL.10.13 and fall back to the chassis ID when the advertised name is empty.
This commit is contained in:
2026-07-30 10:51:19 +02:00
parent e147642117
commit fff69277ab
2 changed files with 3 additions and 0 deletions
BIN
View File
Binary file not shown.
+3
View File
@@ -321,9 +321,12 @@ def parse_neighbors(output):
)) ))
system_name = _field(block, ( system_name = _field(block, (
r"^\s*Neighbor Chassis-Name\s*:\s*(.+)$", r"^\s*Neighbor Chassis-Name\s*:\s*(.+)$",
r"^[ \t]*Neighbor System-Name[ \t]*:[ \t]*(.*)$",
r"^\s*(?:System Name|SysName)\s*[: ]\s*(.+)$", r"^\s*(?:System Name|SysName)\s*[: ]\s*(.+)$",
r"^\s*Neighbor name\s*[: ]\s*(.+)$", r"^\s*Neighbor name\s*[: ]\s*(.+)$",
)) ))
if not system_name:
system_name = _field(block, (r"^\s*Neighbor Chassis-ID\s*:\s*(.+)$",))
remote_port = _field(block, ( remote_port = _field(block, (
r"^\s*Neighbor Port-ID\s*:\s*(.+)$", r"^\s*Neighbor Port-ID\s*:\s*(.+)$",
r"^\s*Neighbor Port-Desc\s*:\s*(.+)$", r"^\s*Neighbor Port-Desc\s*:\s*(.+)$",