{% extends 'base.html' %} {% block body_content %}
{{scenario}}
{% if board_info != None %} {% else %} {% endif %}
{% if board_info != None and root != None and scenario_item_values %}
{% else %}
{% endif %}
{% if board_info != None and root != None and scenario_item_values %} {% set vm_kata = [] %} {% for vm in root|list %} {% if 'desc' in vm.attrib and vm.attrib['desc'] == 'specific for Kata' %} {% do vm_kata.append(1) %} {% endif %} {% set first_multi_child = {'IVSHMEM_REGION': 0, 'communication_vuart': 1} %} {% if xpath_dict['/'.join(['/acrn-config', vm.tag])]['configurable'] == 'y' or vm.xpath(xpath_dict['/'.join(['/acrn-config', vm.tag])]['configurable'])%} {% endif %} {% endfor %} {% if not vm_kata and ('scenario' in root.attrib and root.attrib['scenario'] == 'sdc') %} {% endif %}
{% if vm.tag != 'vm' %} {% set vm_type = 'hv' %}
{% else %} {% set vm_type = 'vm:id='+vm.attrib['id'] %}
{% endif %} {% if 'desc' in vm.attrib or vm.attrib['desc'] == 'specific for Kata' %}
{% endif %}
{% for elem in vm|list %} {% set elem_text = elem.text if elem.text != None else '' %} {% if elem|list == [] and (xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable'] == 'y' or elem.xpath(xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable']))%}
{% if ','.join([vm.tag, elem.tag]) not in scenario_item_values %}
{% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['readonly'] == 'y' %} {% else %} {% endif %}
{% else %} {% endif %}

{% elif elem|list != [] and (xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable'] == 'y' or elem.xpath(xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable']))%} {% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['multiselect'] != 'y' %} {% set first_child = [] %} {% for sub_elem in elem|list %} {% set sub_elem_text = sub_elem.text if sub_elem.text != None else '' %} {% if sub_elem.tag in ['RDT', 'IVSHMEM', 'PSRAM'] %} {% for sub_elem_2 in sub_elem|list %} {% set sub_elem_2_text = sub_elem_2.text if sub_elem_2.text != None else '' %} {% if ','.join([vm.tag, elem.tag, sub_elem.tag, sub_elem_2.tag]) in scenario_item_values %}

{% else %}
{% if sub_elem_2.tag in ['IVSHMEM_REGION'] %}
{% else %}
{% endif %} {% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag, sub_elem_2.tag])]['readonly'] == 'y' %} {% else %} {% endif %}
{% if sub_elem_2.tag in ['IVSHMEM_REGION'] %}
{% if first_multi_child[sub_elem_2.tag] == 0 %} {% else %} {% endif %}
{% do first_multi_child.update({sub_elem_2.tag: first_multi_child[sub_elem_2.tag]+1}) %} {% endif%} {% if sub_elem_2.tag in ['IVSHMEM_REGION'] %}

{% else %}

{% endif %}
{% endif %} {% endfor %} {% else %} {% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag])]['configurable'] == 'y' or sub_elem.xpath(xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag])]['configurable'])%}
{% if 'id' not in elem.attrib %} {% if not first_child %} {% else %} {% endif %} {% if ','.join([vm.tag, elem.tag, sub_elem.tag]) not in scenario_item_values and elem.tag != 'cpu_affinity' and elem.tag != 'pci_devs' %} {% if sub_elem.tag in ['bootargs', 'kern_args'] %}
{% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag])]['readonly'] == 'y' %} {% else %} {% endif %}
{% else %}
{% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag])]['readonly'] == 'y' %} {% else %} {% endif %}
{% endif %} {% else %} {% set item_key = ','.join([vm.tag, elem.tag, sub_elem.tag]) if elem.tag != 'cpu_affinity' and elem.tag != 'pci_devs' else ','.join([vm.tag, elem.tag]) %} {% endif %} {% do first_child.append(1) %}

{% else %} {% if not first_child %} {% do first_child.append(1) %} {% else %} {% endif %} {% if (','.join([vm.tag, elem.tag, sub_elem.tag]) not in scenario_item_values) and ((elem.tag!='vuart' and elem.tag!='legacy_vuart') or sub_elem.tag!='base') %}
{% if xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag, sub_elem.tag])]['readonly'] == 'y' %} {% else %} {% endif %}
{% else %} {% endif %}

{% endif %}
{% endif %} {% endif %} {% endfor %} {% elif xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable'] == 'y' or elem.xpath(xpath_dict['/'.join(['/acrn-config', vm.tag, elem.tag])]['configurable'])%}

{% endif %} {% endif %} {% endfor %}
{% else %} No setting available. Select one board info and make sure the scenario xml exists. {% endif %}
{% endblock %}