In this recipe, we will outline how to create and populate network devices in NetBox. This will include declaring the device model and manufacturer, along with their role in our network. This will help us to build an accurate inventory of our network infrastructure, which we can use later on in the last recipe of this chapter to build a dynamic inventory for Ansible using NetBox.
The Ansible and NetBox integration should be in place and the sites should be defined and populated in NetBox, as outlined in the previous recipe. This is critical since when we start to populate devices in NetBox, we need to tie them to an existing site.