]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Decouple L3 and VPN service plugins during router operations
authorarmando-migliaccio <armamig@gmail.com>
Fri, 6 Feb 2015 20:06:31 +0000 (12:06 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 5 Mar 2015 01:32:44 +0000 (17:32 -0800)
commite1a9eb1f92169b8683364019c62efbafa3f63291
tree617e994e51deb0b80e6706fc53ac0500c588e868
parent10b8b085f1c655df95d69dd36eeb53e38ee13dd8
Decouple L3 and VPN service plugins during router operations

This change leverages the event registry to decouple L3 and VPN
when checking whether certain router operations can be permitted
or not. Follow-up changes will clean up the rest of the coupling.

This clean-up is required because the existing code couples the two
service plugins together, as L3 needs to know about a higher-level
service, like VPN. A similar coupling would be needed for any other
service that might be using or interested in knowning about router
resources; in a world where advanced services have a life of their
own this hardly works or it leads to the tight coupling
experienced so far, which is not the right way to go about it.

Depends-on: I6ac366b329466df6c79a3683e6374feca76773a0
Related-blueprint: services-split
Related-blueprint: plugin-interface-perestroika

Change-Id: Iada03606982670111ae911549a3aad85ed358bea
neutron/db/l3_db.py
neutron/tests/unit/test_l3_plugin.py