From 5b7e7019851bd6847b456aea6328e54b08a4a0c7 Mon Sep 17 00:00:00 2001 From: Yaroslav Lastivka Date: Fri, 14 Feb 2025 10:09:23 +0200 Subject: [PATCH] Update user-guide for notification subscriptions Aligned the user guide with the current YANG notification subscription logic, updating steps and examples for accuracy. JIRA: NETCONF-714 Change-Id: I7c05e6bfa0c23a5bb02a5298b44db3ec8ab604cc Signed-off-by: Yaroslav Lastivka --- docs/user-guide.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/user-guide.rst b/docs/user-guide.rst index 87f8cd1189..be5e86bb77 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -979,7 +979,7 @@ POST request to: NETCONF - xml + encode-xml @@ -1065,7 +1065,7 @@ Use this when you want to include everything within a specific subtree in the no { "ietf-subscribed-notifications:input": { "stream": "NETCONF", - "encoding": "json", + "encoding": "encode-json", "stream-subtree-filter": { "users" : {} }, @@ -1091,7 +1091,7 @@ This filter retrieves only the elements from each within the NETCONF - xml + encode-xml @@ -1114,7 +1114,7 @@ This filter retrieves only the elements from each within the 2147483648 - json + encode-xml .. tab:: JSON @@ -1181,12 +1181,12 @@ POST request to: .. code-block:: json { - "input": { + "ietf-subscribed-notifications:input": { "subscription-id": "2147483648", "stream-subtree-filter": { "/ietf-vrrp:vrrp-protocol-error-event" : {} }, - "encoding": "xml" + "encoding": "encode-xml" } } @@ -1233,7 +1233,7 @@ POST request to: .. code-block:: json { - "input": { + "ietf-subscribed-notifications:input": { "subscription-id": "2147483648" } } @@ -1277,7 +1277,7 @@ POST request to: .. code-block:: json { - "input": { + "ietf-subscribed-notifications:input": { "subscription-id": "2147483648" } } -- 2.36.6