mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
src/klish-plugin-infix: show JSON of running-config
The default srp_show@sysrepo function creates the stripped down version of running-config that, in the context of showing startup-config or the factory-config, is very difficult to explain to users why they differ in format. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -298,8 +298,7 @@
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="running-config" help="Show running-config">
|
||||
<!-- TODO: add PARAM for xml/json output, and coloring like factory -->
|
||||
<ACTION sym="srp_show@sysrepo">running</ACTION>
|
||||
<ACTION sym="script">sysrepocfg -X -f json | jq -C .</ACTION>
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="startup-config" help="Show startup-config">
|
||||
|
||||
Reference in New Issue
Block a user