device.py crashes for some NX-OS gear, for example Nexus 9k NX-OS 7.x
For some reason the ifindex within the ifStackStatus doesn't exist for this OS. I set up a try/except and it will prevent the code from crashing, but might not be the best choice. Before I PR I thought it best to discuss here first:
device.py crashes for some NX-OS gear, for example Nexus 9k NX-OS 7.x
For some reason the ifindex within the ifStackStatus doesn't exist for this OS. I set up a try/except and it will prevent the code from crashing, but might not be the best choice. Before I PR I thought it best to discuss here first:
At row 250 -- Original code
Code suggestion
Note: Note, I think it'd be best to remove the log_message from my test code before doing the PR... it does fill the logfile... here's a small subset: