Raise netbox API pagination limit so that all devices are included.

This commit is contained in:
2022-12-09 06:52:12 +00:00
parent 23fcfbf313
commit 9c1de65e4c
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ echo "# generated by $0 at $(date)"
echo
cat dhcpd.conf.head
do_curl "https://${NETBOX}/api/ipam/ip-addresses/" | \
do_curl "https://${NETBOX}/api/ipam/ip-addresses/?limit=10000" | \
jq -r '.results[] | .assigned_object.device.name + .assigned_object.virtual_machine.name + " " + (.address / "/")[0] + " " + .assigned_object.url' |
while read name ip owner
do