Commit 051b37bc authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

expose pool info to dashes

--HG--
branch : feature/microservices
parent 823a3480
......@@ -44,6 +44,7 @@ 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
}
self.logger.info("Context with data: %s" % context)
PM_TEMPLATE_PATH = "templates/ddash/"
......
......@@ -89,7 +89,8 @@ class MODashboard(BaseDashboard):
"device_id": self.object.id,
"firmare_version": self.object.version.version or None,
"segment": self.object.segment.id,
"vendor": self.object.vendor or "Unknown platform"
"vendor": self.object.vendor or "Unknown platform",
"pool": self.object.pool.name
}
self.logger.info("Context with data: %s" % context)
PM_TEMPLATE_PATH = "templates/ddash/"
......
{
"id": "e3be24d6-8d7e-4b91-9d0a-3a7254bc0d27",
"title": "Link {{device_a}} - {{device_b}}",
"tags": [],
"tags": ["{{pool}}"],
"style": "dark",
"timezone": "browser",
"refresh": "15m",
......
......@@ -2,7 +2,7 @@
{
"id": "dca571a2-2018-432e-b6a5-101670b395ca",
"title": "{{device}}",
"tags": [],
"tags": ["{{pool}}"],
"style": "dark",
"timezone": "browser",
"refresh": "15m",
......
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