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

Device {{ device.device_id.device_uuid.uuid }}

Update

UUID: {{ device.device_id.device_uuid.uuid }}

Type: {{ device.device_type }}

Status: {{ dose.Name(device.device_operational_status).replace('DEVICEOPERATIONALSTATUS_', '') }}
Drivers:
{% for endpoint in device.device_endpoints %} {% endfor %}
Endpoints Type
{{ endpoint.endpoint_id.endpoint_uuid.uuid }} {{ endpoint.endpoint_type }}
Configurations: {% for config in device.device_config.config_rules %} {% if config.WhichOneof('config_rule') == 'custom' %} {% endif %} {% endfor %}
Key Value
{{ config.custom.resource_key }} {% set json_resource_value = config.custom.resource_value | from_json %} {% if json_resource_value | is_dict %}
    {% for key, value in json_resource_value.items() %}
  • {{ key }}: {{ value }}
  • {% endfor %}
{% else %} {{ json_resource_value }} {% endif %}
{% endblock %}