mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-08-29 06:08:19 +02:00
fix adding router if router peer connection is tunnel
This commit is contained in:
parent
60c4f1870f
commit
1fe9637f50
2 changed files with 7 additions and 3 deletions
|
@ -18,7 +18,7 @@ from libs.db.db_device import Devices,EXCLUDED,database
|
|||
import ipaddress
|
||||
import socket
|
||||
from libs.check_routeros.routeros_check.resource import RouterOSCheckResource
|
||||
from typing import Dict
|
||||
from typing import Dict
|
||||
import json
|
||||
import datetime
|
||||
|
||||
|
@ -344,7 +344,7 @@ def scan_with_ip(*args, **kwargs):
|
|||
device['update_availble']=is_availbe
|
||||
device['upgrade_availble']=upgrade_availble
|
||||
device['current_firmware']=current
|
||||
device['mac']=result['interface']['mac-address']
|
||||
device['mac']=result['interface']['mac-address'] if "mac-address" in result['interface'] else 'tunnel'
|
||||
device['name']=result['name']
|
||||
device['details']=result['board-name'] + " " + result['model'] if result['model']!=result['board-name'] else result['model']
|
||||
device['uptime']=result['uptime']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue