From 0d05632c4212924f48936e2312129fbe4429095a Mon Sep 17 00:00:00 2001 From: Chenli Wei Date: Mon, 16 May 2022 19:48:44 +0800 Subject: [PATCH] misc: add assert for vUART connection The current UI have no live-check to check whether a VM connect to itself. So we add an assert to the schema and return error when user connect a VM to itself. Signed-off-by: Chenli Wei Reviewed-by: Junjie Mao --- .../config_tools/schema/checks/vuart_config.xsd | 17 +++++++++++++++++ misc/config_tools/schema/datachecks.xsd | 1 + 2 files changed, 18 insertions(+) create mode 100644 misc/config_tools/schema/checks/vuart_config.xsd diff --git a/misc/config_tools/schema/checks/vuart_config.xsd b/misc/config_tools/schema/checks/vuart_config.xsd new file mode 100644 index 000000000..aa9d6d009 --- /dev/null +++ b/misc/config_tools/schema/checks/vuart_config.xsd @@ -0,0 +1,17 @@ + + + + + + + + + VM "{$vm_name}" can't connected to itself + + + + diff --git a/misc/config_tools/schema/datachecks.xsd b/misc/config_tools/schema/datachecks.xsd index f8c934eda..fc9badf53 100644 --- a/misc/config_tools/schema/datachecks.xsd +++ b/misc/config_tools/schema/datachecks.xsd @@ -14,6 +14,7 @@ +