luci-mod-network: allow disabling interface->device option migration
authorJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 18:08:48 +0000 (20:08 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 20:35:10 +0000 (22:35 +0200)
commit935e9a3c3430db5fad1004926ddfa2e35a950be5
tree3b7cde064ba5e2606821e0d9939464467f20c806
parent7dde01be3cc197f79bc6812a2c912c1889dbf1ee
luci-mod-network: allow disabling interface->device option migration

Introduce a `migrate` properties which selectively allows disabling the
`config interface` to `config device` migration logic for single options.

Use the new flag to disable migration of the "ipv6" option which has
different semantics in interface and device sections.

Ref: https://forum.openwrt.org/t/pppoe-disable-ipv6/92548
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js