Skip to content

Commit

Permalink
Remove restriction in older tracepath versions. #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jan 10, 2024
1 parent 28af316 commit c6b1f39
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pscheduler-tool-tracepath/tracepath/can-run
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,10 @@ except KeyError:

check_with_error('first-ttl', "Cannot control first TTL")

# TODO: source?

# Note that the version of tracepath in CentOS 6 (20071127) supports
# _only_ 31 hops. A -m switch supporting 1..255 hops was added to the
# sources on 2013-02-16 and appears to have been backported by Red Hat
# in an RHEL7 update.

try:
hops = spec['hops']
if hops != 31:
errors.append("Cannot set hop value to other than 31")
if hops > 255:
errors.append("Cannot set more than 255 hops")
except KeyError:
pass

Expand Down

0 comments on commit c6b1f39

Please sign in to comment.