enforce constraints on "neutron router-interface-add"
Bug #1537067 reported by
Mathieu Rohon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-bgpvpn |
Fix Released
|
High
|
Mathieu Rohon |
Bug Description
the bgpvpn spec explicitly mention that :
"To avoid any ambiguity on semantics in particular the context of processing associated to a Router (e.g. NAT or FWaaS), if a said Subnet in a Network is bound to a Router, this API does not allow to both associate the Network to an L3 BGPVPN and the Router to the same or to a distinct L3 BGPVPN."
http://
But currently this constraint is not enforced since a user can :
-create a net+subnet
-associate this net to a first bgpvpn
-create a router
-associate the router to a second bgpvpn
-attach the subnet to the router
the last action should return an error.
Changed in bgpvpn: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in bgpvpn: | |
milestone: | none → 5.0.0 |
Changed in bgpvpn: | |
assignee: | nobody → Mathieu Rohon (mathieu-rohon) |
Changed in bgpvpn: | |
assignee: | Mathieu Rohon (mathieu-rohon) → Wim De Clercq (wim-de-clercq) |
Changed in bgpvpn: | |
assignee: | Wim De Clercq (wim-de-clercq) → Mathieu Rohon (mathieu-rohon) |
To post a comment you must log in.
Since this bug [1] is fixed now in mitaka, the straightforward solution seems to add an new event in ML2 so that the bgpvpn plugin will be notified of a port_update that reflects the attachment of a port to a router.
If both the router and the network of the port are already attached to a bgpvpn, we should send an exception that will prevent the attachment of that network to the router.
[1]https:/ /bugs.launchpad .net/bgpvpn/ +bug/1475093