{% 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 %} {% for vm in root.getchildren() %} {% if 'configurable' not in vm.attrib or vm.attrib['configurable'] != '0'%} {% endif %} {% endfor %}
{% 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', 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', elem.tag, sub_elem.tag]) not in scenario_item_values and elem.tag != 'vcpu_affinity' %} {% 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', elem.tag, sub_elem.tag]) if elem.tag != 'vcpu_affinity' else ','.join(['vm', elem.tag])%} {% endif %} {% do first_child.append(1) %}

{% else %} {% if not first_child %} {% do first_child.append(1) %} {% else %} {% endif %} {% if (','.join(['vm', 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 %}