mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-06 11:15:15 +02:00
Router details
This commit is contained in:
parent
7d2cd9a7dd
commit
c5ec5c0944
8 changed files with 234 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue