summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/main/yang
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-04-12 10:13:34 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-04-12 10:13:34 +0200
commit1c8b3b7dfb3cdf124e6a88df72612ec181de6f14 (patch)
treeb0b6526b89e50791458b41b93129c7cf9a988540 /v3po/v3po2vpp/src/main/yang
parent695eead109ef26d26277675210275a423a5dad50 (diff)
HONEYCOMB-9: Add InterfaceCustomizer for ietf-interfaces
Add custom reader for if:/interfaces-state/if:interface with no augmentations for now. Change-Id: Icc0f403db204430f27ac96cf7b32e7800e11dacb Signed-off-by: Stefan Kobza <skobza@cisco.com> 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.yang22
1 files changed, 22 insertions, 0 deletions
diff --git a/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
index a52a05fec..9d3199970 100644
--- a/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
+++ b/v3po/v3po2vpp/src/main/yang/v3po2vpp.yang
@@ -36,6 +36,28 @@ module v3po2vpp {
}
}
+ identity interfaces-state-honeycomb-reader {
+ base config:module-type;
+ config:provided-service tapi:honeycomb-reader;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case interfaces-state-honeycomb-reader {
+ when "/config:modules/config:module/config:type = 'interfaces-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;