API to find BGPVPNs bound to a Network or Router
We don't have an API call allowing to identify the BGPVPN(s) bound to a said Network (or Router).
Gathering this information currently requires going through all BGPVPNs and their association sub-resources.
Using "GET /bgpvpn/
[**proposal now abandoned**: a proposed way would be to populate Network resources with an additional parameter listing the BGPVPN associations they are in. This is already supported by the DB model, but work is needed so that the information is propagated through Neutron API.]
Blueprint information
- Status:
- Complete
- Approver:
- Mathieu Rohon
- Priority:
- High
- Drafter:
- Thomas Morin
- Direction:
- Approved
- Assignee:
- Mathieu Rohon
- Definition:
- Approved
- Series goal:
- Accepted for ocata
- Implementation:
-
Implemented
- Milestone target:
-
4.0.0
- Started by
- Thomas Morin
- Completed by
- Thomas Morin
Related branches
Related bugs
Sprints
Whiteboard
I investigated this, and the only way to have a l2plugin that inherits from db_base_plugin_v2 to automatically return a bgpvpn list in response to a GET /networks/
Thanks to its extension manager that uses stevedore, ML2 seems able to process extensions defined outside the l2plugin. We should be able to use our own method to extend the neutron l2plugin response.
We should probably have something more generic, that works with other neutron plugin.
Moreover I only investigated the network case. It will probably be different for routers.
Gerrit topic: https:/
Addressed by: https:/
Filtering BGP VPN list with resource associations