config-tools: validate the scenario against schema

Try validate the scenario xml against schema if the config.xsd exsists.

Fix the regular expression pattern of IVSHMEM_REGION string validation.

Tracked-On: #5672
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang,Yu-chu
2021-02-01 11:37:15 -08:00
committed by wenlingz
parent c5ac66e2f5
commit 1f8d245ed8
3 changed files with 23 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ Read more about the available scheduling options in :ref:`cpu_sharing`.</xs:docu
<xs:simpleType name="IVSHMEMRegionPattern">
<xs:restriction base="xs:string">
<xs:pattern value="hv:/\w+,\s?\d,\s?\s?\d:\s?\d\s?" />
<xs:pattern value="hv:/\w+,\s?\d+\s?,\s?\d\s?:\s?\d\s?" />
</xs:restriction>
</xs:simpleType>