I've just upgraded an x86 box from 19.07 to 21.02, keeping/migrating the previous configuration, and everything seems to be working ok so far. However, I'm not seeing the behaviour described here in the release notes:
There have been several changes to the network configuration syntax in
/etc/config/network:
in config interface, option ifname has been renamed to device (since
it refers to a device section)
in config device of type bridge, ifname has been renamed to ports
for new installs, the generated configuration now creates separate
sections for layer 2 (config device) and layer 3 (config interface)
configuration
The old syntax is still supported to facilitate transition, and there is
no automated migration when upgrading.
However, the LuCI web interface detects old-style configuration and will propose to migrate it to the new syntax. This is necessary to be able to
edit network configuration through LuCI.
I went into LuCI and opened the Network -> Interfaces page but there was no offer to migrate the config, and it's still using the old format. I'm now worried about making any changes to this config in LuCI in case it messes things up.
How do I trigger the behaviour highlighted in bold above?
This is interesting. When I run opkg update it's updating from the 19.07 repos...
Downloading http://downloads.openwrt.org/releases/19.07.8/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.8/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.8/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/19.07.8/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.8/packages/x86_64/freifunk/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_freifunk
Downloading http://downloads.openwrt.org/releases/19.07.8/packages/x86_64/freifunk/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.8/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
...
Boom, that worked. I'm now upgraded to 21.02, and when I navigated to the Network -> Interfaces page in LuCI it automatically updated the config to the new syntax.
Thanks very much for your help. I think I would have really struggled to find that sysupgrade/gzip issue!