nautobot_ssot_vsphere.diffsync.adapters.adapter_nautobot

Adapter for Nautobot objects.

Module Contents

Classes

NautobotDiffSync

Nautobot adapter for DiffSync.

class nautobot_ssot_vsphere.diffsync.adapters.adapter_nautobot.NautobotDiffSync(job, sync, sync_vsphere_tagged_only: bool, cluster_filter: nautobot.virtualization.models.Cluster, *args, **kwargs)

Bases: nautobot_ssot_vsphere.diffsync.adapters.shared.DiffSyncModelAdapters

Nautobot adapter for DiffSync.

objects_to_delete
_cluster :ClassVar[Any]
_clustergroup :ClassVar[Any]
_virtualmachine :ClassVar[Any]
_vminterface :ClassVar[Any]
_ipaddress :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

get_initial_cluster(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_clustergroups()

Load Cluster Groups.

This can be impacted by the Cluster Filter.

get_initial_vms(ssot_tag: nautobot.extras.models.Tag)

Identify the VirtualMachine objects based on user defined job inputs.

Args:

ssot_tag (Tag): Tag used for filtering

load_virtual_machines(ssot_tag: nautobot.extras.models.Tag)

Load Nautobot Virtual Machines.

load_ipaddress(nautobot_vm_interface, diffsync_vminterface, diffsync_vm_object)

Load Interface IP Addresses.

load_vm_interfaces(nautobot_virtual_machine, diffsync_vm_object)

Load VM Interfaces.

load_clusters(ssot_tag)

Load Clusters.

load_data()

Add Nautobot Site objects as DiffSync Location models.

load()

Load data from Nautobot.