From b1716ab0ec7ea228f00a688e424d1a4ff311751d Mon Sep 17 00:00:00 2001 From: Renusree-ct Date: Mon, 20 Apr 2026 17:42:50 +0530 Subject: [PATCH] py-json/interop_connectivity.py : Update phantom flag handling from interop data to support both boolean and string values VERIFIED CLI : python3 lf_interop_port_reset_test.py --host 192.168.207.75 --mgr_ip eth1 --dut AP --ssid "NETGEAR_2G_wpa2" --encryp psk2 --passwd Password@123 --reset 1 --time_int 5 --release 11 12 13 14 15 --device_list 3200f8664a91a5e9,33264c48 Signed-off-by: Renusree-ct --- py-json/interop_connectivity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-json/interop_connectivity.py b/py-json/interop_connectivity.py index 35cd5ff20..9040f6ae7 100755 --- a/py-json/interop_connectivity.py +++ b/py-json/interop_connectivity.py @@ -400,7 +400,7 @@ def get_devices(self): name = interop_tab_data['name'] - if (interop_tab_data['phantom']): + if (str(interop_tab_data['phantom']).lower() == "true"): logger.warning( '{} is in phantom state. Please make sure debugging is enabled in developer settings.'.format(name)) @@ -420,7 +420,7 @@ def get_devices(self): else: for device_data in interop_tab_data: for name, data in device_data.items(): - if (data['phantom']): + if (str(data['phantom']).lower() == "true"): logger.warning( '{} is in phantom state. Please make sure debugging is enabled in developer settings.'.format( name))