mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
fixed the json decoder error : True -> true
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user