Rewrote parsing of extra config-files to work recursively over structured data

Fixed that modified config variables were not properly overwritten in XML
Added `pretty` parameter to clicon_options_dump
Added testcases for recursive and structure extra config files
This commit is contained in:
Olof hagsand 2023-08-23 11:02:18 +02:00
parent 124afb8788
commit a7ef2c4f12
11 changed files with 135 additions and 65 deletions

View file

@ -1014,7 +1014,7 @@ main(int argc,
goto done;
/* Explicit dump of config (also debug dump below). */
if (config_dump){
if (clicon_option_dump1(h, stdout, config_dump_format) < 0)
if (clicon_option_dump1(h, stdout, config_dump_format, 1) < 0)
goto done;
}