diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-30 16:32:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 16:32:49 +0000 |
commit | cda9610d51054004fa3c53bcb55fc525ec0c27dc (patch) | |
tree | b5e0c845abc47812862cda9c43cc0491bc89206e /op-mode-definitions/rpki.xml.in | |
parent | 8bd6c24b50a34225763058c1daa28c8a8fe59098 (diff) | |
parent | 5f7de6e0ab6315abaef42150039adf365d549084 (diff) | |
download | vyos-1x-cda9610d51054004fa3c53bcb55fc525ec0c27dc.tar.gz vyos-1x-cda9610d51054004fa3c53bcb55fc525ec0c27dc.zip |
Merge pull request #2907 from vyos/mergify/bp/sagitta/pr-2906
rpki: T6003: Add 'show rpki as-number' and 'show rpki prefix' (backport #2906)
Diffstat (limited to 'op-mode-definitions/rpki.xml.in')
-rw-r--r-- | op-mode-definitions/rpki.xml.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/op-mode-definitions/rpki.xml.in b/op-mode-definitions/rpki.xml.in index 72d378b88..9e0f83e20 100644 --- a/op-mode-definitions/rpki.xml.in +++ b/op-mode-definitions/rpki.xml.in @@ -7,6 +7,15 @@ <help>Show RPKI (Resource Public Key Infrastructure) information</help> </properties> <children> + <tagNode name="as-number"> + <properties> + <help>Lookup by ASN in prefix table</help> + <completionHelp> + <list><ASNUM></list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + </tagNode> <leafNode name="cache-connection"> <properties> <help>Show RPKI cache connections</help> @@ -19,6 +28,26 @@ </properties> <command>vtysh -c "show rpki cache-server"</command> </leafNode> + <tagNode name="prefix"> + <properties> + <help>Lookup IP prefix and optionally ASN in prefix table</help> + <completionHelp> + <list><x.x.x.x/x> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <children> + <tagNode name="as-number"> + <properties> + <help>AS Number</help> + <completionHelp> + <list><ASNUM></list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $(echo $@ | sed -e "s/as-number //g")</command> + </tagNode> + </children> + </tagNode> <leafNode name="prefix-table"> <properties> <help>Show RPKI-validated prefixes</help> |