summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/vtysh-generic-wide.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-28 21:14:42 +0200
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-01 11:14:02 +0000
commit58a20e42087cbb7a1b3b4725fa40fd15a31bb4ed (patch)
treee9e68c32e45f39c3ac425aac49500432d1a3cf95 /op-mode-definitions/include/vtysh-generic-wide.xml.i
parente27f566f0f6506126c071381af001c45253186e2 (diff)
downloadvyos-1x-58a20e42087cbb7a1b3b4725fa40fd15a31bb4ed.tar.gz
vyos-1x-58a20e42087cbb7a1b3b4725fa40fd15a31bb4ed.zip
vyos.util: extend process_named_running() signature with cmdline
process_named_running() was introduced in commit 16b2fc8fc4ca ("dns-forwarding: T2298: fix path to control file") and thus remained more or less unchanged. Smoketests use process_named_running() heavily and might spawn multiple processes with the same name but ifferent options (e.g. dhcp6c or dhclient) and it was yet not possible to properly filter on the "real-deal" like the process bound to a given interface. One can now optionally specify a string that is searched inside the command line argument list of the process. Example: >>> process_named_running('dhcp6c', 'veth0') ['/usr/sbin/dhcp6c', '-D', '-k', '/run/dhcp6c/dhcp6c.veth0.sock', '-c', '/run/dhcp6c/dhcp6c.veth0.conf', '-p', '/run/dhcp6c/dhcp6c.veth0.pid', 'veth0'] 4215 >>> process_named_running('dhcp6c', 'veth1') ['/usr/sbin/dhcp6c', '-D', '-k', '/run/dhcp6c/dhcp6c.veth1.sock', '-c', '/run/dhcp6c/dhcp6c.veth1.conf', '-p', '/run/dhcp6c/dhcp6c.veth1.pid', 'veth1'] 4253 Where the debug list returned is the commandline searched. (cherry picked from commit 9c677c81be6a6e62958c73b038c2a36f1f629108)
Diffstat (limited to 'op-mode-definitions/include/vtysh-generic-wide.xml.i')
0 files changed, 0 insertions, 0 deletions