Codec Service Provider¶
-
class
ydk.providers.CodecServiceProvider(type=EncodingFormat.XML, repo=None)¶ A provider to be used with
CodecServicefor performing encoding and decoding.Parameters: - type (
stringorEncodingFormat) – An argument specifies encoding format, could be a Python string (xmlorjson) or an instance ofEncodingFormat. - repo (
Repository) – User provided repository stores cached models.
-
get_root_schema(bundle_name)¶ Return root schema node for bundle_name defined in the ‘initialize’ method.
Parameters: bundle_name – ( str) Bundle name.Returns: RootSchemaNodefor this bundle.
-
initialize(bundle_name, models_path)¶ Initializes root schema in the user defined location of YANG models.
Parameters: - bundle_name – (
str): user defined bundle name. - models_path – (
str): location (directory) for local YANG models.
- bundle_name – (
- type (