In this recipe, we will outline how to generate a configuration and push the configuration to network devices using the data retrieved from NetBox.
Generating a configuration using NetBox
Getting ready
In this recipe, we will continue to use NetBox as our dynamic inventory source, so all of the configurations outlined in the previous recipe need to be implemented.
How to do it...
- Under the netbox_dynamic_inventory directory, create the netbox_data.yml file with the following content:
$ cat netbox_data.yml
---
netbox_url: http://172.20.100.111
netbox_token: 08be88e25b23ca40a9338d66518bd57de69d4305...