luci-app-bmx6: Adapt the code to last bmx6 (some fields changed).

Reduce the information shown in the tunnels/gateways page.

Signed-off-by: Pau Escrich <p4u@dabax.net>
This commit is contained in:
Pau Escrich 2014-02-25 15:49:44 +01:00
parent a8313faa28
commit a110cfccd5
4 changed files with 7 additions and 9 deletions

View file

@ -204,7 +204,7 @@ function action_links(host)
devlinks[l.viaDev] = {}
end
for _,l in ipairs(links) do
l.globalId = luci.util.split(l.globalId,'.')[1]
l.name = luci.util.split(l.name,'.')[1]
table.insert(devlinks[l.viaDev],l)
end
end

View file

@ -20,7 +20,7 @@
<table>
<tr><th colspan="2">
<span style="color:grey;font-weight:700;text-align:left;">
<%=l.globalId%>
<%=l.name%>
<br />
</span>
</th></tr>

View file

@ -66,11 +66,9 @@
<th class="cbi-section-table-cell"><%:Network%></th>
<th class="cbi-section-table-cell"><%:Bandwidth%></th>
<th class="cbi-section-table-cell"><%:SearchNet%></th>
<th class="cbi-section-table-cell"><%:Type%></th>
<th class="cbi-section-table-cell"><%:Path Metric%></th>
<th class="cbi-section-table-cell"><%:IP metric%></th>
<th class="cbi-section-table-cell"><%:Tun metric%></th>
<th class="cbi-section-table-cell"><%:Bonus%></th>
<th class="cbi-section-table-cell"><%:Rating%></th>
<th class="cbi-section-table-cell"><%:Src%></th>
<th class="cbi-section-table-cell"><%:Search id%></th>
</tr>
@ -97,8 +95,8 @@
if ( tunnel.tunName != "---" ) status = '<img src="'+tunicon+'"/>';
if ( advnet == "0.0.0.0/0" ) advnet = "<b>Internet</b>";
res.push([status, tunnel.name, nodename, advnet, tunnel.advBw, tunnel.net, tunnel.advType,
tunnel.pathMtc, tunnel.ipMtc, tunnel.tunMtc, tunnel.bonus, tunnel.srcIngress, tunnel.id]);
res.push([status, tunnel.name, nodename, advnet, tunnel.advBw, tunnel.net,
tunnel.pathMtc, tunnel.tunMtc, tunnel.rating, tunnel.srcIngress, tunnel.id]);
}
return res;
});

View file

@ -97,7 +97,7 @@ if [ "$QUERY" == '$neighbours' ]; then
exit 0
else if [ "$QUERY" == '$tunnels' ]; then
bmx6 -c --jshow tunnels
bmx6 -c --jshow tunnels /r=0
exit 0
else