This PR as a side effect minimises amount of required data needed for reconciliation of existing entities. Example: when ingesting data for existing device with existing platform and its manufacturer, instead of pushing whole platform and nested manufacturer objects, we needs to provide platform ID only.
Some of the NetBox nested object types (and their serializers) don't handle full object dicts, i.e. Tags when doing updates of parent documents like interface -> device -> tags - in such scenario, if tags for device are provided, we need to update the device with tags, and then update interface with device ID only, as nothing else was to change.
Also:
diode-netbox-plugin cli command to create diode permission only once
This PR as a side effect minimises amount of required data needed for reconciliation of existing entities. Example: when ingesting data for existing device with existing platform and its manufacturer, instead of pushing whole platform and nested manufacturer objects, we needs to provide platform ID only.
Some of the NetBox nested object types (and their serializers) don't handle full object dicts, i.e.
Tags
when doing updates of parent documents like interface -> device -> tags - in such scenario, if tags for device are provided, we need to update the device with tags, and then update interface with device ID only, as nothing else was to change.Also:
diode
permission only once