Merge "Allow filtering BGPVPNs"

This commit is contained in:
Zuul 2024-04-26 20:07:41 +00:00 committed by Gerrit Code Review
commit 67887103ac
3 changed files with 28 additions and 0 deletions

View File

@ -27,6 +27,19 @@ class BgpVpn(resource.Resource):
allow_delete = True
allow_list = True
_query_mapping = resource.QueryParameters(
'name',
'project_id',
'local_pref',
'vni',
'type',
'networks',
'routers',
'ports',
# NOTE(seba): (route|import|export) targets only support exact matches
# and have therefore been left out
)
# Properties
#: The Id of the BGPVPN
id = resource.Body('id')

View File

@ -62,6 +62,14 @@ class TestBgpVpn(base.TestCase):
{
'limit': 'limit',
'marker': 'marker',
'local_pref': 'local_pref',
'name': 'name',
'networks': 'networks',
'routers': 'routers',
'ports': 'ports',
'project_id': 'project_id',
'type': 'type',
'vni': 'vni',
},
sot._query_mapping._mapping,
)

View File

@ -0,0 +1,7 @@
---
features:
- |
``openstack.network.v2.bgpvpn.BgpVpn`` can now be filtered by its
associations to `networks`, `routers` and `ports. Additionally,
filtering for the attributes `name`, `project_id`, `local_pref`, `vni`
and `type` is now done on server-side.