From ce72574ed5ff34acc9eaee8bde08792d6f265705 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 18 Jul 2023 11:46:40 +0000 Subject: T4497: ping: andd option to force ipv4 or ipv6 (-4 | -6) --- src/op_mode/ping.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/op_mode') 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': '', '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': '', -- cgit v1.2.3