mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-21 12:54:39 +02:00
bugfixes
This commit is contained in:
parent
5c97c3dfdd
commit
7ba9116d3e
@ -12,7 +12,7 @@ NETBOX = {
|
|||||||
|
|
||||||
DEVICE_AUTH = {
|
DEVICE_AUTH = {
|
||||||
'CISCO': {
|
'CISCO': {
|
||||||
'USER': '',
|
'USER': 'netbox',
|
||||||
'PASSWORD': '',
|
'PASSWORD': '',
|
||||||
'COMMAND': 'show run | inc hostname'
|
'COMMAND': 'show run | inc hostname'
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@ class NetBoxScanner(object):
|
|||||||
return '{}: {}'.format(vendor.lower(),
|
return '{}: {}'.format(vendor.lower(),
|
||||||
re.search(r'hostname ([A-Z|a-z|0-9|\-|_]+)',
|
re.search(r'hostname ([A-Z|a-z|0-9|\-|_]+)',
|
||||||
str(stdout.read().decode('utf-8'))).group(1))
|
str(stdout.read().decode('utf-8'))).group(1))
|
||||||
except (AuthenticationException, SSHException, NoValidConnectionsError):
|
except (AuthenticationException, SSHException,
|
||||||
|
NoValidConnectionsError, TimeoutError):
|
||||||
pass
|
pass
|
||||||
return '{}.{}.{}'.format(c.get_vendor()[0], c.get_product()[0],
|
return '{}.{}.{}'.format(c.get_vendor()[0], c.get_product()[0],
|
||||||
c.get_version()[0])
|
c.get_version()[0])
|
||||||
|
@ -1,8 +1,16 @@
|
|||||||
|
asn1crypto==0.24.0
|
||||||
|
bcrypt==3.1.4
|
||||||
certifi==2018.8.24
|
certifi==2018.8.24
|
||||||
|
cffi==1.11.5
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
cpe==1.2.1
|
cpe==1.2.1
|
||||||
|
cryptography==2.3.1
|
||||||
idna==2.7
|
idna==2.7
|
||||||
netaddr==0.7.19
|
netaddr==0.7.19
|
||||||
|
paramiko==2.4.2
|
||||||
|
pyasn1==0.4.4
|
||||||
|
pycparser==2.19
|
||||||
|
PyNaCl==1.3.0
|
||||||
pynetbox==3.4.6
|
pynetbox==3.4.6
|
||||||
python-nmap==0.6.1
|
python-nmap==0.6.1
|
||||||
requests==2.19.1
|
requests==2.19.1
|
||||||
|
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ with open('README.md', 'r') as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='netbox-scanner',
|
name='netbox-scanner',
|
||||||
version='0.4.0',
|
version='0.4.1',
|
||||||
author='José Lopes de Oliveira Jr.',
|
author='José Lopes de Oliveira Jr.',
|
||||||
author_email='jlojunior@gmail.com',
|
author_email='jlojunior@gmail.com',
|
||||||
description='A scanner util for NetBox',
|
description='A scanner util for NetBox',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user