summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorCheeze-It <16260577+Cheeze-It@users.noreply.github.com>2021-06-17 22:04:23 -0600
committerGitHub <noreply@github.com>2021-06-18 06:04:23 +0200
commitc9dbc42bab13d70d22ca55794e4b89cac53adc86 (patch)
tree4eb6717193f4a3b49a3ec57a821e517d2d5ce2c3 /src/op_mode
parent635eed0452f15b18b8125e831b48582fa093c125 (diff)
downloadvyos-1x-c9dbc42bab13d70d22ca55794e4b89cac53adc86.tar.gz
vyos-1x-c9dbc42bab13d70d22ca55794e4b89cac53adc86.zip
ping: T3634: Adding do not fragment to Ping (#885)
In this commit we add the do not fragment capability for ping commands. Co-authored-by: Cheeze_It <none@none.com>
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/ping.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py
index 29b430d53..924a889db 100755
--- a/src/op_mode/ping.py
+++ b/src/op_mode/ping.py
@@ -50,6 +50,11 @@ options = {
'type': '<seconds>',
'help': 'Number of seconds before ping exits'
},
+ 'do-not-fragment': {
+ 'ping': '{command} -M dont',
+ 'type': 'noarg',
+ 'help': 'Set DF-bit flag to 1 for no fragmentation'
+ },
'flood': {
'ping': 'sudo {command} -f',
'type': 'noarg',
@@ -227,4 +232,4 @@ if __name__ == '__main__':
# print(f'{command} {host}')
os.system(f'{command} {host}')
-
+ \ No newline at end of file