babeld.htm 754 B

12345678910111213141516171819202122
  1. <%+header%>
  2. <script type="text/javascript" src="<%=resource%>/babeld.js"></script>
  3. <div id="babeld"></div>
  4. <script type="text/javascript">
  5. data = {};
  6. data["ubus_rpc_session"] = "<%=luci.dispatcher.context.authsession%>"
  7. origin = document.location.href.replace(location.pathname, "")
  8. ubus_url = origin + "/ubus/"
  9. var info = ubus_call("babeld", "get_info", {});
  10. var xroutes = ubus_call("babeld", "get_xroutes", {});
  11. var routes = ubus_call("babeld", "get_routes", {});
  12. var neighbours = ubus_call("babeld", "get_neighbours", {});
  13. renderTableInfo(info, 'babeld');
  14. renderTableXRoutes(xroutes, 'babeld');
  15. renderTableRoutes(routes, 'babeld');
  16. renderTableNeighbours(neighbours, 'babeld');
  17. </script>
  18. <%+footer%>