From 94c36f9d553dfb559f5529491a8b79b9bd15438f Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Mon, 17 Sep 2018 22:39:25 +0200 Subject: [PATCH] [65-libyang-adaptor] Added adaptor section in doxygen --- src/lib/yang/yang.dox | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/yang/yang.dox b/src/lib/yang/yang.dox index da9de2b373..93c88397cb 100644 --- a/src/lib/yang/yang.dox +++ b/src/lib/yang/yang.dox @@ -49,7 +49,7 @@ implements some variants to accommodate the model with shared code moved into a common private routine. @c isc::yang::TranslatorPools deals with a list of pools. The getPools -method iterates over thr lidt in both ways. Loot at examples in unit +method iterates over the list in both ways. Look at examples in unit tests to understand how can be filled. Note pools show two shortcomings in IETF models: @@ -62,6 +62,16 @@ Note pools show two shortcomings in IETF models: The new thing here is the use of adaptors to move timers from subnets to pools and back. +@section yangAdaptor Adapting JSON configuration + +Adaptors are tools which adapts JSON complete or partial configuration +before translation to Yang to ease this translation or after translation +from Yang to follow the Kea syntax, for instance by adding static +components which are not in the model. + +Methods provided by adaptors are class methods (i.e. declared static). +Specific adaptors are derived from the isc::yang::Adaptor base class. + @page unitTestsSysrepo Running unit-tests with Sysrepo To run YANG/NETCONF/Sysrepo tests you obviously need to compile Kea with -- 2.47.2