soc ui improvements for hypervisor layout. show free hardware for a hypervisor in the description

This commit is contained in:
Josh Patterson
2025-02-16 01:33:50 -05:00
parent c34be5313d
commit 6ff701bd5c
5 changed files with 140 additions and 66 deletions
+30 -46
View File
@@ -1,49 +1,33 @@
hypervisor:
hosts:
defaultHost:
hardwareMap:
title: 'All Hardware'
description: This shows hardware available to the hypervisor and PCIe -> INT mapping.
file: true
readonly: true
global: true # set to true to remove host drop down
multiline: true
vmMap:
title: 'VM Map'
description: This shows the VMs and the hardware they have claimed.
file: true
readonly: true
global: true
multiline: true
nodes:
description: 'Available CPU: CPUFREE | Available Memory: MEMFREE | Available Disk: DISKFREE | Available Copper NIC: COPPERFREE | Available SFP NIC: SFPFREE'
syntax: json
uiElements:
- field: hostname
label: Enter the hostname
- field: role
label: sensor or searchnode
- field: network_mode
label: Choose static4 or dhcp4. If static4, populate IP details below.
- field: ip4
label: IP Address with netmask. ex. 192.168.1.10/24
- field: gw4
label: Gateway
- field: dns4
label: DNS. Comma separated list. ex. 192.168.1.1,8.8.8.8
- field: search4
label: Search domain
- field: cpu
label: Number of CPU cores to assign. ex. 8
- field: memory
label: Memory, in GB to assign. ex. 16
- field: disk
label: Choose a disk or disks to assign for passthrough. Comma separated list.
- field: copper
label: Choose a copper port or ports to assign for passthrough. Comma separated list.
- field: sfp
label: Choose a sfp port or ports to assign for passthrough. Comma separated list.
file: true
global: true
vms: {}
title: defaultHost
description: 'Available CPU: CPUFREE | Available Memory: MEMFREE | Available Disk: DISKFREE | Available Copper NIC: COPPERFREE | Available SFP NIC: SFPFREE'
syntax: json
uiElements:
- field: hostname
label: Enter the hostname
- field: role
label: sensor or searchnode
- field: network_mode
label: Choose static4 or dhcp4. If static4, populate IP details below.
- field: ip4
label: IP Address with netmask. ex. 192.168.1.10/24
- field: gw4
label: Gateway
- field: dns4
label: DNS. Comma separated list. ex. 192.168.1.1,8.8.8.8
- field: search4
label: Search domain
- field: cpu
label: Number of CPU cores to assign. ex. 8
- field: memory
label: Memory, in GB to assign. ex. 16
- field: disk
label: Choose a disk or disks to assign for passthrough. Comma separated list.
- field: copper
label: Choose a copper port or ports to assign for passthrough. Comma separated list.
- field: sfp
label: Choose a sfp port or ports to assign for passthrough. Comma separated list.
file: true
global: true