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

Device {{ device.name }} ({{ device.device_id.device_uuid.uuid }})

Update device

UUID: {{ device.device_id.device_uuid.uuid }}
Name: {{ device.name }}
Type: {{ device.device_type }}
Controller: {{ device.controller_id.device_uuid.uuid }}
Status: {{ dose.Name(device.device_operational_status).replace('DEVICEOPERATIONALSTATUS_', '') }}
Drivers:
{% for endpoint in device.device_endpoints %} {% endfor %}
Endpoint UUID Name Type Location
{{ endpoint.endpoint_id.endpoint_uuid.uuid }} {{ endpoint.name }} {{ endpoint.endpoint_type }} {{ endpoint.endpoint_location }}
Configurations: {% for config in device.device_config.config_rules %} {% if config.WhichOneof('config_rule') == 'custom' %} {% endif %} {% endfor %}
Key Value
{{ config.custom.resource_key }}
    {% for item_type, item in json_to_list(config.custom.resource_value) %} {% if item_type == 'kv' %}
  • {{ item[0] }}: {{ item[1] }}
  • {% else %}
  • {{ item }}
  • {% endif %} {% endfor %}
Add New Configuration
{% endblock %}