Skip to content

Commit

Permalink
[LT] Not allow configuring link-training at RJ45 ports
Browse files Browse the repository at this point in the history
* Skip RJ-45 interfaces
  • Loading branch information
PJHsieh committed Jul 8, 2024
1 parent fb2e5cd commit db77a05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/portconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ class portconfig(object):
if self.is_lag:
raise Exception("Invalid port %s" % (port))

if self.is_rj45_port:
raise Exception("Setting RJ45 ports' link-training is not supported")

if self.verbose:
print("Setting link-training %s on port %s" % (mode, port))
lt_modes = ['on', 'off']
Expand Down

0 comments on commit db77a05

Please sign in to comment.