From 0578156b721fa01c8c645b8f9625ecebdb6449e4 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 27 Jul 2016 11:05:51 +0200 Subject: HONEYCOMB-130: Separate v3po plugin from HC infra Creating folders: - common/ - infra/ - v3po/ - vpp-common/ Change-Id: I2c39e1b17e39e7c0f0628f44aa5fe08563fa06e4 Signed-off-by: Maros Marsalek --- .../src/main/yang/context-impl.yang | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vpp-common/naming-context-impl/src/main/yang/context-impl.yang (limited to 'vpp-common/naming-context-impl/src/main/yang/context-impl.yang') diff --git a/vpp-common/naming-context-impl/src/main/yang/context-impl.yang b/vpp-common/naming-context-impl/src/main/yang/context-impl.yang new file mode 100644 index 000000000..12861be68 --- /dev/null +++ b/vpp-common/naming-context-impl/src/main/yang/context-impl.yang @@ -0,0 +1,39 @@ +module context-impl { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:context:impl"; + prefix "v3po-impl"; + + import config { prefix config; revision-date 2013-04-05; } + import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;} + import translate-api { prefix tapi; revision-date 2016-04-06; } + + description + "Service definition for v3po project"; + + revision "2014-12-10" { + description + "Initial revision"; + } + + identity context-reader { + base config:module-type; + config:provided-service tapi:honeycomb-reader-factory; + description "A reader to provide naming context related data"; + } + + augment "/config:modules/config:module/config:configuration" { + case context-reader { + when "/config:modules/config:module/config:type = 'context-reader'"; + + container context-binding-broker { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity md-sal-binding:binding-async-data-broker; + } + } + } + + } + } +} -- cgit 1.2.3-korg