After upgrading from VyOS 1.3.8 to 1.4.1, the following configuration is completely lost:
set protocols static interface-route X.X.X.0/16 next-hop-interface vti0 distance '10' set protocols static interface-route X.X.X.0/16 next-hop-interface vti1 distance '20' set protocols static interface-route X.X.X.0/16 next-hop-interface x.x.x.1 distance '20' set protocols static interface-route X.X.X.0/16 next-hop-interface x.x.x.2 distance '10'
Steps to Reproduce:
- Start with VyOS 1.3.8 using the above configuration.
- Upgrade to VyOS 1.4.1.
- Check the migrated configuration.
Expected Behavior:
Configuration should migrate without any loss.
Actual Behavior:
Configuration migration fails, and the system reverts to the default base configuration instead of preserving the current configuration.
Environment:
- Initial version: VyOS 1.3.8
- Target version: VyOS 1.4.1
- Hardware/VM: Proxmox 8.x
Partial Solution:
Before upgrading, convert the affected routes to the following format in VyOS 1.3.8 to ensure compatibility with 1.4.1:
set protocols static route x.x.x.0/16 interface vti2 distance '10' set protocols static route x.x.x.0/16 interface vti3 distance '20' set protocols static route x.x.x.0/16 next-hop x.x.x.1 distance '20' set protocols static route x.x.x.0/16 next-hop x.x.x.2 distance '10'
This adjustment ensures the routes persist correctly after the upgrade.