Upgrades
This site summarizes breaking changes you should consider when upgrading between major releases. You should also check the ChangeLog for a complete list of changes.
IfState 2.0
Cleanup by default
In the previos major release IfState did not touch settings by default when they were not specified in the configuration. With this major release the parameters.defaults_builtin setting will cleanup varius settings by default:
parameters:
defaults_builtin:
- match:
- ifname: ''
clear_addresses: true
clear_fdb: true
clear_neighbours: true
clear_tc: true
link:
state: down
master: null
Configuration filename
The default configuration filename has been changed.
/etc/ifstate/ifstate.yaml
/etc/ifstate/config.yml
Configuration schema
The configuration schema got severial breaking changes so you must upgrade the configuration:
Moved settings
The cshaper, defaults and ignore settings has been moved into the parameters hierarchy:
Interfaces settings
The interfaces settings have been changed from a list to an object with the interface's names as keys. The properties in the link section which where used to identify physical interfaces (permaddr and businfo) are now replaced with a dedicated identify section (including device tree support).
Sysctl settings
The sysctl setting have been moved one level up in the hierarchy.
Wireguard settings
The peers setting have been changed from a list to an object where the peer's public keys are used as keys.