mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	cc_module_9800_3504.py : autopep8
cc_module_test.py : autopep8 Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		
				
					committed by
					
						
						shivam
					
				
			
			
				
	
			
			
			
						parent
						
							00c3a53af1
						
					
				
				
					commit
					f6a27cfee6
				
			@@ -276,7 +276,7 @@ class create_controller_series_object:
 | 
				
			|||||||
                             "manual", "auto",
 | 
					                             "manual", "auto",
 | 
				
			||||||
                             "enable_network_dual_band_6ghz", "enable_network_dual_band_5ghz", "enable_network_6ghz", "enable_network_5ghz", "enable_network_24ghz",
 | 
					                             "enable_network_dual_band_6ghz", "enable_network_dual_band_5ghz", "enable_network_6ghz", "enable_network_5ghz", "enable_network_24ghz",
 | 
				
			||||||
                             "enable_operation_status", "11r_logs", "enable_ft_akm_ftpsk", "enable_ftotd_akm_ftpsk",
 | 
					                             "enable_operation_status", "11r_logs", "enable_ft_akm_ftpsk", "enable_ftotd_akm_ftpsk",
 | 
				
			||||||
                             "config_dual_band_mode","dual_band_no_mode_shutdown","dual_band_mode_shutdown"]:
 | 
					                             "config_dual_band_mode", "dual_band_no_mode_shutdown", "dual_band_mode_shutdown"]:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            self.command_extend = ["--action", self.action]
 | 
					            self.command_extend = ["--action", self.action]
 | 
				
			||||||
            self.command.extend(self.command_extend)
 | 
					            self.command.extend(self.command_extend)
 | 
				
			||||||
@@ -439,7 +439,7 @@ class create_controller_series_object:
 | 
				
			|||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # TODO clean up action advanced to ap_dot11_summary 
 | 
					    # TODO clean up action advanced to ap_dot11_summary
 | 
				
			||||||
    def show_ap_dot11_dual_band_6gz_summary(self):
 | 
					    def show_ap_dot11_dual_band_6gz_summary(self):
 | 
				
			||||||
        logger.info("show ap dot11 dual-band 6gz summary")
 | 
					        logger.info("show ap dot11 dual-band 6gz summary")
 | 
				
			||||||
        self.band = 'dual_band_6g'
 | 
					        self.band = 'dual_band_6g'
 | 
				
			||||||
@@ -930,7 +930,7 @@ class create_controller_series_object:
 | 
				
			|||||||
        self.band = 'dual_band_6g'
 | 
					        self.band = 'dual_band_6g'
 | 
				
			||||||
        self.action = 'dual_band_mode_shutdown'
 | 
					        self.action = 'dual_band_mode_shutdown'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band shutdown slot {slot} band 6ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band shutdown slot {slot} band 6ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # dual-band mode shut down 5ghz
 | 
					    # dual-band mode shut down 5ghz
 | 
				
			||||||
@@ -938,7 +938,7 @@ class create_controller_series_object:
 | 
				
			|||||||
        self.band = 'dual_band_5g'
 | 
					        self.band = 'dual_band_5g'
 | 
				
			||||||
        self.action = 'dual_band_mode_shutdown'
 | 
					        self.action = 'dual_band_mode_shutdown'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band shutdown slot {slot} band 6ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band shutdown slot {slot} band 6ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # dual-band mode shut down 6ghz
 | 
					    # dual-band mode shut down 6ghz
 | 
				
			||||||
@@ -946,23 +946,23 @@ class create_controller_series_object:
 | 
				
			|||||||
        self.band = 'dual_band_6g'
 | 
					        self.band = 'dual_band_6g'
 | 
				
			||||||
        self.action = 'dual_band_no_mode_shutdown'
 | 
					        self.action = 'dual_band_no_mode_shutdown'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band no mode shutdown slot {slot} band 6ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band no mode shutdown slot {slot} band 6ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # dual-band mode shut down 5ghz
 | 
					    # dual-band mode shut down 5ghz
 | 
				
			||||||
    def ap_dot11_dual_band_mode_shutdown_5ghz(self):
 | 
					    def ap_dot11_dual_band_no_mode_shutdown_5ghz(self):
 | 
				
			||||||
        self.band = 'dual_band_5g'
 | 
					        self.band = 'dual_band_5g'
 | 
				
			||||||
        self.action = 'dual_band_no_mode_shutdown'
 | 
					        self.action = 'dual_band_no_mode_shutdown'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band no mode shutdown slot {slot} band 6ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band no mode shutdown slot {slot} band 6ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
            
 | 
					
 | 
				
			||||||
    # dual-band change radio roll 6ghz
 | 
					    # dual-band change radio roll 6ghz
 | 
				
			||||||
    def config_ap_dot11_dual_band_to_6ghz(self):
 | 
					    def config_ap_dot11_dual_band_to_6ghz(self):
 | 
				
			||||||
        self.band = 'dual_band_6g'
 | 
					        self.band = 'dual_band_6g'
 | 
				
			||||||
        self.action = 'config_dual_band_mode'
 | 
					        self.action = 'config_dual_band_mode'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band slot {slot} band 6ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band slot {slot} band 6ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # dual-band change radio roll 5ghz
 | 
					    # dual-band change radio roll 5ghz
 | 
				
			||||||
