summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:53 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:53 +0200
commit4dbc229db28c12a1d9533d73892d806cf4afa3e3 (patch)
tree5ac00bd76db0650a9e30a64f85f66156d3676f7e /op-mode-definitions
parent5b1f06336b9cc9f27788fbcd426f2fd08431e4f8 (diff)
downloadvyos-1x-4dbc229db28c12a1d9533d73892d806cf4afa3e3.tar.gz
vyos-1x-4dbc229db28c12a1d9533d73892d806cf4afa3e3.zip
op-mode: T2321: add "show vrf black processes" command
List all processes running in given VRF vyos@vyos:~$ show vrf black processes 4624 sshd 4404 ntpd
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-vrf.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/op-mode-definitions/show-vrf.xml b/op-mode-definitions/show-vrf.xml
index 360153d8e..1c806908b 100644
--- a/op-mode-definitions/show-vrf.xml
+++ b/op-mode-definitions/show-vrf.xml
@@ -16,6 +16,14 @@
</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>