diff --git a/inventory_provider/db/opsdb.py b/inventory_provider/db/opsdb.py index 392f235962b121ad21e58514889925c74c46c9b1..092d34861c48b8c9c0df79d1b4946fa2ef4ecf07 100644 --- a/inventory_provider/db/opsdb.py +++ b/inventory_provider/db/opsdb.py @@ -129,7 +129,10 @@ retrieve_services_query = """SELECT * AND pp_b.port = cc.port_b WHERE c.status != 'terminated' AND is_circuit = 1) AS inner_query - WHERE circuit_type IN ('path', 'service', 'l2circuit') + WHERE + equipment IS NOT NULL + AND equipment != '' + AND circuit_type IN ('path', 'service', 'l2circuit') ORDER BY name, FIELD(status,