Overview of Nautobot SSoT vSphere
A plugin for Nautobot that leverages the SSoT plugin to create Virtual Machines, VMInterfaces, IPAddresses, Clusters, and Cluster Groups from VMWare vSphere.
Configuration Settings
The following options are user configurable to attempt to provide the user with a better synchronization experience, depending on what the environment’s deployment looks like. All of the options below have default values set and you most likely for the most common deployment of vSphere / DataCenters / Clusters.
VSPHERE_TYPE
This is the default Cluster Type that will be created in Nautobot and associated to every Cluster discovered.
ENFORCE_CLUSTER_GROUP_TOP_LEVEL
Diffsynchas a concept ofTop Level. This application defaults to theClusterGroupas Top Level, which translates to a vSphere DataCenter. This can be changed to have a Cluster in vSphere be the Top Level and ignore DataCenters.
DEFAULT_VM_STATUS_MAP, DEFAULT_IP_STATUS_MAP, VSPHERE_VM_INTERFACE_MAP
These are dictionary (maps) that translate the vSphere value to something Nautobot can understand. You must be sure that the values provided are valid before manipulating these maps.
DEFAULT_VM_STATUS_MAPDefaults to
{ "POWERED_OFF": "Offline", "POWERED_ON": "Active", "SUSPENDED": "Suspended" }
DEFAULT_IP_STATUS_MAPDefaults to
{ "PREFERRED": "Active", "UNKNOWN": "Reserved" }
VSPHERE_VM_INTERFACE_MAPDefaults to
{"NOT_CONNECTED": False, "CONNECTED": True}
PRIMARY_IP_SORT_BY
Virtual Machines can have many different IP Addresses associated to many interfaces. As there is no overall business logic that will satisfy which IP will be used as the Primary IP of a Virtual Machine in Nautobot, there is an option to decide by lowest or highest. The total number of IP’s are gathered, sorted and assigned to the VM based on the value of this setting. Anything other than
Lowestwill assign the highest IP value found on the Virtual Machine.
DEFAULT_USE_CLUSTERS and DEFAULT_CLUSTER_NAME
This experimental feature allows users of vSphere which contain no
Clustersin their environment. TheDEFAULT_USE_CLUSTERSneeds to be set toFalseand a name of your choosing would be assigned toDEFAULT_CLUSTER_NAME. AClusteris a requirement of aVirtual Machinein Nautobot.
DEFAULT_IGNORE_LINK_LOCAL
Defaults to
Trueand drops any link-local address found on a vSphere vm that has an IPv6 address assigned.
DEFAULT_IP_STATUS_MAP
This allows you to change what the
Statusof an interface maps to from vSphere -> Nautobot. Defaults to the following:
{ "PREFERRED": "Active", "UNKNOWN": "Reserved" }