Migrate bundles' configuration mgmt to ConfigurationService
authorAlessandro Boch <aboch@cisco.com>
Mon, 27 Jan 2014 08:11:30 +0000 (00:11 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 13 Feb 2015 16:05:04 +0000 (08:05 -0800)
commit31b67cb34508cb4a02820c40a50b499fc737783c
tree35e1265f52e07f7238820cbdc593f40401532e8b
parent8f73dca31d7783fc2f4e4feede1d59bcebf2a871
Migrate bundles' configuration mgmt to ConfigurationService

- Change current logic where read/save config is completely managed by each bundle,
  with moving it to configuration manager. This decoupling will allow configuration
  manager to decide how to persist the bundles' configurations to disk, withouth
  necessarely depend on java serialization as today controlelr does.
  Also now file names can be static and each bundle does not need to track the container
  context in the file name (which was lame). This allow controller to erase container
  startup files on container removal, which was not possible today.
- Global and in container configuration services to expose
  two APIs for the other bundles to retrieve and save their config
- Per container startup files organized in directories (directory name = container name)
- Container startup directory removed on container removal, and created on container creation if not present

Change-Id: I58c283eb796cf2a60466a97162428a8c2ae478ae
Signed-off-by: Alessandro Boch <aboch@cisco.com>
13 files changed:
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/Activator.java
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronFloatingIPInterface.java
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronNetworkInterface.java
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronPortInterface.java
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronRouterInterface.java
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronSubnetInterface.java
pom.xml
src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronFloatingIP.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronNetwork.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronPort.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronRouter.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronSubnet.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/Neutron_IPs.java