Add enforce_policy on device_id parameter
Add enforce_policy=True on port for device_id parameter to build a new policy. The target is to authorize only admin to use this parameter. Related-Bug: #1986969 Change-Id: I3d1c0ec074a5475091ee89f4f177b107fa61b264
This commit is contained in:
parent
9ecd5995b6
commit
a09d23b2dd
@ -74,6 +74,7 @@ RESOURCE_ATTRIBUTE_MAP = {
|
|||||||
'validate': {
|
'validate': {
|
||||||
'type:string': db_const.DEVICE_ID_FIELD_SIZE},
|
'type:string': db_const.DEVICE_ID_FIELD_SIZE},
|
||||||
'default': '',
|
'default': '',
|
||||||
|
'enforce_policy': True,
|
||||||
'is_filter': True,
|
'is_filter': True,
|
||||||
'is_sort_key': True,
|
'is_sort_key': True,
|
||||||
'is_visible': True},
|
'is_visible': True},
|
||||||
|
Loading…
Reference in New Issue
Block a user