diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-15 22:55:37 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-15 22:55:37 +0100 |
commit | 224325a36d57b4146458084f64408eaab0b939f4 (patch) | |
tree | 5c5745fb1252edf8c6e9f17b07c9342b90dfc572 /protocols/luci-proto-ppp/luasrc/model/cbi | |
parent | 458469bb4f3e624373da89f2f49363d097237379 (diff) |
protocols: fix keepalive settings for pppd based protocols
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'protocols/luci-proto-ppp/luasrc/model/cbi')
4 files changed, 8 insertions, 12 deletions
diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua index 659e733a79..b59f08bd11 100644 --- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua +++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua @@ -89,9 +89,6 @@ function keepalive_failure.cfgvalue(self, section) end end -function keepalive_failure.write() end -function keepalive_failure.remove() end - keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" @@ -119,6 +116,8 @@ function keepalive_interval.write(self, section, value) end keepalive_interval.remove = keepalive_interval.write +keepalive_failure.write = keepalive_interval.write +keepalive_failure.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)" diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua index c32e2828d7..2f3b193b17 100644 --- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua +++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua @@ -95,9 +95,6 @@ function keepalive_failure.cfgvalue(self, section) end end -function keepalive_failure.write() end -function keepalive_failure.remove() end - keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" @@ -125,6 +122,8 @@ function keepalive_interval.write(self, section, value) end keepalive_interval.remove = keepalive_interval.write +keepalive_failure.write = keepalive_interval.write +keepalive_failure.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)" diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua index ec258a5282..d6f6349639 100644 --- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua +++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua @@ -89,9 +89,6 @@ function keepalive_failure.cfgvalue(self, section) end end -function keepalive_failure.write() end -function keepalive_failure.remove() end - keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" @@ -119,6 +116,8 @@ function keepalive_interval.write(self, section, value) end keepalive_interval.remove = keepalive_interval.write +keepalive_failure.write = keepalive_interval.write +keepalive_failure.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)" diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua index ea9858e7de..11104099cc 100644 --- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua +++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua @@ -69,9 +69,6 @@ function keepalive_failure.cfgvalue(self, section) end end -function keepalive_failure.write() end -function keepalive_failure.remove() end - keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" @@ -99,6 +96,8 @@ function keepalive_interval.write(self, section, value) end keepalive_interval.remove = keepalive_interval.write +keepalive_failure.write = keepalive_interval.write +keepalive_failure.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)" |