Skip to content

Commit 6172c5e

Browse files
authored
Added 100Ghz grid check
1 parent d746755 commit 6172c5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sonic-xcvrd/xcvrd/xcvrd.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,13 @@ def config_laser_frequency_validate(self, api, lport, freq, grid=75):
12051205
if chan % 3 != 0:
12061206
self.log_error("{} configured freq:{} GHz is NOT in 75GHz grid".format(lport, freq))
12071207
return False
1208+
elif grid == 100:
1209+
if (supported_grid >> 5) & 0x1 != 1:
1210+
self.log_error("{} 100GHz is not supported".format(lport))
1211+
return False
1212+
else:
1213+
self.log_error("{} {}GHz is not supported".format(lport, grid))
1214+
return False
12081215
return True
12091216

12101217
def configure_laser_frequency(self, api, lport, freq, grid=75):

0 commit comments

Comments
 (0)