netbox¶
Netbox module.
-
class
homer.netbox.
BaseNetboxData
(api: pynetbox.api.Api)[source]¶ Bases:
collections.UserDict
Base class to gather data dynamically from Netbox.
Initialize the dictionary.
- Parameters
api (pynetbox.api) -- the Netbox API instance.
-
class
homer.netbox.
NetboxData
(api: pynetbox.api.Api)[source]¶ Bases:
homer.netbox.BaseNetboxData
Dynamic dictionary to gather the required generic data from Netbox.
Initialize the dictionary.
- Parameters
api (pynetbox.api) -- the Netbox API instance.
-
class
homer.netbox.
NetboxDeviceData
(api: pynetbox.api.Api, device: homer.devices.Device)[source]¶ Bases:
homer.netbox.BaseNetboxData
Dynamic dictionary to gather the required device-specific data from Netbox.
Initialize the dictionary.
- Parameters
api (pynetbox.api) -- the Netbox API instance.
device (homer.devices.Device) -- the device for which to gather the data.