Skip to content
Snippets Groups Projects
Commit 39151947 authored by Erik Reid's avatar Erik Reid
Browse files

exclude interfaces with no addresses (?)

parent 7584605e
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,9 @@ def _load_router_interfaces(hostname):
for ifc in juniper.list_interfaces(doc['value']):
if not ifc['description']:
continue
# seems we're only interested in interfaces with addresses?
if not ifc['ipv4'] and not ifc['ipv6']:
continue
yield {
'hostname': router,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment