nautobot_ssot_ipfabric.diffsync.adapter_nautobot
DiffSync adapter class for Nautobot as source-of-truth.
Module Contents
Classes
Nautobot adapter for DiffSync. |
Attributes
- nautobot_ssot_ipfabric.diffsync.adapter_nautobot.CONFIG
- nautobot_ssot_ipfabric.diffsync.adapter_nautobot.DEFAULT_INTERFACE_TYPE
- nautobot_ssot_ipfabric.diffsync.adapter_nautobot.DEFAULT_INTERFACE_MTU
- nautobot_ssot_ipfabric.diffsync.adapter_nautobot.DEFAULT_INTERFACE_MAC
- nautobot_ssot_ipfabric.diffsync.adapter_nautobot.DEFAULT_DEVICE_ROLE
- class nautobot_ssot_ipfabric.diffsync.adapter_nautobot.NautobotDiffSync(job, sync, sync_ipfabric_tagged_only: bool, site_filter: nautobot.dcim.models.Site, *args, **kwargs)
Bases:
nautobot_ssot_ipfabric.diffsync.DiffSyncModelAdapters
Nautobot adapter for DiffSync.
- objects_to_delete
- _vlan :ClassVar[Any]
- _device :ClassVar[Any]
- _site :ClassVar[Any]
- _interface :ClassVar[Any]
- sync_complete(source: diffsync.DiffSync, *args, **kwargs)
Clean up function for DiffSync sync.
Once the sync is complete, this function runs deleting any objects from Nautobot that need to be deleted in a specific order.
- Args:
source (DiffSync): DiffSync
- load_interfaces(device_record: nautobot.dcim.models.Device, diffsync_device)
Import a single Nautobot Interface object as a DiffSync Interface model.
- load_device(filtered_devices: List, location)
Load Devices from Nautobot.
- load_vlans(filtered_vlans: List, location)
Add Nautobot VLAN objects as DiffSync VLAN models.
- get_initial_site(ssot_tag: nautobot.extras.models.Tag)
Identify the site objects based on user defined job inputs.
- Args:
ssot_tag (Tag): Tag used for filtering
- load_data()
Add Nautobot Site objects as DiffSync Location models.
- load()
Load data from Nautobot.