nautobot_ssot_vsphere.diffsync.diffsync_models

Diffsync Models.

Module Contents

Classes

DiffSyncExtras

Additional components to mix and subclass from with DiffSyncModel.

DiffSyncClusterGroup

Virtual Machine DiffSync model.

DiffSyncCluster

Cluster DiffSync model.

DiffSyncVMInterface

VMInterface DiffSync Model.

DiffSyncIpAddress

VMInterface DiffSync Model.

DiffSyncVirtualMachine

Virtual Machine DiffSync model.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncExtras

Bases: diffsync.DiffSyncModel

Additional components to mix and subclass from with DiffSyncModel.

ordered_delete(nautobot_object: Any)

Add to objects_to_delete for ordered deletion.

Args:

nautobot_object (Any): Any type of Nautobot object safe_delete_status (Optional[str], optional): Status name, optional as some objects don’t have status field. Defaults to None.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncClusterGroup

Bases: DiffSyncExtras

Virtual Machine DiffSync model.

_modelname = diffsync_clustergroup
_identifiers = ['name']
_attributes = []
name :str
classmethod create(diffsync, ids, attrs)

Create ClusterGroup.

delete() Optional[diffsync.DiffSyncModel]

Delete Cluster Group in Nautobot.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncCluster

Bases: DiffSyncExtras

Cluster DiffSync model.

_modelname = diffsync_cluster
_identifiers = ['name']
_attributes = ['cluster_type', 'group']
_children
name :str
cluster_type :str
group :Optional[str]
virtualmachines :List[DiffSyncVirtualMachine]
classmethod create(diffsync, ids, attrs)

Create Objects in Nautobot.

delete() Optional[diffsync.DiffSyncModel]

Delete device in Nautobot.

update(attrs)

Update devices in Nautbot based on Source.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncVMInterface

Bases: DiffSyncExtras

VMInterface DiffSync Model.

_modelname = diffsync_vminterface
_identifiers = ['name', 'virtual_machine']
_attributes = ['enabled', 'mac_address']
_children
name :str
virtual_machine :str
enabled :bool
mac_address :Optional[str]
ip_addresses :List[DiffSyncIpAddress]
classmethod create(diffsync, ids, attrs)

Create VirtualMachine VMInterface in Nautobot.

delete() Optional[diffsync.DiffSyncModel]

Delete VMInterfaces from Virtual Machine.

update(attrs)

Update VMInterface on Virtual Machine.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncIpAddress

Bases: DiffSyncExtras

VMInterface DiffSync Model.

_modelname = diffsync_ipaddress
_identifiers = ['ip_address', 'prefix_length']
_attributes = ['state', 'mac_address', 'vm_interface_name', 'vm_name']
ip_address :str
prefix_length :int
state :str
mac_address :str
vm_interface_name :Optional[str]
vm_name :Optional[str]
classmethod create(diffsync, ids, attrs)

Create IP Address in Nautobot.

delete() Optional[diffsync.DiffSyncModel]

Delete VMInterfaces from Virtual Machine.

update(attrs)

Update VMInterface on Virtual Machine.

class nautobot_ssot_vsphere.diffsync.diffsync_models.DiffSyncVirtualMachine

Bases: DiffSyncExtras

Virtual Machine DiffSync model.

_modelname = diffsync_virtual_machine
_identifiers = ['name']
_children
name :str
status :Optional[str]
vcpus :Optional[int]
memory :Optional[int]
disk :Optional[int]
primary_ip4 :Optional[str]
primary_ip6 :Optional[str]
interfaces :List[DiffSyncVMInterface]
classmethod create(diffsync, ids, attrs)

Create VirtualMachine in Nautobot.

delete() Optional[diffsync.DiffSyncModel]

Delete Virtual Machine.

update(attrs)

Update Virtual Machine.