summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-rp-pppoe-server/luasrc/model
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-10-07 22:18:04 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-10-07 22:30:23 +0200
commit3aa60877ea4bc47b86c3ee11448db7503a20ae01 (patch)
treefb55393ce71aedee0ca458e05574936b9ff7eba0 /applications/luci-app-rp-pppoe-server/luasrc/model
parent25a4d075558af1effcb1539e6d6920a6ff198821 (diff)
luci-app-rp-pppoe-server: convert to JS
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-rp-pppoe-server/luasrc/model')
-rw-r--r--applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua72
1 files changed, 0 insertions, 72 deletions
diff --git a/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua b/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua
deleted file mode 100644
index fc7d963ebd..0000000000
--- a/applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua
+++ /dev/null
@@ -1,72 +0,0 @@
--- Copyright 2015 Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
--- Licensed to the public under the Apache License 2.0.
-
-local m, s, o
-
-local nixio = require "nixio"
-
-m = Map("pppoe", translate("Roaring Penguin PPPoE Server"),
- translate("PPPoE Server Configuration"))
-
-s = m:section(TypedSection, "pppoe_server", translate("Server Configuration"))
-s.addremove = true
-s.anonymous = true
-
-o = s:option(Value, "interface", translate("Interface"), translate("Interface on which to listen."))
-o.template = "cbi/network_netlist"
-o.nocreate = true
-
-o = s:option(Value, "ac_name", translate("Access Concentrator Name"))
-o.optional = true
-
-o = s:option(DynamicList, "service_name", translate("Service Name"))
-o.optional = true
-
-o = s:option(Value, "maxsessionsperpeer", translate("Maximum sessions per peer"))
-o.optional = true
-o.datatype = "uinteger"
-
-o = s:option(Value, "localip", translate("IP of listening side"))
-o.datatype = "ipaddr"
-
-o = s:option(Value, "firstremoteip", translate("First remote IP"))
-o.datatype = "ipaddr"
-
-o = s:option(Value, "maxsessions", translate("Maximum sessions"))
-o.datatype = "uinteger"
-o.default = 64
-o.optional = true
-
-o = s:option(Value, "optionsfile", translate("Options file"))
-o.default = "/etc/ppp/pppoe-server-options"
-o.optional = true
-
-o = s:option(Flag, "randomsessions", translate("Random session selection"), translate("Instead of starting at beginning and going to end, randomize session number"))
-o.optional = true
-
-o = s:option(Value, "unit", translate("Unit"), translate("PPP unit number"))
-o.optional = true
-o.datatype = "uinteger"
-o.default = 0
-
-o = s:option(Value, "offset", translate("Offset"), translate("PPP offset"))
-o.optional = true
-o.datatype = "uinteger"
-o.default = 0
-
-o = s:option(Value, "timeout", translate("Timeout"))
-o.optional = true
-o.datatype = "uinteger"
-o.default = 60
-
-o = s:option(Value, "mss", translate("MSS"))
-o.optional = true
-o.datatype = "uinteger"
-o.default = 1468
-
-
-o = s:option(Flag, "sync", translate("Sync"))
-o.optional = true
-o.default = false
-
-return m