Addition of status and name field to bgp_associations API

Related-Bug: #1921461

Signed-off-by: Manu B <manu.b@est.tech>
Change-Id: I3478950acb99f686a5ae3758729862b48cc9bd7f
This commit is contained in:
Manu B 2021-10-12 05:09:01 +00:00
parent e686f3d0d3
commit d5195d8c96
1 changed files with 15 additions and 1 deletions

View File

@ -40,6 +40,10 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'validate': {'type:uuid': None},
'is_visible': True,
'primary_key': True},
'name': {'allow_post': True, 'allow_put': True,
'validate': {'type:string': db_const.NAME_FIELD_SIZE},
'default': '', 'is_filter': True, 'is_sort_key': True,
'is_visible': True},
'project_id': {'allow_post': True, 'allow_put': False,
'validate': {
'type:string': db_const.PROJECT_ID_FIELD_SIZE},
@ -55,6 +59,9 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'validate': {'type:boolean': None},
'is_visible': True, 'default': True,
'required_by_policy': False},
'status': {'allow_post': False, 'allow_put': False,
'is_filter': True, 'is_sort_key': True,
'is_visible': True},
}
},
PEER_ASSOCIATIONS: {
@ -65,6 +72,10 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'validate': {'type:uuid': None},
'is_visible': True,
'primary_key': True},
'name': {'allow_post': True, 'allow_put': True,
'validate': {'type:string': db_const.NAME_FIELD_SIZE},
'default': '', 'is_filter': True, 'is_sort_key': True,
'is_visible': True},
'project_id': {'allow_post': True, 'allow_put': False,
'validate': {
'type:string': db_const.PROJECT_ID_FIELD_SIZE},
@ -72,7 +83,10 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'is_visible': True},
'peer_id': {'allow_post': True, 'allow_put': False,
'validate': {'type:uuid': None},
'is_visible': True}
'is_visible': True},
'status': {'allow_post': False, 'allow_put': False,
'is_filter': True, 'is_sort_key': True,
'is_visible': True},
}
}
}