Add config service for loading cfg file 23/55123/6
authorShakib Ahmed <sheikahm@cisco.com>
Mon, 17 Apr 2017 17:56:33 +0000 (10:56 -0700)
committerShakib Ahmed <sheikahm@cisco.com>
Fri, 21 Apr 2017 09:21:04 +0000 (02:21 -0700)
commit8a56fddf18898d8cad825c4e1ee9979bd24950c2
treeb1fe5ca005a7fbd240029e5f42a5652ff8cb5874
parent8e0023b556d23f504424a3a4a368d082a41e7c09
Add config service for loading cfg file

The existing way of using configs in vpp-renderer is to use blueprint
and pass the config as bean constructor parameter. The problem with
that is, when there are a lot of configs in the cfg file, we can
possibly pass all of them as bean constructor parameter. Hence, this
patch implements a Config Service which dynamically reads the config
and incase there is any update of config on runtime, the update is
propagated to the service too.

Change-Id: I015f61040a23d472db2a6e9eb23de94625fccb3c
Signed-off-by: Shakib Ahmed <sheikahm@cisco.com>
renderers/vpp/pom.xml
renderers/vpp/src/main/java/org/opendaylight/controller/config/yang/config/vpp_provider/impl/GbpVppProviderInstance.java
renderers/vpp/src/main/java/org/opendaylight/groupbasedpolicy/renderer/vpp/config/ConfigUtil.java [new file with mode: 0644]
renderers/vpp/src/main/java/org/opendaylight/groupbasedpolicy/renderer/vpp/config/ConfigurationService.java [new file with mode: 0644]
renderers/vpp/src/main/resources/startup.cfg