Developing lightweight computation at the DSG edge

neighbours.htm 1.83 KB
Newer Older
hitz's avatar
hitz committed
1
2
<%+header%>
<style type="text/css">
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

    table {
       width:90%;
       border-top:1px solid #e5eaf8;
       border-right:1px solid #e5eaf8;
       margin:1em auto;
       border-collapse:collapse;
     }

    td {
       color:#678197;
       border-bottom:1px solid #e6eff8;
       border-left:1px solid #e6eff8;
       padding:.3em 1em;
       text-align:center;
     }
    th {
       background:#f4f9fe;
       text-align:center;
       font:bold 1.2em/2em "Century Gothic","Trebuchet MS",Arial,Helvetica,sans-serif;
       color:#66a3d3;
     }
25

26

hitz's avatar
hitz committed
27
28
#neighbour {
	position:relative;
29
	margin:5px;
hitz's avatar
hitz committed
30
31
}

32
33
34
35
#orig_id {
	background-color: black;
	color: white;
	text-ident:10px;
hitz's avatar
hitz committed
36
37
38
39
}
</style>

<h2><a id="content" name="content"><%:Neighbours%></a></h2>
40
41
42
<table>
 <tr>
  <th scope="col">Name</th>
p4u's avatar
p4u committed
43
44
  <th scope="col">IPv4</th>
  <th scope="col">IPv6</th>
45
46
47
48
49
50
51
  <th scope="col">Via Dev</th>
  <th scope="col">Via IP</th>
  <th scope="col">Routes</th>
  <th scope="col">Metric</th>
  <th scope="col">Last Desc</th>
  <th scope="col">Last Ref</th>
 </tr>
52

53
54
55
<% for i,o in ipairs(originators) do %>
		<tr>
		<td><%=o.name%></td>
p4u's avatar
p4u committed
56
57
		<td><a href="http://<%=o.ipv4%>"><%=o.ipv4%></a></td>
		<td><a href="http://[<%=o.orig.primaryIp%>]"><%=o.orig.primaryIp%></a></td>
58
59
		<td><%=o.orig.viaDev%></td>
		<td><%=o.orig.viaIp%></td>
60
		<td><%=o.orig.routes%></td>
61
62
63
		<td><%=o.orig.metric%></td>
		<td><%=o.orig.lastDesc%></td>
		<td><%=o.orig.lastRef%></td>
64
		</tr>
hitz's avatar
hitz committed
65
<%end%>
66
</table>
hitz's avatar
hitz committed
67

p4u's avatar
p4u committed
68
69
70
71
72
<table>
 <tr>
 <th scope="col">Node</th>
 <th scope="col">Announced networks</th>
 </tr>
73

p4u's avatar
p4u committed
74
75
76
<% for i,o in ipairs(originators) do %>
	<tr>
	 <td><%=o.name%></td>
77
	 <td style="text-align:left;">
78
	<% if o.desc.DESC_ADV ~= nil then %>
p4u's avatar
p4u committed
79
80
	<% for j,h in ipairs(o.desc.DESC_ADV.extensions[2].HNA6_EXTENSION) do %>
	  <%=h.address%>&nbsp;&nbsp;&nbsp;&nbsp;
81
	<% end %>
p4u's avatar
p4u committed
82
83
84
85
86
87
	<% end %>
	 </td>
	</tr>
<% end %>
</table>

hitz's avatar
hitz committed
88
89
<br />
<%+footer%>