Move bmx6 and luci-app-bmx6 packages into root directory
[feed/routing.git] / luci-app-bmx6 / files / usr / lib / lua / luci / view / bmx6 / neighbours.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"><%:Neighbours%></a></h2>
40 <table>
41 <tr>
42 <th scope="col">Name</th>
43 <th scope="col">IPv4</th>
44 <th scope="col">IPv6</th>
45 <th scope="col">Via Dev</th>
46 <th scope="col">Via IP</th>
47 <th scope="col">Routes</th>
48 <th scope="col">Metric</th>
49 <th scope="col">Last Desc</th>
50 <th scope="col">Last Ref</th>
51 </tr>
52
53 <% for i,o in ipairs(originators) do %>
54 <tr>
55 <td><%=o.name%></td>
56 <td><a href="http://<%=o.ipv4%>"><%=o.ipv4%></a></td>
57 <td><a href="http://[<%=o.orig.primaryIp%>]"><%=o.orig.primaryIp%></a></td>
58 <td><%=o.orig.viaDev%></td>
59 <td><%=o.orig.viaIp%></td>
60 <td><%=o.orig.routes%></td>
61 <td><%=o.orig.metric%></td>
62 <td><%=o.orig.lastDesc%></td>
63 <td><%=o.orig.lastRef%></td>
64 </tr>
65 <%end%>
66 </table>
67
68 <table>
69 <tr>
70 <th scope="col">Node</th>
71 <th scope="col">Announced networks</th>
72 </tr>
73
74 <% for i,o in ipairs(originators) do %>
75 <tr>
76 <td><%=o.name%></td>
77 <td style="text-align:left;">
78 <% if o.desc.DESC_ADV ~= nil then %>
79 <% for j,h in ipairs(o.desc.DESC_ADV.extensions[2].HNA6_EXTENSION) do %>
80 <%=h.address%>&nbsp;&nbsp;&nbsp;&nbsp;
81 <% end %>
82 <% end %>
83 </td>
84 </tr>
85 <% end %>
86 </table>
87
88 <br />
89 <%+footer%>