Hello,
Apologies for what could be a trivial question; I looked at some examples and in the discussion forum without finding a clear answer.
I have multiple bundles generated and specific to a release version. The idea is to use bundles accordingly to the specific version of the code I am running on a device I need to program. I know this can be done by specifying the model ie.
from ydk.models.cisco_ios_xr import Cisco_IOS_XR_ifmgr_cfg as ifmgr
as described in the Example of JsonSubtreeCodec usage however I am unclear what is the logic behind using a specific model when running the class ydk.services.CodecService encode and decode from XML to JSON and vice-versa.
The idea is to be able to select any of those models when calling the encode and decode functions based on the version running on a device.
pip freeze | grep ydk
ydk==0.8.6.3
ydk-models-junos-18-4-R3==18.4.post3
ydk-models-junos-20-4-R1==20.4.post1
ydk-models-junos-21-1-R1==21.1.post1
Any code example would be greatly appreciated and apologies if the question has been addressed somewhere already.
Thank you
Luca