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)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 10:19:05 +0000 (12:19 +0200)
commite7a9d9e4bde0b9c61d138d0eff0cac469b300bad
tree87a37060cbb47001aec1b2d3cd6d974e139ec86a
parent9f76002daef09d756df4d7dbec35298b8545c89a
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>
(cherry picked from commit 935e9a3c3430db5fad1004926ddfa2e35a950be5)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js