diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-12 18:30:09 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-12 18:30:21 +0200 |
commit | ebf89e0535cf8362a077c07a9cfa2dbd8eeecbb4 (patch) | |
tree | a9eafbf5d289f14f992e15143b661be9d685ba37 /op-mode-definitions/pki.xml.in | |
parent | ed01c03fc32d77ea95b89a40a7478e36abec8c1e (diff) | |
download | vyos-1x-ebf89e0535cf8362a077c07a9cfa2dbd8eeecbb4.tar.gz vyos-1x-ebf89e0535cf8362a077c07a9cfa2dbd8eeecbb4.zip |
pki: T3642: show only requested CA in op-mode
Diffstat (limited to 'op-mode-definitions/pki.xml.in')
-rw-r--r-- | op-mode-definitions/pki.xml.in | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/op-mode-definitions/pki.xml.in b/op-mode-definitions/pki.xml.in index 6b9b0d3f6..70154f881 100644 --- a/op-mode-definitions/pki.xml.in +++ b/op-mode-definitions/pki.xml.in @@ -356,23 +356,21 @@ <help>Show PKI certificates</help> </properties> <children> - <node name="ca"> + <leafNode name="ca"> <properties> <help>Show CA certificates</help> </properties> - <children> - <leafNode name="name"> - <properties> - <help>Show CA certificate by name</help> - <completionHelp> - <path>pki ca</path> - </completionHelp> - </properties> - <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$5"</command> - </leafNode> - </children> <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "all"</command> - </node> + </leafNode> + <tagNode name="ca"> + <properties> + <help>Show CA certificate by name</help> + <completionHelp> + <path>pki ca</path> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$4"</command> + </tagNode> <node name="certificate"> <properties> <help>Show certificates</help> |