Page MenuHomeVyOS Platform

Add an option to mangle dict keys to vyos.config.get_config_dict()
Closed, ResolvedPublic

Description

Some template libraries like Jinja2 don't like certain characters in dict keys. Jinja2 hates hyphens for example.

This makes the output of get_config_dict() impossible to use with them. We need a way to mangle keys according to some rules.

vyos.config.get_config_dict(key_mangling=('-', '_'))

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)