Merge "Allow filtering BGPVPNs"
This commit is contained in:
commit
67887103ac
|
@ -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')
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue