Skip to content

lf_interop_zoom.py: fix stale upstream_port and host/client script paths - #313

Open
Narayana-CT wants to merge 2 commits into
greearb:masterfrom
goyalsaurabh06:zoom_path
Open

lf_interop_zoom.py: fix stale upstream_port and host/client script paths#313
Narayana-CT wants to merge 2 commits into
greearb:masterfrom
goyalsaurabh06:zoom_path

Conversation

@Narayana-CT

Copy link
Copy Markdown
Contributor

Sync zoom_automation.upstream_port with the resolved IP after change_port_to_ip() converts a LANforge port name (e.g. 1.1.eth1) to an IP. Previously only the local args.upstream_port variable was updated, so the Flask client on the host device kept using the raw port name and failing with NameResolutionError.

Also point the generated host/client commands at the deployed zoom.bat/ctzoom.bash locations via WINDOWS_ZOOM_DIR, LINUX_ZOOM_DIR, and MACOS_ZOOM_DIR instead of relying on scripts in the working directory.
Verified CLI: python3 lf_interop_zoom.py --duration 2 --lanforge_ip "192.168.244.97" --signin_email "demo@gmail.com" --signin_passwd 'demo' --participants 2 --audio --video --upstream_port 1.1.eth1 --api_stats_collection --env_file .env

Sync zoom_automation.upstream_port with the resolved IP after
change_port_to_ip() converts a LANforge port name (e.g. 1.1.eth1) to
an IP. Previously only the local args.upstream_port variable was
updated, so the Flask client on the host device kept using the raw
port name and failing with NameResolutionError.

Also point the generated host/client commands at the deployed
zoom.bat/ctzoom.bash locations via WINDOWS_ZOOM_DIR, LINUX_ZOOM_DIR,
and MACOS_ZOOM_DIR instead of relying on scripts in the working
directory.
Verified CLI: python3 lf_interop_zoom.py --duration 2  --lanforge_ip "192.168.244.97" --signin_email "demo@gmail.com" --signin_passwd 'demo' --participants 2 --audio --video --upstream_port 1.1.eth1 --api_stats_collection --env_file .env
Signed-off-by: Narayana-CT <narayana.pinapatruni@candelatech.com>
Allow overriding the zoom automation script deployment paths per OS
instead of relying on the hardcoded WINDOWS_ZOOM_DIR/LINUX_ZOOM_DIR/
MACOS_ZOOM_DIR constants.
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.

1 participant