Skip to content

Commit 7ab2f5b

Browse files
author
Mike Heath
committed
Fix link speeds enum
It appears the documentation is in error when it says that link speed 4 is 10 Gbps. I have a TL-SG3210XHP-M2 with 8 2.5 Gbps ports and 2 10 Gbps SFP+ ports. The `switch_ports` CLI command reports the max speed of the 2.5 Gbps ports as 'SPEED_10_GBPS' and errors on the SFP+ ports saying that '5' is not a valid value for `LinkSpeed`. I also have a TL-SX3016F switch with 16 SFP+ 10 Gbps ports which fails. This commit fixes the issues with both switches.
1 parent 4c5005a commit 7ab2f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tplink_omada_client/definitions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class LinkSpeed(IntEnum):
9797
SPEED_10_MBPS = 1
9898
SPEED_100_MBPS = 2
9999
SPEED_1_GBPS = 3
100-
SPEED_10_GBPS = 4
100+
SPEED_2_5_GBPS = 4
101+
SPEED_10_GBPS = 5
101102

102103

103104
class LinkDuplex(IntEnum):

0 commit comments

Comments
 (0)