diff --git a/dist/NetBox VM Import.exe b/dist/NetBox VM Import.exe index e5f882c..85ceec6 100644 Binary files a/dist/NetBox VM Import.exe and b/dist/NetBox VM Import.exe differ diff --git a/switch_sync.py b/switch_sync.py index b710074..4db261a 100644 --- a/switch_sync.py +++ b/switch_sync.py @@ -321,9 +321,12 @@ def parse_neighbors(output): )) system_name = _field(block, ( r"^\s*Neighbor Chassis-Name\s*:\s*(.+)$", + r"^[ \t]*Neighbor System-Name[ \t]*:[ \t]*(.*)$", r"^\s*(?:System Name|SysName)\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, ( r"^\s*Neighbor Port-ID\s*:\s*(.+)$", r"^\s*Neighbor Port-Desc\s*:\s*(.+)$",