You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the issue:
Run show lldp table or show lldp neighbors from SSH command, like
ssh admin@10.64.247.224 "show lldp table"
the input device is not a TTY
ssh admin@10.64.247.224 "show lldp neighbors"
the input device is not a TTY
I guess the reason for this issue is in get_info method in /usr/bin/lldpshow .
IMO, we should replace the -it in docker exec with -i, because there is no need for a pseudo-TTY when running in command line.
def get_info(self, lldp_detail_info, lldp_port):
"""
use 'lldpctl' command to gather local lldp detailed information
"""
for lldp_instace_num in range(len(self.lldp_instance)):
lldp_interface_list = lldp_port if lldp_port is not None else self.lldp_interface[lldp_instace_num]
# In detail mode we will pass interface list (only front ports) and get O/P as plain text
# and in table format we will get xml output
lldp_cmd = 'sudo docker exec -it lldp{} lldpctl '.format(self.lldp_instance[lldp_instace_num]) + ('-f xml' if not lldp_detail_info else lldp_interface_list)
p = subprocess.Popen(lldp_cmd, stdout=subprocess.PIPE, shell=True)
(output, err) = p.communicate()
......
Describe the results you received:
The show lldp table or show lldp neighbors return error message when runing in a SSH command:
the input device is not a TTY
But it works fine when we login to the DUT with the same account, and run the same command.
Since our test scripts connect DUT with SSH and retrive result from stdout, test cases using show lldp table or show lldp neighbors will fail.
Describe the results you expected:
The correct result including lldp table or neighbors is expected.
Additional information you deem important (e.g. issue happens only occasionally):
This issue is found in 20191130.40, 20191130.43, 20191130.45, but not found in 20181130.
The text was updated successfully, but these errors were encountered:
bingwang-ms
changed the title
[show lldp cli] shpw lldp table/neighbors return 'the input device is not a TTY'
[show lldp cli] show lldp table/neighbors return 'the input device is not a TTY'
Aug 24, 2020
Description
Steps to reproduce the issue:
Run show lldp table or show lldp neighbors from SSH command, like
I guess the reason for this issue is in get_info method in /usr/bin/lldpshow .
IMO, we should replace the -it in docker exec with -i, because there is no need for a pseudo-TTY when running in command line.
Describe the results you received:
The show lldp table or show lldp neighbors return error message when runing in a SSH command:
But it works fine when we login to the DUT with the same account, and run the same command.
Since our test scripts connect DUT with SSH and retrive result from stdout, test cases using show lldp table or show lldp neighbors will fail.
Describe the results you expected:
The correct result including lldp table or neighbors is expected.
Additional information you deem important (e.g. issue happens only occasionally):
This issue is found in 20191130.40, 20191130.43, 20191130.45, but not found in 20181130.
The text was updated successfully, but these errors were encountered: