diff --git a/inventory_provider/db/opsdb.py b/inventory_provider/db/opsdb.py index 1c0b155cb31f3412157e47371a21b7b6e164611a..e569325fde730376ed61569216ca16ca24aec3c4 100644 --- a/inventory_provider/db/opsdb.py +++ b/inventory_provider/db/opsdb.py @@ -255,6 +255,7 @@ SELECT vcc.service_type, vcc.peering_type, vcc.status, + vcc.name, eq_a.name as equipment_name_a, eq_b.name as equipment_name_b, eqc_a.card_id as card_id_a, @@ -289,6 +290,7 @@ SELECT 'service_type': row['service_type'], 'peering_type': row['peering_type'], 'status': row['status'], + 'name': row['name'], 'a': { 'name': row['equipment_name_a'], 'card id': row['card_id_a'], diff --git a/test/test_opsdb_queries.py b/test/test_opsdb_queries.py index 9cbc752cb53fd0ca6ec0643c5bd43500f41a53e5..19f18e5e1b4cd7b70f17b70895ea6d332f93002f 100644 --- a/test/test_opsdb_queries.py +++ b/test/test_opsdb_queries.py @@ -75,6 +75,7 @@ CORIANT_PATH_METADATA = { 'service_type': {"type": "string"}, 'peering_type': {"type": "string"}, 'status': {"type": "string"}, + 'name': {"type": "string"}, 'a': {"$ref": "#/definitions/endpoint"}, 'b': {"$ref": "#/definitions/endpoint"} },