source: django_templates/exodus_01/node_detail.html@ 6173

Last change on this file since 6173 was 6173, checked in by roland, 17 years ago

move of old exodues code

File size: 1.5 KB
Line 
1{% extends "exodus_template.html" %}
2
3{% block content %}
4<h1> {{ object.name }} </h1>
5
6<div>
7
8Location: {{ object.location.description }} <br>
9X: {{ object.location.coordinateX }} <br>
10Y: {{ object.location.coordinateY }} <br>
11
12Master ip: {{ object.masterip }}
13
14</div>
15
16<h2>Interfaces</h2>
17
18{% for nic in object.nic_set.all %}
19<p>
20<h3>iface: {{ nic.iface }} </h3>
21status: {{ nic.status }} <br>
22type: {{ nic.type }} <br>
23description: {{ nic.shortdesc }} <br>
24
25{% if nic.ssid %}
26SSID: {{ nic.ssid }} <br>
27Channel: {{ nic.channel }} <br>
28Antenna: {{ nic.antenna }} <br>
29Polar: {{ nic.polar }} <br>
30Mode: {{ nic.mode }} <br>
31{% endif %}
32
33{% for link in nic.link_set.all %}
34<ul>
35<li>Description: {{ link.shortdesc }} </li>
36<li>IP: {{ link.ip }}/{{ link.linkpool.netmask }} </li>
37
38<li>LinkPool id: {{ link.linkpool.id }} </li>
39<li>Type: {{ link.linkpool.type }}
40<ul>
41{% for linknic in link.linkpool.link_set.all %}
42 {% ifequal linknic.iface.id nic.id %}
43 <li> {{ linknic.iface.node }} </li>
44 {% else %}
45 <li><a href=../../{{ linknic.iface.node.id }}/node> {{ linknic.iface.node }}</a></li>
46 {% endifequal %}
47{% endfor %}
48</ul>
49
50{% if link.linkpool.dhcpstart %}
51 <li>DHCP {{ link.linkpool.dhcpstart }}-{{ link.linkpool.dhcpstop }}</li>
52 {% for dhcp in link.linkpool.dhcpstatic_set.all %}
53 <ul>
54 <li>Hostname: {{ dhcp.hostname }} </li>
55 <li>MacAddress: {{ dhcp.macaddress }} </li>
56 </ul>
57 {% endfor %}
58{% endif %}
59
60
61
62</ul>
63
64{% endfor %}
65
66</p>
67{% endfor %}
68
69{% endblock %}
Note: See TracBrowser for help on using the repository browser.