@@ -970,7 +970,7 @@ class create_controller_series_object:
 | 
				
			|||||||
        self.band = 'dual_band_5g'
 | 
					        self.band = 'dual_band_5g'
 | 
				
			||||||
        self.action = 'config_dual_band_mode'
 | 
					        self.action = 'config_dual_band_mode'
 | 
				
			||||||
        summary = self.send_command()
 | 
					        summary = self.send_command()
 | 
				
			||||||
        logger.info("ap name {ap} dot11 dual-band slot {slot} band 5ghz {band}".format(ap=self.ap,band=self.band,slot=self.ap_band_slot))
 | 
					        logger.info("ap name {ap} dot11 dual-band slot {slot} band 5ghz {band}".format(ap=self.ap, band=self.band, slot=self.ap_band_slot))
 | 
				
			||||||
        return summary
 | 
					        return summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # enable ap dual band 6ghz
 | 
					    # enable ap dual band 6ghz
 | 
				
			||||||
@@ -1110,7 +1110,7 @@ INCLUDE_IN_README
 | 
				
			|||||||
    parser.add_argument("--timeout", type=str, help="timeout value", default=3)
 | 
					    parser.add_argument("--timeout", type=str, help="timeout value", default=3)
 | 
				
			||||||
    parser.add_argument("--lf_logger_config_json", help="[debug configuration] --lf_logger_config_json <json file> , json configuration of logger")
 | 
					    parser.add_argument("--lf_logger_config_json", help="[debug configuration] --lf_logger_config_json <json file> , json configuration of logger")
 | 
				
			||||||
    parser.add_argument("--debug", help='--debug flag present debug on  enable debugging', action='store_true')
 | 
					    parser.add_argument("--debug", help='--debug flag present debug on  enable debugging', action='store_true')
 | 
				
			||||||
    parser.add_argument('--log_level', default=None, help='--log_level <level>', choices=['debug', 'info', 'warning', 'error','critical'])
 | 
					    parser.add_argument('--log_level', default=None, help='--log_level <level>', choices=['debug', 'info', 'warning', 'error', 'critical'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    args = parser.parse_args()
 | 
					    args = parser.parse_args()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -109,7 +109,7 @@ class create_module_test_object:
 | 
				
			|||||||
        # bandwidth (to set to 20 if channel change does not support)
 | 
					        # bandwidth (to set to 20 if channel change does not support)
 | 
				
			||||||
        # self.cs.config_dot11_5ghz_channel_width()
 | 
					        # self.cs.config_dot11_5ghz_channel_width()
 | 
				
			||||||
        self.cs.channel = '33'
 | 
					        self.cs.channel = '33'
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
        # channel
 | 
					        # channel
 | 
				
			||||||
        self.cs.config_dot11_6ghz_channel()
 | 
					        self.cs.config_dot11_6ghz_channel()
 | 
				
			||||||
        # self.cs.config_dot11_5ghz_channel()
 | 
					        # self.cs.config_dot11_5ghz_channel()
 | 
				
			||||||
@@ -641,7 +641,6 @@ class create_module_test_object:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # tb2
 | 
					    # tb2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    def test_config_tx_power_5g_open_tb2_AP3(self):
 | 
					    def test_config_tx_power_5g_open_tb2_AP3(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        logger.info("test_config_tx_power_open")
 | 
					        logger.info("test_config_tx_power_open")
 | 
				
			||||||
@@ -798,7 +797,6 @@ class create_module_test_object:
 | 
				
			|||||||
        # show_wlan_summary
 | 
					        # show_wlan_summary
 | 
				
			||||||
        self.cs.show_wlan_summary()
 | 
					        self.cs.show_wlan_summary()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    def test_config_tx_power_6g_wpa3_AP4(self):
 | 
					    def test_config_tx_power_6g_wpa3_AP4(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        logger.info("sample_test_tx_power_sequence for 6G AP3 on AP")
 | 
					        logger.info("sample_test_tx_power_sequence for 6G AP3 on AP")
 | 
				
			||||||
@@ -884,9 +882,8 @@ class create_module_test_object:
 | 
				
			|||||||
        # show_wlan_summary
 | 
					        # show_wlan_summary
 | 
				
			||||||
        self.cs.show_wlan_summary()
 | 
					        self.cs.show_wlan_summary()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # Used before testbed change
 | 
					    # Used before testbed change
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_config_tx_power_wpa2_IDIC(self):
 | 
					    def test_config_tx_power_wpa2_IDIC(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        logger.info("sample_test_tx_power_sequence")
 | 
					        logger.info("sample_test_tx_power_sequence")
 | 
				
			||||||
@@ -1048,7 +1045,6 @@ INCLUDE_IN_README
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    mt.test_config_tx_power_6g_wpa3_AP4()
 | 
					    mt.test_config_tx_power_6g_wpa3_AP4()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    # mt.test_config_tx_power_6g_wpa3_attempt2()
 | 
					    # mt.test_config_tx_power_6g_wpa3_attempt2()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # cc.show_ap_summary()
 | 
					    # cc.show_ap_summary()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user