diff --git a/inventory_provider/routes/lnetd.py b/inventory_provider/routes/lnetd.py index 8edd6d4a1a99d34e1dbd0ab85835dbdd8c0d0e7b..18b1d772628718370425b13c5bc082ae558715d9 100644 --- a/inventory_provider/routes/lnetd.py +++ b/inventory_provider/routes/lnetd.py @@ -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,