From db77a05babdd0de30fba472a923e35ac27feb447 Mon Sep 17 00:00:00 2001 From: PJHsieh <49477291+PJHsieh@users.noreply.github.com> Date: Mon, 8 Jul 2024 07:10:03 +0000 Subject: [PATCH] [LT] Not allow configuring link-training at RJ45 ports * Skip RJ-45 interfaces --- scripts/portconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/portconfig b/scripts/portconfig index acdebcc236..cd413a125a 100755 --- a/scripts/portconfig +++ b/scripts/portconfig @@ -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']