diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-28 23:03:41 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-01-16 07:24:35 +0000 |
commit | a0b0670f46128b0be657e50b5751d23b5f602373 (patch) | |
tree | 3162826312e442daa5ef8190148dac1ea914b713 /interface-definitions/vrf.xml.in | |
parent | 598dcad7237d49861ca6216deea254b7c942241f (diff) | |
download | vyos-1x-a0b0670f46128b0be657e50b5751d23b5f602373.tar.gz vyos-1x-a0b0670f46128b0be657e50b5751d23b5f602373.zip |
vyos.util: T4575: Add new wrapper "rc_cmd"
It is useful to have both a return code and output of the command
Add a new wrapper "rc_cmd" that returns both
% rc_cmd('uname')
(0, 'Linux')
% rc_cmd('ip link show dev fake')
(1, 'Device "fake" does not exist.')
(cherry picked from commit 14418b6d80ef4652a44d9280baf369c8e3c429fd)
Diffstat (limited to 'interface-definitions/vrf.xml.in')
0 files changed, 0 insertions, 0 deletions