From af10a3bb0a9130662c6919eeb0d354866e72010a Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Fri, 20 May 2022 15:59:46 +0800 Subject: [PATCH] config_tools: hide tty and sock in UI For virtio console, in order to hide tty and sock backend types, change "xs:sequence" to "xs:all" in the XML schema to slice the backend type list and update backend type to "BasicVirtioConsoleBackendType" to call the sliced value. Tracked-On: #6691 Signed-off-by: Kunhui-Li Reviewed-by: Junjie Mao --- .../pages/Config/ConfigForm/CustomWidget/Virtio/Console.vue | 2 +- misc/config_tools/schema/VMtypes.xsd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/Console.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/Console.vue index bf4943cdd..f75ff9bc0 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/Console.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/Console.vue @@ -96,7 +96,7 @@ export default { data() { return { ConsoleUseType: this.rootSchema.definitions['VirtioConsoleUseType']['enum'], - ConsoleBackendType: this.rootSchema.definitions['VirtioConsoleBackendType']['enum'], + ConsoleBackendType: this.rootSchema.definitions['BasicVirtioConsoleBackendType']['enum'], defaultVal: vueUtils.getPathVal(this.rootFormData, this.curNodePath) }; }, diff --git a/misc/config_tools/schema/VMtypes.xsd b/misc/config_tools/schema/VMtypes.xsd index 91fd76cd6..ea612e144 100644 --- a/misc/config_tools/schema/VMtypes.xsd +++ b/misc/config_tools/schema/VMtypes.xsd @@ -362,7 +362,7 @@ The size is a subset of the VM's total memory size specified on the Basic tab. - + Specify device type in guest, ether HVC console when user config it as virtio console or /dev/vportXpY @@ -389,7 +389,7 @@ device file when user config it as virtio serial port, which can be read and wri The device path for the tty backend type. - +