mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-08-19 16:58:33 +02:00
Fix routers scannaing with tunnel peer 3
This commit is contained in:
parent
dce4458d7b
commit
335c139069
1 changed files with 7 additions and 1 deletions
|
@ -358,7 +358,13 @@ def scan_with_ip(*args, **kwargs):
|
||||||
device['update_availble']=is_availbe
|
device['update_availble']=is_availbe
|
||||||
device['upgrade_availble']=upgrade_availble
|
device['upgrade_availble']=upgrade_availble
|
||||||
device['current_firmware']=current
|
device['current_firmware']=current
|
||||||
device['mac']=result['interface']['mac-address'] if "mac-address" in result['interface'] else 'tunnel-'+result['software-id']
|
if 'software-id' in result:
|
||||||
|
unique_identifire=result['software-id']
|
||||||
|
elif 'system-id' in result:
|
||||||
|
unique_identifire=result['system-id']
|
||||||
|
else:
|
||||||
|
unique_identifire=ip
|
||||||
|
device['mac']=result['interface']['mac-address'] if "mac-address" in result['interface'] else 'tunnel-'+unique_identifire
|
||||||
device['name']=result['name']
|
device['name']=result['name']
|
||||||
if 'board-name' in result and 'mdoel' in result:
|
if 'board-name' in result and 'mdoel' in result:
|
||||||
device['details']=result['board-name'] + " " + result['model'] if result['model']!=result['board-name'] else result['model']
|
device['details']=result['board-name'] + " " + result['model'] if result['model']!=result['board-name'] else result['model']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue