netbox¶
Netbox module.
- class homer.netbox.BaseNetboxData(api: Api)[source]¶
Bases:
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: Api, device: Device)[source]¶
Bases:
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: Api)[source]¶
Bases:
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: Api, device: Device)[source]¶
Bases:
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.