ER: support NetBox device status assignment based on outcome
When the network-importer (NI) tool processes a given device there are three general outcomes that could be used to assign the device state in NetBox:
- import process was successful
- import process failed to connect to device, therefore cannot import
- import process failed during the processing of the device
This ER proposes a change to the NI configuration file so that the User can identify the device status value (slug) that NI will assign upon those outcomes. The following is an example.
Note: the variable names (when_device_unreachable) are provided for example purposes only and could be different in the eventual implementation.
[netbox]
when_import_unreachable = "Offline"
when_import_fail = "Failed"
when_import_pass = "Active"
If any of these when variables are not provided, then the NI process will not modify the device status value; event when the import completes without error.
Mostly done in #8 , need to also set Offline status when the primary IP is missing