luci-mod-network: fix route and rule options 5335/head
authorVladislav Grigoryev <vg.aetera@gmail.com>
Fri, 3 Sep 2021 21:24:48 +0000 (00:24 +0300)
committerVladislav Grigoryev <vg.aetera@gmail.com>
Sat, 4 Sep 2021 12:51:11 +0000 (15:51 +0300)
commit0be0f069077fb01038b34446afea510d26b8782e
tree3f04152ccaaa48c7c4c2af4d26c17468678c71a1
parent4f7db0e2ec3016e01b9308fe68c4680c04250adb
luci-mod-network: fix route and rule options

Allow adding routes with unspecified interface.
This is required for prohibit, blackhole and unreachable routes.

Allow adding routes with loopback interface.
This can work as a blackhole route.

Fix netmask to prefix conversion for the routes.
Identify the IP family by the UCI section type.

Avoid setting the routing table textvalue for the rules.
The rules should target none table unless specified otherwise.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
35 files changed:
modules/luci-base/po/ar/base.po
modules/luci-base/po/bg/base.po
modules/luci-base/po/bn_BD/base.po
modules/luci-base/po/ca/base.po
modules/luci-base/po/cs/base.po
modules/luci-base/po/de/base.po
modules/luci-base/po/el/base.po
modules/luci-base/po/en/base.po
modules/luci-base/po/es/base.po
modules/luci-base/po/fi/base.po
modules/luci-base/po/fr/base.po
modules/luci-base/po/he/base.po
modules/luci-base/po/hi/base.po
modules/luci-base/po/hu/base.po
modules/luci-base/po/it/base.po
modules/luci-base/po/ja/base.po
modules/luci-base/po/ko/base.po
modules/luci-base/po/mr/base.po
modules/luci-base/po/ms/base.po
modules/luci-base/po/nb_NO/base.po
modules/luci-base/po/nl/base.po
modules/luci-base/po/pl/base.po
modules/luci-base/po/pt/base.po
modules/luci-base/po/pt_BR/base.po
modules/luci-base/po/ro/base.po
modules/luci-base/po/ru/base.po
modules/luci-base/po/sk/base.po
modules/luci-base/po/sv/base.po
modules/luci-base/po/templates/base.pot
modules/luci-base/po/tr/base.po
modules/luci-base/po/uk/base.po
modules/luci-base/po/vi/base.po
modules/luci-base/po/zh_Hans/base.po
modules/luci-base/po/zh_Hant/base.po
modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js