From 9b88b940bfcdc06db8563ea0c71062bf790c3588 Mon Sep 17 00:00:00 2001 From: rwxd Date: Thu, 22 Feb 2024 11:57:38 +0100 Subject: [PATCH] fix(netbox): correctly query for ip --- ipams/netbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipams/netbox.py b/ipams/netbox.py index e20d200..42a4d73 100644 --- a/ipams/netbox.py +++ b/ipams/netbox.py @@ -33,7 +33,7 @@ def __init__(self, config: NetBoxConfig): def query_ip(self, ip: Union[IPv4Address, IPv6Address]) -> NetBoxIPTable: """Query NetBox for IP address""" results = NetBoxIPTable(self.name) - for q_ip in self.conn.ipam.ip_addresses.filter(q=str(ip)): + for q_ip in self.conn.ipam.ip_addresses.filter(address=str(ip)): results.add_row( vrf=q_ip.vrf.name if q_ip.vrf else '', tenant=q_ip.tenant.name if q_ip.tenant else '',