mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
remove free hw from description
This commit is contained in:
@@ -2,7 +2,7 @@ hypervisor:
|
|||||||
hosts:
|
hosts:
|
||||||
defaultHost:
|
defaultHost:
|
||||||
title: defaultHost
|
title: defaultHost
|
||||||
description: "Available CPU: CPUFREE | Available Memory: MEMFREE | Available Disk: DISKFREE | Available Copper NIC: COPPERFREE | Available SFP NIC: SFPFREE"
|
description: "Hypervisor Configuration"
|
||||||
syntax: json
|
syntax: json
|
||||||
uiElements:
|
uiElements:
|
||||||
- field: hostname
|
- field: hostname
|
||||||
|
|||||||
@@ -4,11 +4,7 @@
|
|||||||
{%- set TEMPLATE = ANNOTATION.hypervisor.hosts.pop('defaultHost') -%}
|
{%- set TEMPLATE = ANNOTATION.hypervisor.hosts.pop('defaultHost') -%}
|
||||||
|
|
||||||
{%- macro update_description(description, cpu_free, mem_free, disk_free, copper_free, sfp_free) -%}
|
{%- macro update_description(description, cpu_free, mem_free, disk_free, copper_free, sfp_free) -%}
|
||||||
{{- description | replace('CPUFREE', cpu_free | string)
|
{{- description -}}
|
||||||
| replace('MEMFREE', mem_free | string)
|
|
||||||
| replace('DISKFREE', disk_free | string)
|
|
||||||
| replace('COPPERFREE', copper_free | string)
|
|
||||||
| replace('SFPFREE', sfp_free | string) -}}
|
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro update_label(label, total, free) -%}
|
{%- macro update_label(label, total, free) -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user