add the 'serial' field to NetBox VirtualMachine and set it from VMWare 'instanceUuid'

Signed-off-by: Joachim Burket <joachim.burket@protonmail.ch>
This commit is contained in:
Joachim Burket
2025-01-23 13:56:59 +01:00
parent 3c07a4c001
commit 849bd27d4c
2 changed files with 2 additions and 0 deletions

View File

@@ -1624,6 +1624,7 @@ class NBVM(NetBoxObject):
def __init__(self, *args, **kwargs):
self.data_model = {
"name": 64,
"serial": 50,
"status": ["offline", "active", "planned", "staged", "failed", "decommissioning"],
"cluster": NBCluster,
"role": NBDeviceRole,

View File

@@ -2176,6 +2176,7 @@ class VMWareHandler(SourceBase):
vm_data = {
"name": name,
"serial": vm_uuid,
"cluster": nb_cluster_object,
"status": status,
"memory": vm_memory,