From 190e79c0733571b096fe96a0ccf805d9bf0b3ac6 Mon Sep 17 00:00:00 2001 From: Matthias Gabriel Date: Thu, 12 Nov 2020 07:36:25 +0100 Subject: [PATCH 1/2] Set minimum ttl to zero to fix issue #1320 --- napalm/ios/ios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index 9f261407f..c48d155cf 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -3284,7 +3284,7 @@ def traceroute( command += " source {}".format(source) if ttl: if isinstance(ttl, int) and 0 <= ttl <= 255: - command += " ttl {}".format(str(ttl)) + command += " ttl 0 {}".format(str(ttl)) if timeout: # Timeout should be an integer between 1 and 3600 if isinstance(timeout, int) and 1 <= timeout <= 3600: From ffe14d09ad3e067efcdbc14da6fc89623fe7e6fb Mon Sep 17 00:00:00 2001 From: Matthias Gabriel Date: Fri, 13 Nov 2020 16:10:55 +0100 Subject: [PATCH 2/2] change testfile to include minttl --- ...5_timeout_2.txt => traceroute_8_8_8_8_ttl_0_255_timeout_2.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/ios/mocked_data/test_traceroute/normal/{traceroute_8_8_8_8_ttl_255_timeout_2.txt => traceroute_8_8_8_8_ttl_0_255_timeout_2.txt} (100%) mode change 100755 => 100644 diff --git a/test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_255_timeout_2.txt b/test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_0_255_timeout_2.txt old mode 100755 new mode 100644 similarity index 100% rename from test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_255_timeout_2.txt rename to test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_0_255_timeout_2.txt