{% extends "ace/base.html" %} {% block title %} Detalhes do switch {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}

Switch - {{ switch.name }}

{% endblock %} {% block conteudo1 %}

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 %}
{% if switch.url %}

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 %}

Rack: {{ switch.rack | default_if_none:"" }}

{% 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 | default_if_none:"" }}

{% endif %} {% if switch.comments %}

Observações: {{ switch.comments }}

{% endif %}


Portas do switch
{% if p %}
{% for porta in p %} {% if porta.vlans %} {% else %} {% endif %} {% if porta.host %} {% else %} {% endif %} {% endfor %}
Porta Tipo VLANs Equipamento (host) Obs
{{ porta.num }} {{ porta.tipo }} {% for v in porta.vlans.all %}

{{ v }}

{% endfor %}
{{ porta.host }}{{ porta.obs|default_if_none:"" }}
{% else %}
{% endif %}
{% endblock %} {% block extra-js %} {% load staticfiles %} {% endblock %}