Router details

This commit is contained in:
Eduardo Silva 2024-03-28 13:13:44 -03:00
parent 7d2cd9a7dd
commit c5ec5c0944
8 changed files with 234 additions and 11 deletions

View file

@ -38,7 +38,6 @@ def test_ssh_authentication(router_type, address, username, password, sshkey=Non
else:
result = False, 'Device is not MikroTik'
elif router_type == 'openwrt':
# Comando para verificar OpenWRT
stdin, stdout, stderr = ssh.exec_command('ubus call system board')
output = stdout.read().decode()
if 'OpenWrt' in output: