Skip to content

Commit 0d81848

Browse files
committed
Add comments to explain the types
Signed-off-by: Stephen Sun <[email protected]>
1 parent ccf706b commit 0d81848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonic_platform_base/sfp_base.py

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class SfpBase(device_base.DeviceBase):
5252
SFP_ERROR_BIT_BAD_CABLE: SFP_ERROR_DESCRIPTION_BAD_CABLE
5353
}
5454

55+
# Port types that are used by the chassis API ChassisBase.get_port_or_cage_type()
56+
# It's possible that multiple types are supported on one port.
57+
# In that case, the result will be logical OR of all the supported types
58+
# Check example in ChassisBase.get_port_or_cage_type()
5559
SFP_PORT_TYPE_BIT_RJ45 = 0x00000001
5660
SFP_PORT_TYPE_BIT_SFP = 0x00000002
5761
SFP_PORT_TYPE_BIT_XFP = 0x00000004

0 commit comments

Comments
 (0)