-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with correctly encoding operational model data #452
Comments
The issue seems that the from ydk.models.openconfig.openconfig_bgp import Bgp
from ydk.providers import CodecServiceProvider
from ydk.services import CodecService
codec=CodecService()
codec_p=CodecServiceProvider(type='xml')
f = Bgp()
q = Bgp.Neighbors.Neighbor()
q.neighbor_address = '1.2.3.4'
q.state.description='test'
f.neighbors.neighbor.append(q)
codec.encode(codec_p,f)
Confirmed that this issue is not there in print(codec.encode(codec_p,f))
|
The problem is this line which is present in all of the generated model APIs. If the container/list is not config, we are always returning |
In YDK-Py 0.5.4, filter data is ignored by parent objects. For example, the following code attempts to only read BGP neighbor data:
Instead, it retrieves all data:
Specifying, the most specific object can be used as a workaround:
The text was updated successfully, but these errors were encountered: