summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-05-19 15:01:14 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-05-24 08:36:38 +0000
commitac035fd064b69d81bb14513ec7814ac4059f7cb0 (patch)
tree8ecb26a20b60782335162be10621685181c1f37f /v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
parentf9b2551eae7b4410b6910a05f19413b9b83137d4 (diff)
HONEYCOMB-61: Move VPP initializers to v3po2vpp
Change-Id: I65a317bc84ab422bcb956a91dea24d6a17f8e0a5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/v3po2vpp/src/main/yang/v3po2vpp.yang')
-rw-r--r--v3po/v3po2vpp/src/main/yang/v3po2vpp.yang45
1 files changed, 45 insertions, 0 deletions
diff --git a/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
index 268739451..f706ec60d 100644
--- a/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
+++ b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
@@ -6,6 +6,8 @@ module v3po2vpp {
import config { prefix config; revision-date 2013-04-05; }
import translate-api { prefix tapi; revision-date 2016-04-06; }
import vpp-jvpp-cfg { prefix vjvppc; revision-date 2016-04-06; }
+ import vpp-cfg-init { prefix init; revision-date "2016-04-07"; }
+ import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
import vpp-util { prefix vpp-u; revision-date 2016-04-06; }
description
@@ -171,4 +173,47 @@ module v3po2vpp {
}
}
+ identity vpp-cfg-initializer {
+ base config:module-type;
+ config:provided-service init:cfg-initializer;
+ config:java-name-prefix VppConfigurationInitializer;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case vpp-cfg-initializer {
+ when "/config:modules/config:module/config:type = 'vpp-cfg-initializer'";
+
+ container binding-data-broker {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity md-sal-binding:binding-async-data-broker;
+ }
+ }
+ }
+ }
+ }
+
+ identity interfaces-cfg-initializer {
+ base config:module-type;
+ config:provided-service init:cfg-initializer;
+ config:java-name-prefix InterfacesConfigurationInitializer;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case interfaces-cfg-initializer {
+ when "/config:modules/config:module/config:type = 'interfaces-cfg-initializer'";
+
+ container binding-data-broker {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity md-sal-binding:binding-async-data-broker;
+ }
+ }
+ }
+ }
+ }
+
+
} \ No newline at end of file