Page MenuHomeVyOS Platform

Schema generation from op-mode functions should set default 'false' on boolean arguments
Closed, ResolvedPublicBUG

Description

We should review the question of type hint Optional for boolean-valued options. Type hint bool is interpreted as default false in the command line, whether or not it is wrapped in Optional; type hint 'bool' is interpreted as nullable in schema generation only if wrapped in Optional. Schema generation should match the behavior of the command line interpretation.

Details

Version
vyos-1.4
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)