diff options
author | 2016-04-12 10:51:45 +0200 | |
---|---|---|
committer | 2016-04-12 14:09:40 +0200 | |
commit | c4c4334ef4db37af07025523de4c2e2e25763599 (patch) | |
tree | 97a9ae9f1bce42415cacdc8508ad573a11a52c84 /v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb | |
parent | 4932b4c831efbb9eaf611ff04cfc16bf33adb48c (diff) |
HONEYCOMB-34: Config initializer for ietf-interfaces
Change-Id: I164ab014638d40d1494dacb704c079c166256128
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb')
-rw-r--r-- | v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/data/init/rev160407/VppConfigurationInitializerModule.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/data/init/rev160407/VppConfigurationInitializerModule.java b/v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/data/init/rev160407/VppConfigurationInitializerModule.java index eddc74d27..ae83cb3fe 100644 --- a/v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/data/init/rev160407/VppConfigurationInitializerModule.java +++ b/v3po/vpp-cfg-init/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/data/init/rev160407/VppConfigurationInitializerModule.java @@ -3,8 +3,9 @@ package org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.vpp.data.i import io.fd.honeycomb.v3po.vpp.data.init.DataTreeInitializer; import io.fd.honeycomb.v3po.vpp.data.init.InitializerRegistry; import io.fd.honeycomb.v3po.vpp.data.init.InitializerRegistryImpl; +import io.fd.honeycomb.v3po.vpp.data.init.InterfacesInitializer; import io.fd.honeycomb.v3po.vpp.data.init.VppInitializer; -import java.util.Collections; +import java.util.Arrays; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -33,21 +34,22 @@ public class VppConfigurationInitializerModule extends @Override public java.lang.AutoCloseable createInstance() { - LOG.debug("VppConfigurationInitializerModule.createInstance()"); + LOG.info("VppConfigurationInitializerModule.createInstance(): initialization started"); final DataBroker bindingDataBroker = getBindingDataBrokerDependency(); - // TODO make configurable - final VppInitializer vppInitializer = - new VppInitializer(bindingDataBroker); + final VppInitializer vppInitializer = new VppInitializer(bindingDataBroker); + final InterfacesInitializer interfacesInitializer = new InterfacesInitializer(bindingDataBroker); + // TODO make configurable final InitializerRegistry initializer = - new InitializerRegistryImpl(Collections.<DataTreeInitializer>singletonList(vppInitializer)); + new InitializerRegistryImpl(Arrays.<DataTreeInitializer>asList(vppInitializer, interfacesInitializer)); try { initializer.initialize(); } catch (Exception e) { LOG.warn("Failed to initialize config", e); } + LOG.info("VppConfigurationInitializerModule.createInstance(): initialization completed"); return initializer; } |