yggdrasil.lua 934 B

12345678910111213141516
  1. module("luci.controller.yggdrasil", package.seeall)
  2. function index()
  3. if not nixio.fs.access("/etc/config/yggdrasil") then
  4. return
  5. end
  6. entry({"admin", "network", "yggdrasil"}, firstchild(), "Yggdrasil").dependent = true
  7. entry({"admin", "network", "yggdrasil", "status"}, view("yggdrasil/status"), _("Status"), 1).leaf = false
  8. entry({"admin", "network", "yggdrasil", "peers"}, view("yggdrasil/peers"), _("Peers"), 2).leaf = false
  9. entry({"admin", "network", "yggdrasil", "settings"}, view("yggdrasil/settings"), _("Settings"), 3).leaf = false
  10. entry({"admin", "network", "yggdrasil", "keys"}, view("yggdrasil/keys"), _("Encryption keys"), 4).leaf = false
  11. entry({"admin", "network", "yggdrasil", "session_firewall"}, view("yggdrasil/session_firewall"), _("Session firewall"), 5).leaf = false
  12. entry({"admin", "network", "yggdrasil", "tunnel_routing"}, view("yggdrasil/tunnel_routing"), _("Tunnel routing"), 6).leaf = false
  13. end