Merge branch 'bmx6'
[feed/routing.git] / luci-app-bmx6 / files / usr / lib / lua / luci / view / bmx6 / nodes.htm
1 <%+header%>
2 <style type="text/css">
3
4 table {
5 width:90%;
6 border-top:1px solid #e5eaf8;
7 border-right:1px solid #e5eaf8;
8 margin:1em auto;
9 border-collapse:collapse;
10 }
11
12 td {
13 color:#678197;
14 border-bottom:1px solid #e6eff8;
15 border-left:1px solid #e6eff8;
16 padding:.3em 1em;
17 text-align:center;
18 }
19 th {
20 background:#f4f9fe;
21 text-align:center;
22 font:bold 1.2em/2em "Century Gothic","Trebuchet MS",Arial,Helvetica,sans-serif;
23 color:#66a3d3;
24 }
25
26
27 #neighbour {
28 position:relative;
29 margin:5px;
30 }
31
32 #orig_id {
33 background-color: black;
34 color: white;
35 text-ident:10px;
36 }
37 </style>
38
39 <h2><a id="content" name="content"><%:Nodes%></a></h2>
40 <table>
41 <tr>
42 <th scope="col">Name</th>
43 <th scope="col">IPv6</th>
44 <th scope="col">Via Dev</th>
45 <th scope="col">Via IP</th>
46 <th scope="col">Routes</th>
47 <th scope="col">Metric</th>
48 <th scope="col">Last Desc</th>
49 <th scope="col">Last Ref</th>
50 </tr>
51
52 <% for i,o in ipairs(originators) do %>
53 <tr>
54 <td><%=o.name%></td>
55 <td><a href="http://[<%=o.orig.primaryIp%>]"><%=o.orig.primaryIp%></a></td>
56 <td><%=o.orig.viaDev%></td>
57 <td><%=o.orig.viaIp%></td>
58 <td><%=o.orig.routes%></td>
59 <td><%=o.orig.metric%></td>
60 <td><%=o.orig.lastDesc%></td>
61 <td><%=o.orig.lastRef%></td>
62 </tr>
63 <%end%>
64 </table>
65
66 <table>
67 <tr>
68 <th scope="col">Node</th>
69 <th scope="col">Announced networks</th>
70 </tr>
71
72 <% for i,o in ipairs(originators) do %>
73 <tr>
74 <td><%=o.name%></td>
75 <td style="text-align:left;">
76 <% if o.desc.DESC_ADV ~= nil then %>
77 <% for j,h in ipairs(o.desc.DESC_ADV.extensions[2].HNA6_EXTENSION) do %>
78 <%=h.address%>&nbsp;&nbsp;&nbsp;&nbsp;
79 <% end %>
80 <% end %>
81 </td>
82 </tr>
83 <% end %>
84 </table>
85
86 <br />
87 <%+footer%>