Jo-Philipp Wich
f6f4005d0b
luci-base: firewall.js: remove further zone network/name fallback logic
...
Fixes : #4093
Fixes: 4052436d8
("luci-base: firewall.js: don't treat zone name as network fallback")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-24 17:33:26 +02:00
Jo-Philipp Wich
28cf5cd576
luci-base: firewall.js: fix Zone.addRule()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-04 21:29:01 +02:00
Jo-Philipp Wich
a8d85ed71a
luci-base: firewall.js: gracefully handle missing uci configuration
...
Ref: https://forum.openwrt.org/t/luci-rpc-error/61760
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-28 09:47:08 +02:00
Jo-Philipp Wich
4c55e8226d
luci-base: firewall.js: fix Firewall.removeZone()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-26 19:12:38 +01:00
Jo-Philipp Wich
4052436d82
luci-base: firewall.js: don't treat zone name as network fallback
...
Drop obsolete extra logic which treats the zone name as covered network
name in case the network list is unset. This behaviour applied to the
pre-fw3 uci firewall, but is not supported since fw3 anymore.
Ref: https://forum.openwrt.org/t/luci-zone-creation-bug/55921
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-02 10:10:27 +01:00
Jo-Philipp Wich
7610f1d9cf
luci-base: firewall.js: fix addZone()
...
When checking for an existing zone with the same name internally,
addZone() must use the nonblocking lookupZone() instead of the
promise returning public getZone() call.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
b63576bbe7
luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:29:42 +02:00
Jo-Philipp Wich
f970c485cf
treewide: switch to shared isObject(), toArray() and sortedKeys() helpers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:11:35 +02:00
Jo-Philipp Wich
79be2d57cd
luci-base: add client-side implementation of luci.model.firewall
...
Introduce firewall.js, a client side reimplementation of the
luci.model.firewall class.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00