summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-30 16:06:14 +0000
committerGitHub <noreply@github.com>2024-01-30 16:06:14 +0000
commitee69903d9245e6be2e652a3aef97f01f31d40066 (patch)
tree8223ef4870d12766432c774a27b315d6fe922bd4
parente13d901fd903f69dad4c02152ebb4ff4ad858c7c (diff)
parentc23775d29fd3bebbfd6ae9483fd12f2fb643c9a2 (diff)
downloadvyos-1x-ee69903d9245e6be2e652a3aef97f01f31d40066.tar.gz
vyos-1x-ee69903d9245e6be2e652a3aef97f01f31d40066.zip
Merge pull request #2906 from jvoss/T6003
rpki: T6003: Add 'show rpki as-number' and 'show rpki prefix'
-rw-r--r--op-mode-definitions/rpki.xml.in29
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>&lt;ASNUM&gt;</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>&lt;x.x.x.x/x&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <tagNode name="as-number">
+ <properties>
+ <help>AS Number</help>
+ <completionHelp>
+ <list>&lt;ASNUM&gt;</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>