show controllers in topology view

show distinct icon for nova.scheduler type (controller)

Change-Id: I67066518a223f84118c4b5c9847faa5e394a6d2d
This commit is contained in:
Yuval Adar 2018-01-01 17:17:20 +02:00
parent 21d0532124
commit 0764b3bcd9
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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 @@
}
}
})();
})();