RestconfSession¶
-
class
ydk.path.RestconfSession(repo, address, username, password, port=80, encoding=EncodingFormat.JSON, config_url_root="/data", state_url_root="/data")¶ param repo: ( Repository) Reference to an instance ofRepositoryparam address: ( str) IP address or DNC name of the device supporting Netconf interface.param username: ( str) Username to log in to the device.param password: ( str) Password to log in to the device.param port: ( int) Type of encoding to be used for the payload. Default is 80.param encoding: ( EncodingFormat) Encoding Format, default isJSON.param config_url_root: ( str) To provider backwards compatibility with older drafts of Restconf RFC, this can be/configor/data(which is the default).param state_url_root: ( str) To provider backwards compatibility with older drafts of Restconf RFC, this can be/operationalor/data(which is the default)-
get_root_schema()¶ Returns the
RootSchemaNodetree supported by this instance of theRestconfSession.Returns: Pointer to the RootSchemaNodeornullptrif one could not be created.
-