Nautobot: Get IP Addresses From Nautobot
·1979 words·10 mins
One of Nautobot’s primary functions is to serve as an IPAM solution. Within that realm, the application needs to provide a method to get at IP address data for a device, quickly and easily. In this post I will review three prominent methods to get an IP address from Nautobot. It will demonstrate getting the address via:
- Nautobot REST API
- curl
- Python Requests
- GoLang HTTP
- pynautobot
- Ansible Lookup
- Nautobot GraphQL API
- curl
- Python Requests
- GoLang HTTP
- pynautobot
- Ansible Lookup
Each method I will demonstrate how to get the IP address for Loopback0 on the device bre01-edge-01 within the demo instance of Nautobot. This device has 62 interfaces, so being able to filter down to which interface IP address we are looking for makes sense.
