Rpc¶
-
class
ydk::path::
Rpc
¶ An instance of the YANG schmea rpc node.
Instances of this class represent a YANG rpc and are modelled as Callables.
The input data node tree is used to populate the input parameters to the rpc if any. The Callable takes as a parameter the
Session
that can execute this rpc as its parameter returning a pointer to aDataNode
tree if output is available.-
virtual
~Rpc
()¶
-
virtual std::shared_ptr<DataNode>
operator()
(const Session &session)¶ Execute/Invoke the rpc through the given Session.
Parameters: session – The Session. Returns: Pointer to the DataNode
ornullptr
if none exists.
-
virtual DataNode &
get_input_node
() const¶ Get the input data tree.
Returns: Pointer to the input DataNode
ornullptr
if the rpc does not have an input element in the schema.
-
virtual
has_output_node
() const = 0¶
-
virtual SchemaNode &
get_schema_node
() const¶ Returns: Pointer to the SchemaNode
associated with this rpc.
-
virtual