Skip to content

Commit 8dac755

Browse files
committed
Revert white space fixes
1 parent 1b4fbe9 commit 8dac755

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

sonic_platform_base/sonic_xcvr/api/public/cmis.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def _update_vdm_dict(self, dict_to_update, new_key, vdm_raw_dict, vdm_observable
118118
def freeze_vdm_stats(self):
119119
'''
120120
This function freeze all the vdm statistics reporting registers.
121-
When raised by the host, causes the module to freeze and hold all
122-
reported statistics reporting registers (minimum, maximum and
121+
When raised by the host, causes the module to freeze and hold all
122+
reported statistics reporting registers (minimum, maximum and
123123
average values)in Pages 24h-27h.
124124
125125
Returns True if the provision succeeds and False incase of failure.
@@ -137,9 +137,9 @@ def get_vdm_freeze_status(self):
137137
def unfreeze_vdm_stats(self):
138138
'''
139139
This function unfreeze all the vdm statistics reporting registers.
140-
When freeze is ceased by the host, releases the freeze request, allowing the
140+
When freeze is ceased by the host, releases the freeze request, allowing the
141141
reported minimum, maximum and average values to update again.
142-
142+
143143
Returns True if the provision succeeds and False incase of failure.
144144
'''
145145
return self.xcvr_eeprom.write(consts.VDM_CONTROL, VDM_UNFREEZE)
@@ -335,7 +335,7 @@ def get_transceiver_info_firmware_versions(self):
335335
( _, _, _, _, _, _, _, _, ActiveFirmware, InactiveFirmware) = result['result']
336336
except (ValueError, TypeError):
337337
return return_dict
338-
338+
339339
return_dict["active_firmware"] = ActiveFirmware
340340
return_dict["inactive_firmware"] = InactiveFirmware
341341
return return_dict
@@ -997,10 +997,10 @@ def get_media_lane_count(self, appl=1):
997997
'''
998998
if self.is_flat_memory():
999999
return 0
1000-
1000+
10011001
if (appl <= 0):
10021002
return 0
1003-
1003+
10041004
appl_advt = self.get_application_advertisement()
10051005
return appl_advt[appl]['media_lane_count'] if len(appl_advt) >= appl else 0
10061006

@@ -1029,10 +1029,10 @@ def get_media_lane_assignment_option(self, appl=1):
10291029
'''
10301030
if self.is_flat_memory():
10311031
return 'N/A'
1032-
1032+
10331033
if (appl <= 0):
10341034
return 0
1035-
1035+
10361036
appl_advt = self.get_application_advertisement()
10371037
return appl_advt[appl]['media_lane_assignment_options'] if len(appl_advt) >= appl else 0
10381038

@@ -2469,7 +2469,7 @@ def get_transceiver_vdm_real_value(self):
24692469
biasyq{lane_num} = FLOAT ; modulator bias yq in percentage
24702470
biasyp{lane_num} = FLOAT ; modulator bias yq in percentage
24712471
cdshort{lane_num} = FLOAT ; chromatic dispersion, high granularity, short link in ps/nm
2472-
cdlong{lane_num} = FLOAT ; chromatic dispersion, high granularity, long link in ps/nm
2472+
cdlong{lane_num} = FLOAT ; chromatic dispersion, high granularity, long link in ps/nm
24732473
dgd{lane_num} = FLOAT ; differential group delay in ps
24742474
sopmd{lane_num} = FLOAT ; second order polarization mode dispersion in ps^2
24752475
soproc{lane_num} = FLOAT ; state of polarization rate of change in krad/s
@@ -2498,7 +2498,7 @@ def get_transceiver_vdm_thresholds(self):
24982498
Returns:
24992499
A dict containing the following keys/values :
25002500
========================================================================
2501-
xxx refers to HALARM/LALARM/HWARN/LWARN threshold
2501+
xxx refers to HALARM/LALARM/HWARN/LWARN threshold
25022502
;Defines Transceiver VDM high/low alarm/warning threshold for a port
25032503
key = TRANSCEIVER_VDM_XXX_THRESHOLD|ifname ; information module VDM high/low alarm/warning threshold on port
25042504
; field = value
@@ -2819,7 +2819,7 @@ def decommission_all_datapaths(self):
28192819
name = "DP{}State".format(lane + 1)
28202820
if dp_state[name] != 'DataPathDeactivated':
28212821
return False
2822-
2822+
28232823
name = "ConfigStatusLane{}".format(lane + 1)
28242824
if config_state[name] != 'ConfigSuccess':
28252825
return False

tests/sonic_xcvr/test_cmis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ def test_set_application(self):
29492949
'ConfigStatusLane5': 'ConfigSuccess',
29502950
'ConfigStatusLane6': 'ConfigSuccess',
29512951
'ConfigStatusLane7': 'ConfigSuccess',
2952-
'ConfigStatusLane8': 'ConfigSuccess'
2952+
'ConfigStatusLane8': 'ConfigSuccess'
29532953
} )
29542954
])
29552955
def test_decommission_all_datapaths(self, datapath_state, config_state):
@@ -3091,7 +3091,7 @@ def test_get_error_description(self):
30913091

30923092
result = self.api.get_error_description()
30933093
assert result is 'OK'
3094-
3094+
30953095
self.api.get_config_datapath_hostlane_status.return_value = {
30963096
'ConfigStatusLane1': 'ConfigRejected',
30973097
'ConfigStatusLane2': 'ConfigRejected',
@@ -3104,7 +3104,7 @@ def test_get_error_description(self):
31043104
}
31053105
result = self.api.get_error_description()
31063106
assert result is 'ConfigRejected'
3107-
3107+
31083108
self.api.get_datapath_state.return_value = {
31093109
'DP1State': 'DataPathDeactivated',
31103110
'DP2State': 'DataPathActivated',

0 commit comments

Comments
 (0)