mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-21 04:44:37 +02:00
Merge pull request #41 from FoxxMD/master
Project updates for up-to-date usage
This commit is contained in:
commit
e4005112d7
@ -47,8 +47,9 @@ class NetBoxScanner(object):
|
|||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
||||||
except ValueError:
|
except ValueError as e:
|
||||||
logging.error(f'duplicated: {host[0]}/32')
|
logging.error(e)
|
||||||
|
logging.error(f'possibly duplicated: {host[0]}/32')
|
||||||
self.stats['errors'] += 1
|
self.stats['errors'] += 1
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
[NETBOX]
|
[NETBOX]
|
||||||
|
# format => http(s)://IP:PORT
|
||||||
address = <server>
|
address = <server>
|
||||||
token = <token>
|
token = <token>
|
||||||
logs = logs/
|
logs = logs/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user