summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-japi-cfg/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
commit695eead109ef26d26277675210275a423a5dad50 (patch)
tree80c8567917026154a3b6f199bc0544267adf3bbe /v3po/vpp-japi-cfg/src/main/yang
parent5f82161cddaf35acbb6197139deaf604cdc4aca0 (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/vpp-japi-cfg/src/main/yang')
-rw-r--r--v3po/vpp-japi-cfg/src/main/yang/vpp-japi-cfg.yang38
1 files changed, 38 insertions, 0 deletions
diff --git a/v3po/vpp-japi-cfg/src/main/yang/vpp-japi-cfg.yang b/v3po/vpp-japi-cfg/src/main/yang/vpp-japi-cfg.yang
new file mode 100644
index 000000000..f723f5282
--- /dev/null
+++ b/v3po/vpp-japi-cfg/src/main/yang/vpp-japi-cfg.yang
@@ -0,0 +1,38 @@
+module vpp-japi-cfg {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:vpp:japi:cfg";
+ prefix "vjc";
+
+ import config { prefix config; revision-date 2013-04-05; }
+
+ description
+ "This module contains the base YANG definitions for
+ readers/writers plugged into a honeycomb";
+
+ revision "2016-04-06" {
+ description
+ "Initial revision.";
+ }
+
+ identity vpp-japi {
+ base "config:service-type";
+ config:java-class org.openvpp.vppjapi.vppApi;
+ }
+
+ identity vpp-japi-impl {
+ base config:module-type;
+ config:provided-service vpp-japi;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case vpp-japi-impl {
+ when "/config:modules/config:module/config:type = 'vpp-japi-impl'";
+
+ leaf name {
+ type string;
+ default "v3poODL";
+ }
+ }
+ }
+
+} \ No newline at end of file