dainok / netdoc

Automatic Network Documentation plugin for NetBox
GNU General Public License v3.0
89 stars 13 forks source link

Cisco IOS: Issue with ingesting IP addresses #56

Closed svestenik closed 1 year ago

svestenik commented 1 year ago

Hi, after latest upgrade from github, issue with ingesting IP addresses is popping up everywhere:

An exception occurred: TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/opt/netbox/netbox/extras/scripts.py", line 476, in _run_script
    script.output = script.run(data=data, commit=commit)
  File "/opt/netbox/netbox/scripts/NetDoc.py", line 290, in run
    log_ingest(log)
  File "/opt/netbox/venv/lib/python3.9/site-packages/netdoc/utils.py", line 505, in log_ingest
    module.ingest(log)
  File "/opt/netbox/venv/lib/python3.9/site-packages/netdoc/ingestors/netmiko_cisco_ios_show_ip_interface.py", line 26, in ingest
    f"{ipaddr}/{mask_list[index]}" for index, ipaddr in enumerate(ip_list)
TypeError: 'NoneType' object is not iterable

Log file attached: 20582.json.txt

Same issue affects several IOS platforms:

dainok commented 1 year ago

I reviewed all templates (except IOS and Comware), test 0.10.27. Let me know if you still have issues.