Skip to content

Conversation

@Sidartha-CT
Copy link
Contributor

No description provided.

…hanges according to 5.5.2 build.

Signed-off-by: Sidartha-CT <[email protected]>
…_report.

-For the purpose of robo heatmap ,moved dewebgui code to above the generate_report.

Signed-off-by: Sidartha-CT <[email protected]>
Copy link
Collaborator

@memnochproxy memnochproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer you do this with f-strings, eg:

f'--es ssid "{cur_ssid}" '

Is there a reason you are using \" inside a single quote? Do the backslashes fix something that resulting command?

Copy link
Collaborator

@memnochproxy memnochproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not mix multiple string formatting methods. You have some " %s "%foo strings in there. Let's standardise on f-strings, please. You also have some "{}".format() calls, change those to f-strings too.

Copy link
Collaborator

@memnochproxy memnochproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address inline structural comments.
I think the lines in this file are getting rather long, too.
PEP8 requires line length of 79 chars.

…test

Verified CLI : python3 lf_interop_port_reset_test.py --host 192.168.207.78 --mgr_ip eth1 --dut AP --ssid "NETGEAR_2G_wpa2" --encryp psk2 --passwd Password@123 --reset 2 --time_int 5 --robot_test --coordinate 4,3  --robot_ip 192.168.200.169 --device_list ubuntu24

Signed-off-by: Sidartha-CT <[email protected]>
@Sidartha-CT
Copy link
Contributor Author

Sidartha-CT commented Jan 22, 2026

I would prefer you do this with f-strings, eg:

f'--es ssid "{cur_ssid}" '

Is there a reason you are using \" inside a single quote? Do the backslashes fix something that resulting command?

Hi Jed (@memnochproxy ) ,
Thanks for the inputs.
With the recent configuration changes added in the 5.5.2 build, we observed that Android configuration using the old CLI was failing. When we manually triggered the configuration via Batch Modify, we noticed in the lanforge_log that backslashes were being applied to the ssid and password arguments in the CLI also with additional auto_wifi flag.

To maintain consistency, we have implemented the same handling in our scripts that include Android configurations.

Please let me know if you have any concerns or if further changes are required.

@Sidartha-CT
Copy link
Contributor Author

Please address inline structural comments. I think the lines in this file are getting rather long, too. PEP8 requires line length of 79 chars.

Yes, Jed (@memnochproxy ). The inline comments were added by previous developers during the initial development of this script. To add robot-specific logic for the port reset with bit priority, I moved that block into a separate helper so it can be reused. That said, we will clean up the inline structural comments and ensure the file adheres to PEP8 standards, including the 79-character line length, in the future commits.
Thank you!

@memnochproxy memnochproxy merged commit 0a80604 into greearb:master Jan 28, 2026
2 checks passed
@memnochproxy
Copy link
Collaborator

I appreciate your willingness to correct and improve previous coders work. It may feel like busywork, however the effort really helps everyone 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants