From 3cbf1e35d06fe42b8e76c990b548b9a027eb3162 Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Tue, 14 Apr 2020 11:25:45 +0100 Subject: [PATCH] Continue work on PR #1148 --- napalm/ios/ios.py | 4 ++-- setup.cfg | 1 + ...timeout_2.txt => traceroute_8_8_8_8_ttl_255_timeout_2.txt} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename test/ios/mocked_data/test_traceroute/normal/{traceroute_8_8_8_8_ttl_0_255_timeout_2.txt => traceroute_8_8_8_8_ttl_255_timeout_2.txt} (100%) diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index 13c3d0502..e551203b5 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -3193,8 +3193,8 @@ def traceroute( if source: command += " source {}".format(source) if ttl: - if isinstance(ttl, int) and 0 <= timeout <= 255: - command += " ttl 0 {}".format(str(ttl)) + if isinstance(ttl, int) and 0 <= ttl <= 255: + command += " ttl {}".format(str(ttl)) if timeout: # Timeout should be an integer between 1 and 3600 if isinstance(timeout, int) and 1 <= timeout <= 3600: diff --git a/setup.cfg b/setup.cfg index d89616ddc..682dcc766 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,7 @@ norecursedirs = .git .tox .env + .venv dist build south_migraitons diff --git a/test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_0_255_timeout_2.txt b/test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_255_timeout_2.txt similarity index 100% rename from test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_0_255_timeout_2.txt rename to test/ios/mocked_data/test_traceroute/normal/traceroute_8_8_8_8_ttl_255_timeout_2.txt