@@ -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
0 commit comments