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
ServiceProviderthat can execute this rpc as its parameter returning aDataNodeinstance if output is available.-
__call__(service_provider)¶ Execute/Invoke the rpc through the given service provider.
Parameters: service_provider – ( ServiceProvider) The Service provider.Returns: DataNodeinstance if succeed.Return type: None or DataNode
-
get_input_node()¶ Get the input data tree.
Returns: DataNoderepresenting the input data tree orNoneif the rpc does not have an input element in the schema.Return type: DataNodeorNone
-
get_schema_node()¶ Get schema node for this rpc.
Returns: Schema node associated with this rpc. Return type: SchemaNode
-