X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-mod-admin-full%2Fluasrc%2Fview%2Fadmin_status%2Findex.htm;h=206f9ef82af90f6508f7cfc705efd4734e3d92cb;hp=8bfc61b99b6ccaa84b77c01b83054be5eccafcb4;hb=5377d22b4a8d8f2234ddb5e65783343a6f2f6897;hpb=02a93bca500acac3d051ac6a541e70905f1934e9
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
index 8bfc61b99..206f9ef82 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
@@ -76,12 +76,14 @@
if wan6 then
rv.wan6 = {
- ip6addr = wan6:ip6addr(),
- gw6addr = wan6:gw6addr(),
- dns = wan6:dns6addrs(),
- uptime = wan6:uptime(),
- ifname = wan6:ifname(),
- link = wan6:adminlink()
+ ip6addr = wan6:ip6addr(),
+ gw6addr = wan6:gw6addr(),
+ dns = wan6:dns6addrs(),
+ ip6prefix = wan6:ip6prefix(),
+ uptime = wan6:uptime(),
+ proto = wan6:proto(),
+ ifname = wan6:ifname(),
+ link = wan6:adminlink()
}
end
@@ -233,9 +235,34 @@
if (ifc6 && ifc6.ifname && ifc6.proto != 'none')
{
var s = String.format(
- '<%:Address%>: %s
' +
+ '<%:Type%>: %s%s
',
+ ifc6.proto, (ifc6.ip6prefix) ? '-pd' : ''
+ );
+
+ if (!ifc6.ip6prefix)
+ {
+ s += String.format(
+ '<%:Address%>: %s
',
+ (ifc6.ip6addr) ? ifc6.ip6addr : '::'
+ );
+ }
+ else
+ {
+ s += String.format(
+ '<%:Prefix Delegated%>: %s
',
+ ifc6.ip6prefix
+ );
+ if (ifc6.ip6addr)
+ {
+ s += String.format(
+ '<%:Address%>: %s
',
+ ifc6.ip6addr
+ );
+ }
+ }
+
+ s += String.format(
'<%:Gateway%>: %s
',
- (ifc6.ip6addr) ? ifc6.ip6addr : '::',
(ifc6.gw6addr) ? ifc6.gw6addr : '::'
);
@@ -276,20 +303,56 @@
var s = String.format(
'<%:Status%>: %s
' +
'<%:Line State%>: %s [0x%x]
' +
- '<%:Line Speed%>: %s/s / %s/s
' +
- '<%:Line Attenuation%>: %s dB / %s dB
' +
- '<%:Noise Margin%>: %s dB / %s dB
',
+ '<%:Line Mode%>: %s
' +
+ '<%:Annex%>: %s
' +
+ '<%:Profile%>: %s
' +
+ '<%:Data Rate%>: %s/s / %s/s
' +
+ '<%:Max. Attainable Data Rate (ATTNDR)%>: %s/s / %s/s
' +
+ '<%:Latency%>: %s / %s
' +
+ '<%:Line Attenuation (LATN)%>: %s dB / %s dB
' +
+ '<%:Signal Attenuation (SATN)%>: %s dB / %s dB
' +
+ '<%:Noise Margin (SNR)%>: %s dB / %s dB
' +
+ '<%:Aggregate Transmit Power(ACTATP)%>: %s dB / %s dB
' +
+ '<%:Forward Error Correction Seconds (FECS)%>: %s / %s
' +
+ '<%:Errored seconds (ES)%>: %s / %s
' +
+ '<%:Severely Errored Seconds (SES)%>: %s / %s
' +
+ '<%:Loss of Signal Seconds (LOSS)%>: %s / %s
' +
+ '<%:Unavailable Seconds (UAS)%>: %s / %s
' +
+ '<%:Header Error Code Errors (HEC)%>: %s / %s
' +
+ '<%:Non Pre-emtive CRC errors (CRC_P)%>: %s / %s
' +
+ '<%:Pre-emtive CRC errors (CRCP_P)%>: %s / %s
' +
+ '<%:Line Uptime%>: %s
' +
+ '<%:ATU-C System Vendor ID%>: %s
' +
+ '<%:Power Management Mode%>: %s
',
info.dsl.line_state, info.dsl.line_state_detail,
info.dsl.line_state_num,
+ info.dsl.line_mode_s,
+ info.dsl.annex_s,
+ info.dsl.profile_s,
info.dsl.data_rate_down_s, info.dsl.data_rate_up_s,
+ info.dsl.max_data_rate_down_s, info.dsl.max_data_rate_up_s,
+ info.dsl.latency_num_down, info.dsl.latency_num_up,
info.dsl.line_attenuation_down, info.dsl.line_attenuation_up,
- info.dsl.noise_margin_down, info.dsl.noise_margin_up
+ info.dsl.signal_attenuation_down, info.dsl.signal_attenuation_up,
+ info.dsl.noise_margin_down, info.dsl.noise_margin_up,
+ info.dsl.actatp_down, info.dsl.actatp_up,
+ info.dsl.errors_fec_near, info.dsl.errors_fec_far,
+ info.dsl.errors_es_near, info.dsl.errors_es_far,
+ info.dsl.errors_ses_near, info.dsl.errors_ses_far,
+ info.dsl.errors_loss_near, info.dsl.errors_loss_far,
+ info.dsl.errors_uas_near, info.dsl.errors_uas_far,
+ info.dsl.errors_hec_near, info.dsl.errors_hec_far,
+ info.dsl.errors_crc_p_near, info.dsl.errors_crc_p_far,
+ info.dsl.errors_crcp_p_near, info.dsl.errors_crcp_p_far,
+ info.dsl.line_uptime_s,
+ info.dsl.atuc_vendor_id,
+ info.dsl.power_mode_s
);
dsl_s.innerHTML = String.format('%s', s);
dsl_i.innerHTML = String.format(
'' +
- '
ADSL'
+ '
DSL'
);
<% end %>
@@ -305,7 +368,9 @@
{
var timestr;
- if (info.leases[i].expires <= 0)
+ if (info.leases[i].expires === false)
+ timestr = '<%:unlimited%>';
+ else if (info.leases[i].expires <= 0)
timestr = '<%:expired%>';
else
timestr = String.format('%t', info.leases[i].expires);
@@ -343,7 +408,9 @@
{
var timestr;
- if (info.leases6[i].expires <= 0)
+ if (info.leases6[i].expires === false)
+ timestr = '<%:unlimited%>';
+ else if (info.leases6[i].expires <= 0)
timestr = '<%:expired%>';
else
timestr = String.format('%t', info.leases6[i].expires);
@@ -435,7 +502,7 @@
'<%:Bitrate%>: %s <%:Mbit/s%>
',
icon, net.signal, net.noise,
net.quality,
- net.link, net.ssid,
+ net.link, net.ssid || '?',
net.mode,
net.channel, net.frequency,
net.bitrate || '?'
@@ -446,7 +513,7 @@
s += String.format(
'<%:BSSID%>: %s
' +
'<%:Encryption%>: %s',
- net.bssid,
+ net.bssid || '?',
net.encryption
);
}
@@ -707,9 +774,9 @@
<% if has_dsl then %>