diff --git a/libs/controller/controller_2x/controller.py b/libs/controller/controller_2x/controller.py index a902a82e2..af019b3ac 100644 --- a/libs/controller/controller_2x/controller.py +++ b/libs/controller/controller_2x/controller.py @@ -493,7 +493,7 @@ class UProfileUtility: self.base_profile_config["radios"].append({ "band": "5G", "country": "US", - "allow-dfs":True, + "allow-dfs": True, # "channel-mode": "HE", "channel-width": 80, # "channel": "auto" @@ -648,7 +648,12 @@ if __name__ == '__main__': 'password': 'OpenWifi%123', } obj = Controller(controller_data=controller) - print(obj.get_device_by_serial_number(serial_number="903cb36ae224")) + up = UProfileUtility(sdk_client=obj, controller_data=controller) + up.set_mode(mode="BRIDGE") + up.set_radio_config() + up.add_ssid(ssid_data={"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something", "security": "psk2"}) + up.push_config(serial_number="3c2c99f44e77") + print(obj.get_device_by_serial_number(serial_number="3c2c99f44e77")) # print(datetime.datetime.utcnow()) # fms = FMSUtils(sdk_client=obj) # new = fms.get_firmwares(model='ecw5410') diff --git a/tests/fixtures_2x.py b/tests/fixtures_2x.py index 88ddd0c8c..0d301f9f2 100644 --- a/tests/fixtures_2x.py +++ b/tests/fixtures_2x.py @@ -625,8 +625,8 @@ class Fixtures_2x: # Apply config instantiate_profile_obj.push_config(serial_number=get_equipment_ref[0]) - - config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"')) + print(instantiate_profile_obj.base_profile_config) + config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true")) config["uuid"] = 0 # Attach the config that is sent from API