diff options
author | Pau Escrich <p4u@dabax.net> | 2013-11-02 01:30:02 +0400 |
---|---|---|
committer | Pau Escrich <p4u@dabax.net> | 2013-11-02 01:30:02 +0400 |
commit | 89c2a8bb562412281d1ff070007be16d5a4d8f55 (patch) | |
tree | 5a1f77f03728559ae549379d2dbc603b96a6f3bd /luci-app-bmx6 | |
parent | a8be1fb758e676e963d4b479622ba0a0fa6a6d5f (diff) |
luci-app-bmx6: show the IPv6 tunnels of bmx6 in the node's web page
Diffstat (limited to 'luci-app-bmx6')
-rw-r--r-- | luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/nodes_j.htm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/nodes_j.htm b/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/nodes_j.htm index 0435655..730fd29 100644 --- a/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/nodes_j.htm +++ b/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/nodes_j.htm @@ -120,6 +120,7 @@ hna6 = extensions[e].HNA6_EXTENSION; if ( extensions[e].TUN4IN6_NET_EXTENSION ) tun4in6 = extensions[e].TUN4IN6_NET_EXTENSION; + tun6in6 = extensions[e].TUN6IN6_NET_EXTENSION; } // Gateways @@ -131,6 +132,15 @@ else gateways += "<li>"+tun4in6[t].network+'/'+tun4in6[t].networklen + ' | ' + tun4in6[t].bandwidth+'</li>'; } + + for ( var t = 0; t < tun6in6.length; t++) + { + if ( tun6in6[t].networklen == "128" ) + gateways += '<li><a href="http://' + tun6in6[t].network + '">' + tun6in6[t].network + '</a></li>'; + else + gateways += "<li>"+tun6in6[t].network+'/'+tun6in6[t].networklen + ' | ' + tun6in6[t].bandwidth+'</li>'; + } + gateways += '</ul>'; //Adding HNAs with prefix=128 as main address |