For /analytics/alarms request, uve_type is not passed correctly to
get_resource_list_from_uve_type(). get_resource_list_from_uve_type()
expects user visible name for uve_type, where as alarms_http_get()
passes internal value of uve_type resulting in analytics-api throwing
error for non admin users.
Reviewed: https:/ /review. opencontrail. org/38354 github. com/Juniper/ contrail- controller/ commit/ 1ccb37c538787dc b6c3f1902beca00 9cf46a02f4
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.1
commit 1ccb37c538787dc b6c3f1902beca00 9cf46a02f4
Author: Sundaresan Rajangam <email address hidden>
Date: Thu Dec 14 12:07:14 2017 -0800
Fix RBAC for /analytics/alarms API
For /analytics/alarms request, uve_type is not passed correctly to list_from_ uve_type( ). get_resource_ list_from_ uve_type( )
get_resource_
expects user visible name for uve_type, where as alarms_http_get()
passes internal value of uve_type resulting in analytics-api throwing
error for non admin users.
Change-Id: I220ca397084ae9 f6e3a4b6b723ea5 3267e2eeb34
Closes-Bug: #1735054