From f993cd4b86ea653fcc980ef06a73ba6ae29ab523 Mon Sep 17 00:00:00 2001 From: Chenli Wei Date: Thu, 26 May 2022 19:36:22 +0800 Subject: [PATCH] misc: add assert for duplicate vUART io_port The current UI allow user use duplicate vUART io_port for same VM, it's an issue. This patch add assert check it. Tracked-On: #6690 Signed-off-by: Chenli Wei --- .../schema/checks/vuart_config.xsd | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/misc/config_tools/schema/checks/vuart_config.xsd b/misc/config_tools/schema/checks/vuart_config.xsd index aa9d6d009..c208176b2 100644 --- a/misc/config_tools/schema/checks/vuart_config.xsd +++ b/misc/config_tools/schema/checks/vuart_config.xsd @@ -14,4 +14,26 @@ + + + VM "{$io_port/ancestor::endpoint/vm_name}" use duplicate "{$io_port}" + + + + + + VM "{$console_port/ancestor::vm/name}" use duplicate "{$console_port}" + + +