With the optimization in T1758, the bottle app entry for config will contain the session configuration as it was during server initialization; consequently, a 'set' operation followed by a 'returnValue' operation will not show updated values. In the 'retrieve' route, call the Config constructor from the session, in order to return current values. Moreover, this will apply to the 'configure' path as well, which checks for existence on 'delete'. No other routes currently use config.py, but any future additions should follow this practice.
- Difficulty level
- Easy (less than an hour)
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Perfectly compatible
|Open||FEATURE REQUEST||dmbaturin||T1431 Implement an HTTP API for config reading and modification|
|Resolved||BUG||jestabro||T2040 vyos-http-api-server should reload Config in all routes|