Added JSON and XML payloads tabs with RFC 8040 URL 53/90553/10
authorAman <170030039@iitdh.ac.in>
Mon, 22 Jun 2020 10:14:16 +0000 (15:44 +0530)
committerAman N/A <170030039@iitdh.ac.in>
Fri, 11 Sep 2020 17:21:27 +0000 (17:21 +0000)
Modified docs/bgp/bgp-user-guide-long-lived-graceful-restart-capability.rst by adding JSON,XML examples with corresponding sphinx tabs

Change-Id: I277e40fb90b1140d9c59ff492024db0361845688
Signed-off-by: Aman <170030039@iitdh.ac.in>
docs/bgp/bgp-user-guide-long-lived-graceful-restart-capability.rst

index 01f748afb7f0846957d8e2d19a05c5e6ebd7565a..0f3710b6d7236c80ed02701e187d41b941b9d6f6 100644 (file)
@@ -22,28 +22,53 @@ or
 
 **Method:** ``PUT``
 
-**Content-Type:** ``application/xml``
+.. tabs::
 
-**Request Body:**
+   .. tab:: XML
 
-.. code-block:: xml
-   :linenos:
-   :emphasize-lines: 3,6
+      **Content-Type:** ``application/xml``
 
-   <graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
-      <config>
-         <enable>true</enable>
-         <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
+      **Request Body:**
+
+      .. code-block:: xml
+         :linenos:
+         :emphasize-lines: 5
+
+         <graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
              <config>
-                 <long-lived-stale-time>180</long-lived-stale-time>
+                 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
+                     <config>
+                         <long-lived-stale-time>180</long-lived-stale-time>
+                     </config>
+                 </ll-graceful-restart>
              </config>
-         </ll-graceful-restart>
-       </config>
-   </graceful-restart>
+         </graceful-restart>
+
+      @line 5: value of Long-Lived Stale timer in seconds
+
+   .. tab:: JSON
+
+      **Content-Type:** ``application/json``
+
+      **Request Body:**
+
+      .. code-block:: json
+         :linenos:
+         :emphasize-lines: 6
 
-@line 3: if Graceful Restart support is disabled for family only procedures for Long-Lived Graceful Restart applies
+         {
+             "bgp-openconfig-extensions:graceful-restart": {
+                 "config": {
+                     "bgp-ll-graceful-restart:ll-graceful-restart": {
+                         "config": {
+                             "long-lived-stale-time": 180
+                         }
+                     }
+                 }
+             }
+         }
 
-@line 6: value of Long-Lived Stale timer in seconds
+      @line 6: value of Long-Lived Stale timer in seconds
 
 References
 ^^^^^^^^^^