mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-01-24 09:49:16 -06:00
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:
@@ -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,
|
||||
|
||||
@@ -2176,6 +2176,7 @@ class VMWareHandler(SourceBase):
|
||||
|
||||
vm_data = {
|
||||
"name": name,
|
||||
"serial": vm_uuid,
|
||||
"cluster": nb_cluster_object,
|
||||
"status": status,
|
||||
"memory": vm_memory,
|
||||
|
||||
Reference in New Issue
Block a user