From 0764b3bcd939e297a0ec2d544f897d6db9cbf298 Mon Sep 17 00:00:00 2001 From: Yuval Adar Date: Mon, 1 Jan 2018 17:17:20 +0200 Subject: [PATCH] show controllers in topology view show distinct icon for nova.scheduler type (controller) Change-Id: I67066518a223f84118c4b5c9847faa5e394a6d2d --- vitrage_dashboard/api/vitrage_rest_api.py | 1 + .../static/dashboard/project/entities/entities.controller.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vitrage_dashboard/api/vitrage_rest_api.py b/vitrage_dashboard/api/vitrage_rest_api.py index 0a3b0cf..64569fb 100644 --- a/vitrage_dashboard/api/vitrage_rest_api.py +++ b/vitrage_dashboard/api/vitrage_rest_api.py @@ -68,6 +68,7 @@ class Topolgy(generic.View): '{"or": [{"==": {"vitrage_type": "openstack.cluster"}},' \ '{"==": {"vitrage_type": "nova.instance"}},' \ '{"==": {"vitrage_type": "nova.host"}},' \ + '{"==": {"vitrage_type": "nova.scheduler"}},' \ '{"==": {"vitrage_type": "nova.zone"}}]}]}' return vitrage.topology(request=request, diff --git a/vitrage_dashboard/dashboard/static/dashboard/project/entities/entities.controller.js b/vitrage_dashboard/dashboard/static/dashboard/project/entities/entities.controller.js index 7f6c07c..88a2d47 100644 --- a/vitrage_dashboard/dashboard/static/dashboard/project/entities/entities.controller.js +++ b/vitrage_dashboard/dashboard/static/dashboard/project/entities/entities.controller.js @@ -284,6 +284,9 @@ case 'nova.host': icon = '\uf233'; //fa-server break; + case 'nova.scheduler': + icon = '\uf0e4'; //fa-tachometer + break; case 'nova.zone': icon = '\uf279'; //fa-map break; @@ -339,4 +342,4 @@ } } -})(); \ No newline at end of file +})();