diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-07-18 11:46:40 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-07-18 11:46:40 +0000 |
commit | ce72574ed5ff34acc9eaee8bde08792d6f265705 (patch) | |
tree | 74660b7284b429fea60367e767cd57b90d9cc6aa /src | |
parent | b2ffdb756f797787a639343bebb02e327e54483c (diff) | |
download | vyos-1x-ce72574ed5ff34acc9eaee8bde08792d6f265705.tar.gz vyos-1x-ce72574ed5ff34acc9eaee8bde08792d6f265705.zip |
T4497: ping: andd option to force ipv4 or ipv6 (-4 | -6)
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/ping.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py index 934cfdb52..f1d87a118 100755 --- a/src/op_mode/ping.py +++ b/src/op_mode/ping.py @@ -90,6 +90,16 @@ options = { 'type': '<seconds>', 'help': 'Number of seconds to wait between requests' }, + 'ipv4': { + 'ping': '{command} -4', + 'type': 'noarg', + 'help': 'Use IPv4 only' + }, + 'ipv6': { + 'ping': '{command} -6', + 'type': 'noarg', + 'help': 'Use IPv6 only' + }, 'mark': { 'ping': '{command} -m {value}', 'type': '<fwmark>', |