netbox¶
Netbox module.
- class homer.netbox.BaseNetboxData(api: pynetbox.core.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.BaseNetboxDeviceData(api: pynetbox.core.api.Api, device: homer.devices.Device)[source]¶
Bases:
homer.netbox.BaseNetboxData
Base class to gather device-specific data dynamically 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.
- class homer.netbox.NetboxData(api: pynetbox.core.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.core.api.Api, device: homer.devices.Device)[source]¶
Bases:
homer.netbox.BaseNetboxDeviceData
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.