annetutil / annet

MIT License
35 stars 11 forks source link

NEBIUSNOC-2468: fix netbox hostname query matching multiple fqdn #82

Closed azryve closed 1 week ago

azryve commented 2 weeks ago

There is no proper way to lookup host by its hostname ie find "host" with fqdn "host.example.com" besides using name__ic (ie startswith). Since there is no direct analogue for this field in netbox, we need to add a dot to hostnames (top-level fqdn part) so we would not receive all devices with a common name prefix.