{% 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.getchildren() %} {% if 'desc' in vm.attrib and vm.attrib['desc'] == 'specific for Kata' %} {% do vm_kata.append(1) %} {% endif %} {% if 'configurable' not in vm.attrib or vm.attrib['configurable'] != '0'%} {% 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.getchildren() %} {% set elem_text = elem.text if elem.text != None else '' %} {% if elem.getchildren() == [] and ('configurable' not in elem.attrib or elem.attrib['configurable'] != '0')%}
{% if ','.join([vm.tag, elem.tag]) not in scenario_item_values %}
{% if 'readonly' in elem.attrib and elem.attrib['readonly'] == 'true' %} {% else %} {% endif %}
{% else %} {% endif %}

{% elif elem.getchildren() != [] and ('configurable' not in elem.attrib or elem.attrib['configurable'] != '0')%} {% if 'multiselect' not in elem.attrib or elem.attrib['multiselect'] != 'true' %} {% set first_child = [] %} {% for sub_elem in elem.getchildren() %} {% set sub_elem_text = sub_elem.text if sub_elem.text != None else '' %} {% if 'configurable' not in sub_elem.attrib or sub_elem.attrib['configurable'] != '0' %}
{% 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 'readonly' in sub_elem.attrib and sub_elem.attrib['readonly'] == 'true' %} {% else %} {% endif %}
{% else %}
{% if 'readonly' in sub_elem.attrib and sub_elem.attrib['readonly'] == 'true' %} {% 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' or sub_elem.tag!='base') %}
{% if 'readonly' in sub_elem.attrib and sub_elem.attrib['readonly'] == 'true' %} {% else %} {% endif %}
{% else %} {% endif %}

{% endif %}
{% endif %} {% endfor %} {% elif 'configurable' not in elem.attrib or elem.attrib['configurable'] != '0' %}

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