-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
197 lines (194 loc) · 10.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html>
<head>
<title>as-graph</title>
<link rel="stylesheet" href="css/styles.css">
<script src="js/vizjs/viz.js"></script>
<script src="js/vizjs/full.render.js"></script>
<meta name="description" content="BGP route propagation debugger">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<div class="header">
<h1 class="title">as-graph</h1>
<div class="smalltitle">
BGP route propagation debugger.
</div>
</div>
<div class="boxes">
<div class="box controlbox">
<h2 class="boxtitle">Query</h2>
<div class="control hide" id="local_info">
Your network: <a class="mono" href="#" id="lpfxbtn"></a> (<a class="mono" href="#"
id="lasnbtn"></a>)
<div id="ext_sources">
View you network on:
</div>
</div>
<div class="control">
<div class="panel">
<div class="panel-item">
<label for="query">Show propagation from/of</label>
<input type="text" id="query" autocomplete="off" spellcheck="false"
placeholder="ASN, IP or prefix...">
</div>
<div class="panel-item">
<label for="level">to the following network(s):</label>
<select id="level">
<option value="-1" disabled>select target(s)...</option>
<option value="0">direct peers/transits</option>
<option value="1" selected>large ISPs</option>
<option value="2">large ISPs and direct peers</option>
<option value="3">all ISPs</option>
<option value="4">all ISPs and direct peers</option>
<option value="5">everything</option>
<option value="6">custom target(s)...</option>
</select>
<div id="level_descr" class="option_descr"></div>
<div>
<input class="hide" type="text" id="targets" autocomplete="off" spellcheck="false"
placeholder="AS6939, AS174, ...">
</div>
</div>
<div class="panel-item">
<label for="paths_filter">where the following ASN(s) is/are path:</label>
<input type="text" id="paths_filter" autocomplete="off" spellcheck="false"
placeholder="AS4635, AS6939, ...">
<div class="option_descr">Leave empty to show all paths.</div>
</div>
<div class="panel-item">
<label for="min_paths">where there are at least this many path(s):</label>
<input type="text" id="min_paths" autocomplete="off" spellcheck="false"
placeholder="25">
<div class="option_descr">Default to 25; set to 0 to show all paths.</div>
</div>
</div>
</div>
<div class="control">
<div class="panel">
<div class="option">
<input type="checkbox" id="show_downstreams"> <label for="show_downstreams">Include
downstreams</label>
<span class="option_descr">By default, <span class="mono">as-graph</span> shows the
propagation of routes originated by the given ASN only. Enable this to include downstream
routes. Note that this can be slow and may fail.</span>
</div>
<div class="option">
<input type="checkbox" id="use_routeview"> <label for="use_routeview">Include RouteViews
data</label>
<span class="option_descr">By default, <span class="mono">as-graph</span> takes data from
RIPE RIS only. Enable this option to load paths from RouteViews project. Note that
loading data from RouteViews can be slow and may fail.</span>
</div>
<div class="option">
<input type="checkbox" id="use_asname"> <label for="use_asname">Show <span
class="mono">as-name</span> instead of ASN</label>
<span class="option_descr">Enable this option to use <span class="mono">as-name</span> as
graph labels. Note that you can always hover on labels to check their <span
class="mono">as-name</span>.</span>
</div>
<div class="option">
<input type="checkbox" id="group_large_isps"> <label for="group_large_isps">Group large
ISPs</label>
<span class="option_descr">Enable this option to group and highlight large ISPs in a
separate cluster.</span>
</div>
<div class="option">
<input type="checkbox" id="vertical_graph"> <label for="vertical_graph">Use vertically
oriented graph</label>
<span class="option_descr">Enable this option to orient the graph vertically.</span>
</div>
<div class="option">
<input type="checkbox" id="show_console"> <label for="show_console">Show console</label>
<span class="option_descr">Enable this option to show console.</span>
<div id="console">
<pre class="log_out" id="log">
</pre>
</div>
</div>
<div class="option">
<button class="button" id="cscbtn">Clear cache</button>
<span class="option_descr"><span class="mono">as-path</span>s and prefixes lists throughout
the session.
Click this to remove the cached entries.</span>
</div>
<div class="option">
<button class="button" id="cpcbtn">Clear persistent cache</button>
<span class="option_descr"><span class="mono">as-name</span>s are cached in persistent
storage. Click this to remove the cached entries.</span>
</div>
</div>
<div class="control">
<button id="querybtn">Go</button>
<button class="hide" id="jumpbtn">Jump to graph</button>
</div>
</div>
</div>
<div class="box infobox hide" id="details">
<h2 class="boxtitle">Details</h2>
<div id="prefixinfo" class="">
<h3 class="resource mono" id="pfxinfo_title"></h3>
<div class="info">
<div class="overview">
<span id="pfxinfo_asn"></span>. Allocated under <span id="pfxinfo_rir"></span>.
</div>
</div>
<div class="info">
<h4 class="infotitle">
Routing
</h4>
<table>
<tbody id="pfxinfo_irrs">
<tr>
<th>Prefix</th>
<th>DFZ</th>
<th>IRR</th>
<th>Origin</th>
<th>Source(s)</th>
</tr>
</tbody>
</table>
</div>
</div>
<div id="asinfo" class="">
<h3 class="resource mono" id="asinfo_title"></h3>
<div class="info">
View <span class="mono" id="asinfo_asn"></span> on: <span id="asinfo_ext_sources"></span>
</div>
<div class="info">
<h4 class="infotitle">
Announced prefix(es)
</h4>
<table>
<tbody id="asninfo_announced">
<tr>
<th>Prefix</th>
<th>Start time</th>
<th>Last seen</th>
</tr>
</tbody>
</table>
</div>
</div>
<div id="peerinfo" class="info">
<h4 class="infotitle">
Upstream(s) for the selected target(s)
</h4>
<table>
<tbody id="pfxinfo_peers">
<tr>
<th>AS</th>
<th># of paths</th>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="box display" id="display">
</div>
</div>
</body>
<script src="js/app.js"></script>
</html>