Skip to content

Commit

Permalink
fix(netbox): correctly query for ip
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Feb 22, 2024
1 parent 3e717cc commit 9b88b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipams/netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '',
Expand Down

0 comments on commit 9b88b94

Please # to comment.