Commit 37b9977f authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

expose pool info to dashes

--HG--
branch : feature/microservices
parent 29918770
......@@ -44,7 +44,8 @@ class LinkDashboard(BaseDashboard):
"segment": mos.managed_objects[0].segment.id,
"device_a_id": mos.managed_objects[0].id,
"device_b_id": mos.managed_objects[1].id,
"pool": mos.managed_objects[0].pool.name
"pool": mos.managed_objects[0].pool.name,
"link_id": mos.id
}
self.logger.info("Context with data: %s" % context)
PM_TEMPLATE_PATH = "templates/ddash/"
......
......@@ -130,7 +130,29 @@
},
"schemaVersion": 12,
"version": 33,
"links": [],
"links": [
{
"icon": "doc",
"includeVars": true,
"keepTime": true,
"tags": [],
"targetBlank": true,
"type": "link",
"title": "png",
"tooltip": "png",
"url": "/ui/grafana/render/dashboard/script/noc.js?width=1800&dashboard=link&id={{link_id}}"
},
{
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"{{pool}}"
],
"targetBlank": true,
"type": "dashboards"
}
],
"gnetId": null,
"rows": [
{
......
......@@ -71,6 +71,16 @@
"title": "png",
"tooltip": "png",
"url": "/ui/grafana/render/dashboard/script/noc.js?width=1800&dashboard=mo&id={{device_id}}"
},
{
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"{{pool}}"
],
"targetBlank": true,
"type": "dashboards"
}
],
"gnetId": null,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment