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/38508 github. com/Juniper/ contrail- analytics/ commit/ a20d05b98abcc77 a45f4e6bd19316f bc4a038fd8
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit a20d05b98abcc77 a45f4e6bd19316f bc4a038fd8
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Dec 20 22:49:58 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: I30959d64548374 0b2c753c4209442 e013f94b9db
Closes-Bug: #1735054