Declaring a routing context type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-.. code:: yang
+.. code::
identity node-context {
description "Identity used to mark node context";
RPCs, we need to model that set accordingly using ``context-instance``
extension from the ``yang-ext`` model.
-.. code:: yang
+.. code::
import yang-ext { prefix ext; }
This is achieved using YANG extension ``context-reference`` from
``yang-ext`` model on leaf, which will be used for RPC routing.
-.. code:: yang
+.. code::
rpc example-routed-rpc {
input {
----------------------------------------
RESTCONF operations overview
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| RESTCONF allows access to datastores in the controller.
| There are two datastores:
creation of a default instance, it acts as a regular instance and fully
participates in the configuration subsystem (It can be reconfigured or
deleted in following transactions.).
-