fixed the json decoder error : True -> true

Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
shivam
2022-03-02 11:47:09 +05:30
parent 7390e08392
commit bc0dda62f1
2 changed files with 9 additions and 4 deletions

View File

@@ -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')

View File

@@ -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