Skip to content

Commit 2b7a35b

Browse files
authored
Updated xcvrd.py with proper return enum values
1 parent 1ebfe1d commit 2b7a35b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sonic-xcvrd/xcvrd/xcvrd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,10 +1193,10 @@ def config_laser_frequency_validate(self, api, lport, freq, grid=75):
11931193
supported_grid, _, _, lowf, highf = api.get_supported_freq_config()
11941194
if freq < lowf:
11951195
self.log_error("{} configured freq:{} GHz is lower than the supported freq:{} GHz".format(lport, freq, lowf))
1196-
return false
1196+
return False
11971197
if freq > highf:
11981198
self.log_error("{} configured freq:{} GHz is higher than the supported freq:{} GHz".format(lport, freq, highf))
1199-
return false
1199+
return False
12001200
if grid == 75:
12011201
if (supported_grid >> 7) & 0x1 != 1:
12021202
self.log_error("{} 75GHz is not supported".format(lport))
@@ -1209,9 +1209,9 @@ def config_laser_frequency_validate(self, api, lport, freq, grid=75):
12091209
if (supported_grid >> 5) & 0x1 != 1:
12101210
self.log_error("{} 100GHz is not supported".format(lport))
12111211
return False
1212-
else:
1213-
self.log_error("{} {}GHz is not supported".format(lport, grid))
1214-
return False
1212+
else:
1213+
self.log_error("{} {}GHz is not supported".format(lport, grid))
1214+
return False
12151215
return True
12161216

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

0 commit comments

Comments
 (0)