summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/main/yang
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-04-12 10:13:31 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-04-12 10:13:31 +0200
commit5ba8a8f44117579c9fa6dfdc038c8e41d2213d52 (patch)
treeb57707ccda530b06914d95f3457be591e17384c2 /v3po/v3po2vpp/src/main/yang
parent4c59ba41ef8c5bfbf5d407c06700857389db973e (diff)
HONEYCOMB-9: Add configuration and wiring for readers and writers
Remove config module Wrap vpp-japi in a config module Change-Id: Iee1e0c653309bd3c1019323ce689dacf3ed995cd Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/v3po2vpp/src/main/yang')
-rw-r--r--v3po/v3po2vpp/src/main/yang/v3po2vpp.yang60
1 files changed, 60 insertions, 0 deletions
diff --git a/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
new file mode 100644
index 000000000..a52a05fec
--- /dev/null
+++ b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
@@ -0,0 +1,60 @@
+module v3po2vpp {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:v3po2vpp";
+ prefix "v3po2vpp";
+
+ import config { prefix config; revision-date 2013-04-05; }
+ import translate-api { prefix tapi; revision-date 2016-04-06; }
+ import vpp-japi-cfg { prefix vjc; revision-date 2016-04-06; }
+
+ description
+ "This module contains reads and writers for v3po yang model";
+
+ revision "2016-04-06" {
+ description
+ "Initial revision.";
+ }
+
+ identity vpp-state-honeycomb-reader {
+ base config:module-type;
+ config:provided-service tapi:honeycomb-reader;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case vpp-state-honeycomb-reader {
+ when "/config:modules/config:module/config:type = 'vpp-state-honeycomb-reader'";
+
+ container vpp-japi {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity vjc:vpp-japi;
+ }
+ }
+ }
+
+ }
+ }
+
+ identity vpp-honeycomb-writer {
+ base config:module-type;
+ config:provided-service tapi:honeycomb-writer;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case vpp-honeycomb-writer {
+ when "/config:modules/config:module/config:type = 'vpp-honeycomb-writer'";
+
+ container vpp-japi-writer {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity vjc:vpp-japi;
+ }
+ }
+ }
+
+ }
+ }
+
+} \ No newline at end of file