mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2026-01-02 18:55:03 +00:00
ap-ssh: Fix some ap query commands.
This commit is contained in:
@@ -96,6 +96,9 @@ def iwinfo_status(command_line_args):
|
||||
try:
|
||||
client = ssh_cli_connect(command_line_args)
|
||||
|
||||
jumphost_wlan_testing = command_line_args.ap_jumphost_wlan_testing
|
||||
jumphost_tty = command_line_args.ap_jumphost_tty
|
||||
|
||||
ap_cmd = "iwinfo | grep ESSID"
|
||||
if command_line_args.ap_jumphost_address != None:
|
||||
cmd = "cd %s/lanforge/lanforge-scripts/ && ./openwrt_ctl.py %s -t %s --action cmd --value \"%s\""%(jumphost_wlan_testing, owrt_args, jumphost_tty, ap_cmd)
|
||||
@@ -178,6 +181,9 @@ def get_vif_config(command_line_args):
|
||||
try:
|
||||
client = ssh_cli_connect(command_line_args)
|
||||
|
||||
jumphost_wlan_testing = command_line_args.ap_jumphost_wlan_testing
|
||||
jumphost_tty = command_line_args.ap_jumphost_tty
|
||||
|
||||
ap_cmd = "/usr/opensync/bin/ovsh s Wifi_VIF_Config -c | grep 'ssid :'"
|
||||
|
||||
if command_line_args.ap_jumphost_address != None:
|
||||
@@ -205,6 +211,9 @@ def get_vif_state(command_line_args):
|
||||
try:
|
||||
client = ssh_cli_connect(command_line_args)
|
||||
|
||||
jumphost_wlan_testing = command_line_args.ap_jumphost_wlan_testing
|
||||
jumphost_tty = command_line_args.ap_jumphost_tty
|
||||
|
||||
ap_cmd = "/usr/opensync/bin/ovsh s Wifi_VIF_State -c | grep 'ssid :'"
|
||||
|
||||
if command_line_args.ap_jumphost_address != None:
|
||||
|
||||
Reference in New Issue
Block a user