{% extends 'base.html' %} {% block content %}

Policy Rules

{{ policy_rules | length }} policy rules found in context {{ session['context_uuid'] }}
{% if policy_rules %} {% for policy_rule in policy_rules %} {% if policy_rule.WhichOneof('policy_rule') == 'device' %} {% elif policy_rule.WhichOneof('policy_rule') == 'service' %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %}
UUID Kind Priority Condition Operator Action Service Devices State Message Extra
{{ policy_rule.device.policyRuleBasic.policyRuleId.uuid }} {{ policy_rule.WhichOneof('policy_rule') }} {{ policy_rule.device.policyRuleBasic.priority }} {{ policy_rule.device.policyRuleBasic.conditionList }} {{ policy_rule.device.policyRuleBasic.booleanOperator }} {{ policy_rule.device.policyRuleBasic.actionList }} - {{ policy_rule.device.deviceList }} {{ prse.Name(policy_rule.device.policyRuleBasic.policyRuleState.policyRuleState).replace('POLICY_', '') }} {{ policy_rule.device.policyRuleBasic.policyRuleState.policyRuleStateMessage }}
{{ policy_rule.service.policyRuleBasic.policyRuleId.uuid }} {{ policy_rule.WhichOneof('policy_rule') }} {{ policy_rule.service.policyRuleBasic.priority }} {{ policy_rule.service.policyRuleBasic.conditionList }} {{ policy_rule.service.policyRuleBasic.booleanOperator }} {{ policy_rule.service.policyRuleBasic.actionList }} {{ policy_rule.service.serviceId }} {{ policy_rule.service.deviceList }} {{ prse.Name(policy_rule.service.policyRuleBasic.policyRuleState.policyRuleState).replace('POLICY_', '') }} {{ policy_rule.service.policyRuleBasic.policyRuleState.policyRuleStateMessage }}
Unsupported policy rule type {{ policy_rule.WhichOneof('policy_rule') }}
No policy rule found
{% endblock %}