summaryrefslogtreecommitdiffstats
path: root/v3po/translate-utils/src/main/yang/translate-utils.yang
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-04-09 16:22:06 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-06-10 11:04:21 +0200
commit0e517a26e69ff3d1b04ba19c4539cb8dee60b097 (patch)
tree29819b80acba85d45ea8d4b90a9b1ed7e0926e12 /v3po/translate-utils/src/main/yang/translate-utils.yang
parent5440823dbe280d3f6c6c94074e86db0c11596686 (diff)
HONEYCOMB-33: Add notification service to Hc
Implement VPP interface notification translator as part of v3po2vpp plugin Change-Id: I69cfad9668ae9e4d79ed30bb8d54d294faa4c54a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/translate-utils/src/main/yang/translate-utils.yang')
-rw-r--r--v3po/translate-utils/src/main/yang/translate-utils.yang21
1 files changed, 21 insertions, 0 deletions
diff --git a/v3po/translate-utils/src/main/yang/translate-utils.yang b/v3po/translate-utils/src/main/yang/translate-utils.yang
index 238528d56..1219648c3 100644
--- a/v3po/translate-utils/src/main/yang/translate-utils.yang
+++ b/v3po/translate-utils/src/main/yang/translate-utils.yang
@@ -5,6 +5,7 @@ module translate-utils {
import config { prefix config; revision-date 2013-04-05; }
import translate-api { prefix tapi; revision-date 2016-04-06; }
+ import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
description
"This module contains translation layer utilities";
@@ -69,4 +70,24 @@ module translate-utils {
when "/config:modules/config:module/config:type = 'noop-writer-registry'";
}
}
+
+ identity realtime-mapping-context {
+ base config:module-type;
+ config:provided-service tapi:honeycomb-mapping-context;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case realtime-mapping-context {
+ when "/config:modules/config:module/config:type = 'realtime-mapping-context'";
+
+ container context-binding-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