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
Sessionthat can execute this rpc as its parameter returning a pointer to aDataNodetree 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 DataNodeornullptrif none exists.
-
virtual DataNode &
get_input_node() const¶ Get the input data tree.
Returns: Pointer to the input DataNodeornullptrif 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 SchemaNodeassociated with this rpc.
-
virtual