{% extends "base.html" %} {% block title %} Switch {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}
Nome: {{ switch.name }}
{% if switch.devicemodel %}Modelo: {{ switch.devicemodel }}
{% endif %} {% if switch.active == True %}Ativo/Em uso:
{% else %}Ativo/Em uso:
{% endif %} {% if switch.manufactorer %}Fabricante: {{ switch.manufactorer }}
{% endif %}URL:{{ switch.url }}
{% endif %} {% if request.user.is_superuser %} {% if switch.admuser %}Usuário administrador: {{ switch.admuser }}
Senha do Usuário administrador: veja na interface de administração
{% endif %} {% endif %}Localização: {{ switch.place | default_if_none:"" }}
{% if switch.ownerid %}Patrimônio: {{ switch.ownerid }}
{% endif %} {% if switch.serial %}Número de série: {{ switch.serial| default_if_none:"" }}
{% endif %} {% if switch.rack %} {% endif %}Número de portas: {{ switch.ports | default_if_none:"" }}
{% if switch.garantia %}Garantia: {{ switch.warranty | default_if_none:"" }}
{% endif %} {% if switch.empilhado == False %}Interface de adminsitração: {{ switch.url | default_if_none:"" }}
{% endif %} {% if switch.stacked == True %}Pilha: {{ switch.stack_field | default_if_none:"" }}
{% endif %} {% if switch.comments %}Observações: {{ switch.comments }}
{% endif %} {% if history %} {% endif %}Porta | Tipo | VLANs | Equipamento (host) | Obs | {% for porta in p %}|
---|---|---|---|---|---|
{{ porta.num }} | {{ porta.tipo }} | {% if porta.vlans %}{% for v in porta.vlans.all %} {% endfor %} | {% else %}{% endif %} | {{ porta.host |default_if_none:"" }} | {{ porta.obs|default_if_none:"" }} |