clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
216 stars 72 forks source link

Feature request: dump parsed configuration to stdout #443

Closed pprindeville closed 1 year ago

pprindeville commented 1 year ago

Please add the option -s dump as a run mode which reads and parses the configuration file(s), then dumps the node/value pairs to stdout and exits.

pprindeville commented 1 year ago

Maybe also have -s dump-xml for reading all of the configs and them writing them out flattened so they can be used to prime startup_db.

pprindeville commented 1 year ago

The point was just brought up that for the -s dump-xml (or whatever) we need to also read and process all of the <CLICON_YANG_DIR> directives as well.

pprindeville commented 1 year ago

PR #445

Maybe also have -s dump-xml for reading all of the configs and them writing them out flattened so they can be used to prime startup_db.

Done as PR #445.