fix(netbox): adapt client for NetBox 4.4 API compatibility

- Bump pynetbox dependency to >=7.5.0
- Change get_device_asn to read ASN from device custom field instead of
  filtering ASNs by device (unsupported in NetBox 4.4)
- Remove device_name filter from get_l2vpn_terminations as L2VPN
  terminations cannot be filtered by device in NetBox 4.4
- Refactor get_vrf_interfaces to query IP addresses with VRF filter and
  extract associated interfaces (VRF filtering on interfaces unsupported)
- Add get_interface_mlag_id method to read MLAG ID from interface
  custom field
This commit is contained in:
darnodo
2026-01-09 10:24:57 +01:00
parent 2f828f43d6
commit ac763aa376
3 changed files with 120 additions and 20 deletions

2
uv.lock generated
View File

@@ -231,7 +231,7 @@ dev = [
requires-dist = [
{ name = "click", specifier = ">=8.1.0" },
{ name = "pygnmi", specifier = ">=0.8.0" },
{ name = "pynetbox", specifier = ">=7.0.0" },
{ name = "pynetbox", specifier = ">=7.5.0" },
{ name = "rich", specifier = ">=13.0.0" },
]