mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Extend the existing 'show <running|startup|factory>-config' family with an optional 'path /XPATH' argument that maps straight to the underlying 'copy -x' flag, and add 'show operational [path /XPATH]' for symmetry with the configuration datastores. admin@example:/> show running-config path /ietf-interfaces:interfaces admin@example:/> show operational path /ietf-system:system-state Also, improve error feedback from the copy command slightly. Before: admin@example:~$ copy running -x /foo Error: (null) (5) Error: failed retrieving running-config data After: admin@example:~$ copy running -x /foo Error: Couldn't parse path "/foo": Prefix "foo" not defined. (5) Error: failed retrieving running-config data Signed-off-by: Joachim Wiberg <troglobit@gmail.com>