acrn-hypervisor/misc/config_tools/scenario_config
Junjie Mao 22a47fe795 config_tools: check XML file structures on load
This patch validates the structure of the XML files given before they are
further used by the rest of the configurator. With this validation process,
the configurator confirms the XML files are well-structured and can thus
access certain nodes and contents without checking their existence or data
types.

Upon validation failure, an alert will pop up informing the user that the
given XML file is ill-formed. No further details are given as of now
because we assume users should not care about the internal structure of
those files.

Tracked-On: #6691
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-05-19 09:31:46 +08:00
..
jsonschema config_tools: add placeholders in input widgets 2022-05-13 15:50:20 +08:00
__init__.py config_tools: packaging config tool scripts for easier import 2022-03-18 08:49:06 +08:00
default_populator.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
elementpath_overlay.py config_tools: add assertions on the uniqueness of vBDF 2022-04-21 10:08:53 +08:00
lxml_loader.py config_tools: composing operations around XMLs as pipelines 2022-03-15 10:22:37 +08:00
pipeline.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
scenario_cfg_gen.py config tool: update schema 2022-04-18 19:29:51 +08:00
scenario_item.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
scenario_transformer.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
schema_slicer.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
upgrader.py config_tools: update upgrader.py script for virtio 2022-04-25 10:19:24 +08:00
validator.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
xml_loader.py config_tools: composing operations around XMLs as pipelines 2022-03-15 10:22:37 +08:00

Please run scenario_cfg_gen.py to generate board related configuration files.

usage: python3 scenario_cfg_gen.py [h] --board <board_info_file> --scenario <scenario_info_file>
positional arguments:
  board_info_file  : file name of the board info XML
  scenario_info_file  : file name of the scenario info XML