From 1c8b3b7dfb3cdf124e6a88df72612ec181de6f14 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Tue, 12 Apr 2016 10:13:34 +0200 Subject: 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 Signed-off-by: Maros Marsalek --- v3po/v3po2vpp/src/main/yang/v3po2vpp.yang | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'v3po/v3po2vpp/src/main/yang') 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; -- cgit 1.2.3-korg