napalm-automation-community / napalm-hp-procurve Goto Github PK
View Code? Open in Web Editor NEWHP ProCurve Driver for NAPALM automation frontend
License: Apache License 2.0
HP ProCurve Driver for NAPALM automation frontend
License: Apache License 2.0
get_lldp_neighbors() and get_lldp_neighbors_detail() fails on JL070A HPE 2530-8-poe running YB.16.08.0001 with KeyError: ChassisId... immediate issue looks like truncation occurs and SNMP is attempted but ChassisId is not a valid key in the key_mib_table. Attempts to add {'ChassisId': 'LldpChassisId'} to the dict did not help.
driver = get_network_driver('procurve')
device = driver('192.168.1.60', '', 'manager', optional_args={'ssh_config_file': '~/.ssh/config', 'port': 22})
device.open()
vals = device.get_lldp_neighbors_detail()
device.close()
print(json.dumps(vals, sort_keys=True,
indent=4, separators=(',', ': ')))
Grabbing LLDP RESULTS
opened Device connection
Traceback (most recent call last):
File "hpcollector.py", line 14, in <module>
vals = device.get_lldp_neighbors()
File "C:\code\nac-discovery\venv\lib\site-packages\napalm_procurve\procurve.py", line 305, in get_lldp_neighbors
remote_port, device_id = self._get_lldp_neighbors_detail(
File "C:\code\nac-discovery\venv\lib\site-packages\napalm_procurve\procurve.py", line 372, in _get_lldp_neighbors_detail
tmp_lldp_details = self._lldp_detail_parser(interface)
File "C:\code\nac-discovery\venv\lib\site-packages\napalm_procurve\procurve.py", line 411, in _lldp_detail_parser
'{}.0.{}.1'.format(key_mib_table[key], ifs[interface]))
KeyError: 'ChassisId'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.