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:
Pierre Libeau 2022-10-13 13:30:58 +02:00 committed by Pierre Libeau
parent 9ecd5995b6
commit a09d23b2dd
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ RESOURCE_ATTRIBUTE_MAP = {
'validate': {
'type:string': db_const.DEVICE_ID_FIELD_SIZE},
'default': '',
'enforce_policy': True,
'is_filter': True,
'is_sort_key': True,
'is_visible': True},