diff options
Diffstat (limited to 'op-mode-definitions/show-vrf.xml')
-rw-r--r-- | op-mode-definitions/show-vrf.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/show-vrf.xml b/op-mode-definitions/show-vrf.xml new file mode 100644 index 000000000..438e7c334 --- /dev/null +++ b/op-mode-definitions/show-vrf.xml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="vrf"> + <properties> + <help>Show VRF information</help> + </properties> + <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> + <children> + <leafNode name="processes"> + <properties> + <help>Shows all process ids associated with VRF</help> + </properties> + <command>/usr/sbin/ip vrf pids "$3"</command> + </leafNode> + </children> + </tagNode> + </children> + </node> +</interfaceDefinition> |