Session

class ydk::path::Session

Abstract session base class.

virtual RootSchemaNode &get_root_schema() const

Returns the RootSchemaNode tree supported by this instance of the Session.

Returns:Reference to the RootSchemaNode or nullptr if one could not be created.
virtual std::shared_ptr<path::DataNode> invoke(path::Rpc &rpc) const

Invokes or executes the given rpc and returns a DataNode pointer if the Rpc has an output modeled in YANG.

Parameters:rpc – Reference to the Rpc node.
Returns:Pointer to the DataNode representing the output.
virtual ~Session()