From: Yaroslav Lastivka Date: Fri, 3 Feb 2023 08:43:12 +0000 (+0200) Subject: Update documentation for YangLib feature X-Git-Tag: v5.0.2~2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=netconf.git;a=commitdiff_plain;h=793d1d10337cc6dc4eb498f9a7989d95ea266832;ds=sidebyside Update documentation for YangLib feature Documentation was updated according to current model and default values. JIRA: NETCONF-909 Change-Id: I514f3677b8ba6b02e6e146e47fdee09e5791a386 Signed-off-by: Yaroslav Lastivka --- diff --git a/docs/user-guide.rst b/docs/user-guide.rst index d0b8b62a46..2deb38de68 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -734,12 +734,12 @@ YANGLIB configuration through RESTCONF You have to specify what local YANG modules directory you want to provide. Then you have to specify address and port whre you want to provide YANG sources. For example, we want to serve yang sources from folder /sources -on localhost:5000 adress. The configuration for this scenario will be +on localhost:8181 adress. The configuration for this scenario will be as follows: :: - PUT http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/yanglib:yanglib/example + PUT http://localhost:8181/rests/data/yanglib:yanglib-config Headers: @@ -751,17 +751,11 @@ Payload: :: - - example - prefix:yanglib - - prefix:binding-broker-osgi-registry - binding-osgi-broker - - /sources - localhost - 5000 - + + cache/newSchema + localhost + 8181 + This should result in a 2xx response and new YANGLIB instance should be created. This YANGLIB takes all YANG sources from /sources folder and @@ -769,7 +763,7 @@ for each generates URL in form: :: - http://localhost:5000/schemas/{modelName}/{revision} + http://localhost:8181/yanglib/schemas/{modelName}/{revision} On this URL will be hosted YANG source for particular module.