Executor Service

class ydk.services.ExecutorService

Provides the functionality to execute RPCs

execute_rpc(self, provider, rpc_entity, top_entity=None)

Create the entity

Parameters:
  • provider – (ServiceProvider.) Provider instance.
  • rpc_entity – (Entity) An instance of an RPC class defined under the ydk.models package or any of its subpackages.
  • top_entity – (Entity optional) Provide an instance of Entity only when expecting data to be returned.
Returns:

An instance of Entity when provided top_entity or None otherwise

Raises:

YServiceProviderError, if an error has occurred.

Possible Errors:

  • a server side error
  • there isn’t enough information in the entity to prepare the message (eg. missing keys)