Skip to content

Commit 1800332

Browse files
committed
[chores] Fix neighbor information when mac address is not found
1 parent da39965 commit 1800332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netengine/backends/snmp/openwrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def neighbors(self):
513513
interface_num = neighbor[0][0].getOid()[10]
514514
interface = self.get(f'1.3.6.1.2.1.31.1.1.1.1.{interface_num}')[3][0][1]
515515
state = states_map[str(neighbor_states[index][0][1])]
516-
except (IndexError, TypeError):
516+
except (IndexError, TypeError, ValueError):
517517
continue
518518
result.append(
519519
self._dict(

0 commit comments

Comments
 (0)