Dear Jo-Philipp:

I am trying to enhance the ppp interface status  to report chat
results like "NO DIALTONE", "BUSY", etc. (for dial up).  While it is
relatively easy to filter syslog to extract this status (using
cmatch), I haven't been so successful in figuring out how to display
it through  (Admininstration/Network/Interfaces/Overview, and
Administration/Network/Interfaces/WAN).
Am starting with  model/cbi/admin_network/ifaces.lua  and the following section:

st = s:taboption("general", DummyValue, "__status", translate("Status"))
st.template = "admin_network/iface_status"
st.network  = arg[1]

If I use http.write - then it doesn't get written in this section (as
to be expected)

Ideally I would like to display the chat results here along with the
other interface statistics. This is primarily if the network is not up
yet due to a modem dial out error- so I started trying to enhance
view/admin_network/iface_status.htm.

But it's not been easy due to my lack of familiarity with the way luci
is set  up.  Have looked through the documentation  and that has
helped a bit.

Any pointers on the easiest way to do this.  I don't want to create a
new application or new screens for something which could exist  along
with other  interface statistics.

Thanks


Ashok Rao
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to