ydk.providers module¶
providers.py
Service Providers module. Current implementation supports the NetconfServiceProvider which uses ncclient (a Netconf client library) to provide CRUD services.
-
class
ydk.providers.
NetconfServiceProvider
(**kwargs)¶ Bases:
ydk.providers.ServiceProvider
NCClient based Netconf Service Provider.
Initialization parameter of NetconfServiceProvider
Parameters: - address – The address of the netconf server
- port – The port to use default is 830
- username – The name of the user
- password – The password to use
- protocol – One of either ssh or tcp
Timeout: Default to 45
-
close
()¶ Closes the netconf session.
-
class
ydk.providers.
CodecServiceProvider
(**kwargs)¶ Bases:
ydk.providers.ServiceProvider
Codec Service Provider.
Initialization parameter of CodecServiceProvider
Parameters: type – Type of encoding. Currently, ‘xml’ type is supported
-
class
ydk.providers.
ServiceProvider
¶ Bases:
object
Base class for Service Providers.
-
close
()¶ Base method to close service provider instance session.
Exception for Client Side Data Validation.
Type Validation.
Any data validation error encountered that is related to type validation encountered does not raise an Exception right away.
To uncover as many client side issues as possible, an i_errors list is injected in the parent entity of any entity with issues. The items added to this i_errors list captures the object types that caused the error as well as an error message.
-