map: rename type to maptype (FS#3287)
authorRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sat, 15 Aug 2020 14:03:26 +0000 (23:03 +0900)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 19 Aug 2020 19:14:00 +0000 (21:14 +0200)
commitbcf0704bd2ca852b1cbfa481095afb73e78287f9
tree4561b39b6c45364dc088d184e2c3845442de4b5a
parent6d5d815e3f6850a0dc754bf16053fa34490766f7
map: rename type to maptype (FS#3287)

"type" is already used as a common option for all protocols types, so
using the same option name for the map type makes the configuration
ambiguous. Luci in particular adds controls for both options and sees
errors when reading the resulting configuration.

Use "maptype" instead, but still fallback to "type" if "maptype" is not
set. This allows configurations to migrate without breaking old
configurations.

This addresses FS#3287.

Signed-off-by: Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
package/network/ipv6/map/Makefile
package/network/ipv6/map/files/map.sh