mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
cli: speedup detailed interface view
This affects CLI command such as: > show interface name p1 Prior to this patch, this took roughly ~1200ms on hardware and with the path it takes roughly 50ms. Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
committed by
Joachim Wiberg
parent
5b58c60919
commit
ff7b8ec9bf
@@ -240,7 +240,8 @@
|
||||
</SWITCH>
|
||||
<ACTION sym="script" interactive="false">
|
||||
if [ -n "$KLISH_PARAM_name" ]; then
|
||||
sysrepocfg -f json -X -d operational -m ietf-interfaces | \
|
||||
sysrepocfg -f json -X -d operational -x \
|
||||
"/ietf-interfaces:interfaces/interface[name='$KLISH_PARAM_name']" | \
|
||||
/lib/infix/cli-pretty "ietf-interfaces" -n "$KLISH_PARAM_name"
|
||||
else
|
||||
sysrepocfg -f json -X -d operational -m ietf-interfaces | \
|
||||
|
||||
Reference in New Issue
Block a user