summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op-mode-definitions/show-vrf.xml22
-rwxr-xr-xsrc/op_mode/show_vrf.py (renamed from src/completion/list_vrf.py)0
2 files changed, 10 insertions, 12 deletions
diff --git a/op-mode-definitions/show-vrf.xml b/op-mode-definitions/show-vrf.xml
index fb2fddd49..360153d8e 100644
--- a/op-mode-definitions/show-vrf.xml
+++ b/op-mode-definitions/show-vrf.xml
@@ -6,19 +6,17 @@
<properties>
<help>Show VRF information</help>
</properties>
- <command>${vyos_completion_dir}/list_vrf.py -e</command>
- <children>
- <tagNode name="name">
- <properties>
- <help>Show VRF information for an interface</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_vrf.py</script>
- </completionHelp>
- </properties>
- <command>${vyos_completion_dir}/list_vrf.py -e "$4"</command>
- </tagNode>
- </children>
+ <command>${vyos_op_scripts_dir}/show_vrf.py -e</command>
</node>
+ <tagNode name="vrf">
+ <properties>
+ <help>Show information on specific VRF instance</help>
+ <completionHelp>
+ <path>vrf name</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_vrf.py -e "$3"</command>
+ </tagNode>
</children>
</node>
</interfaceDefinition>
diff --git a/src/completion/list_vrf.py b/src/op_mode/show_vrf.py
index 210b3c9a4..210b3c9a4 100755
--- a/src/completion/list_vrf.py
+++ b/src/op_mode/show_vrf.py