Rpc

class ydk.path.Rpc

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 ServiceProvider that can execute this rpc as its parameter returning a DataNode instance if output is available.

__call__(service_provider)

Execute/Invoke the rpc through the given service provider.

Parameters:service_provider – (ServiceProvider) The Service provider.
Returns:DataNode instance if succeed.
Return type:None or DataNode
get_input_node()

Get the input data tree.

Returns:DataNode representing the input data tree or None if the rpc does not have an input element in the schema.
Return type:DataNode or None
get_schema_node()

Get schema node for this rpc.

Returns:Schema node associated with this rpc.
Return type:SchemaNode