mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 20:38:05 +00:00
fixed the json decoder error : True -> true
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -648,7 +648,12 @@ if __name__ == '__main__':
|
|||||||
'password': 'OpenWifi%123',
|
'password': 'OpenWifi%123',
|
||||||
}
|
}
|
||||||
obj = Controller(controller_data=controller)
|
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())
|
# print(datetime.datetime.utcnow())
|
||||||
# fms = FMSUtils(sdk_client=obj)
|
# fms = FMSUtils(sdk_client=obj)
|
||||||
# new = fms.get_firmwares(model='ecw5410')
|
# new = fms.get_firmwares(model='ecw5410')
|
||||||
|
|||||||
@@ -625,8 +625,8 @@ class Fixtures_2x:
|
|||||||
|
|
||||||
# Apply config
|
# Apply config
|
||||||
instantiate_profile_obj.push_config(serial_number=get_equipment_ref[0])
|
instantiate_profile_obj.push_config(serial_number=get_equipment_ref[0])
|
||||||
|
print(instantiate_profile_obj.base_profile_config)
|
||||||
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"'))
|
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true"))
|
||||||
config["uuid"] = 0
|
config["uuid"] = 0
|
||||||
|
|
||||||
# Attach the config that is sent from API
|
# Attach the config that is sent from API
|
||||||
|
|||||||
Reference in New Issue
Block a user