Skip to content

Commit

Permalink
don't print all lldp neighbors, it can cause blockingioerror when
Browse files Browse the repository at this point in the history
there's a lot of neighbors
  • Loading branch information
indy-independence committed Dec 5, 2024
1 parent 6d8e095 commit 6c3b298
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cnaas_nms/devicehandler/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from nornir.core.filter import F
from nornir.core.task import AggregatedResult
from nornir_napalm.plugins.tasks import napalm_get
from nornir_utils.plugins.functions import print_result

import cnaas_nms.devicehandler.nornir_helper
from cnaas_nms.db.device import Device, DeviceType
Expand Down Expand Up @@ -109,7 +108,6 @@ def get_neighbors(hostname: Optional[str] = None, group: Optional[str] = None) -
nr_filtered = nr

result = nr_filtered.run(task=napalm_get, getters=["lldp_neighbors"])
print_result(result)

return result

Expand Down

0 comments on commit 6c3b298

Please sign in to comment.