nautobot_ssot_vsphere.diffsync.adapters
Collection of adapters.
Subpackages
Submodules
Package Contents
Classes
Nautobot adapter for DiffSync. |
|
Nautobot adapter for DiffSync. |
- class nautobot_ssot_vsphere.diffsync.adapters.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.
- class nautobot_ssot_vsphere.diffsync.adapters.VsphereDiffSync(job, sync, client: nautobot_ssot_vsphere.utilities.vsphere_client.VsphereClient, cluster_filter, *args, **kwargs)
Bases:
nautobot_ssot_vsphere.diffsync.adapters.shared.DiffSyncModelAdapters
Nautobot adapter for DiffSync.
- load_cluster_groups()
Load Cluster Groups (DataCenters).
- load_virtualmachines(cluster, diffsync_cluster)
Load Virtual Machines.
- load_ip_addresses(vsphere_vm_interfaces, mac_address, diffsync_vminterface)
Load VM IP Addresses into Interfaces.
Compare the current NIC MAC to grab any IP’s associated.
- load_primary_ip(ipv4_addresses: List, ipv6_addresses: List, diffsync_virtualmachine)
Determine Primary IP of Virtual Machine.
- load_vm_interfaces(vsphere_virtual_machine, vm_id, diffsync_virtualmachine)
Load VM Interfaces.
- load_data()
Load all clusters from vSphere.
- load_standalone_vms()
Load all VM’s from vSphere.
- load()
Load data from vSphere.