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:
Joachim Wiberg
2023-11-21 08:06:06 +01:00
parent 30641cb243
commit 69d0c16e30
+1 -2
View File
@@ -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">