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

added service status and name to poller response

parent 8ba29404
No related branches found
No related tags found
No related merge requests found
......@@ -68,9 +68,12 @@ def poller_interface_oids(hostname):
'opsdb:interface_services:%s:%s' % (hostname, ifc['name']))
if circuits:
ifc_data['circuits'] = [
{'type': c['circuit_type'], 'id': c['id']}
for c in json.loads(circuits.decode('utf-8'))
{
'id': c['id'],
'name': c['name'],
'type': c['service_type'],
'status': c['status']
} for c in json.loads(circuits.decode('utf-8'))
]
result.append(ifc_data)
......
......@@ -16,6 +16,8 @@ def test_router_interfaces(router, client_with_mocked_data):
"circuit": {
"type": "object",
"properties": {
"name": {"type": "string"},
"status": {"type": "string"},
"type": {"type": "string"},
"id": {"type": "integer"}
},
......
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