Skip to content
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

Error when configuring openconfig mpls SRLG object #184

Closed
ghost opened this issue Jul 19, 2016 · 0 comments
Closed

Error when configuring openconfig mpls SRLG object #184

ghost opened this issue Jul 19, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jul 19, 2016

Below YDK script(using YDK 0.4.2) causes infinite recursion loop:

from ydk.providers import NetconfServiceProvider
from ydk.services import CRUDService
from ydk.models.openconfig.openconfig_mpls import Mpls
crud = CRUDService()
ncc = NetconfServiceProvider(address='127.0.0.1' , username='admin', password='admin', port=12022)

config_reference = Mpls.TeGlobalAttributes.Srlg.Srlg.Config()
config_reference.name = 'Hello'
srlg_reference = Mpls.TeGlobalAttributes.Srlg.Srlg()
srlg_reference.name = 'Hello'
srlg_reference = Mpls.TeGlobalAttributes.Srlg()
srlg_reference.srlg.append(srlg_reference)
srlg_reference = Mpls.TeGlobalAttributes.Srlg()
te_global_attributes_reference = Mpls.TeGlobalAttributes()
mpls_reference = Mpls()
te_global_attributes_reference.parent = mpls_reference
srlg_reference.parent = te_global_attributes_reference
srlg_reference.parent = srlg_reference
config_reference.parent = srlg_reference
crud.create(ncc,config_reference)

Error is below:

...
    set_parent_imeta(entity.parent, entity.i_meta)
  File "ydk-gen/gen-api/python/ydk/services/meta_service.py", line 108, in set_parent_imeta
    set_parent_imeta(entity.parent, entity.i_meta)
  File "ydk-gen/gen-api/python/ydk/services/meta_service.py", line 108, in set_parent_imeta
    set_parent_imeta(entity.parent, entity.i_meta)
  File "ydk-gen/gen-api/python/ydk/services/meta_service.py", line 103, in set_parent_imeta
    if isinstance(entity, YList) or isinstance(entity, YLeafList) or isinstance(entity, YListItem):
RuntimeError: maximum recursion depth exceeded while calling a Python object
@ghost ghost added the bug label Jul 19, 2016
@ghost ghost added this to the 0.5.0 milestone Jul 19, 2016
@psykokwak4 psykokwak4 self-assigned this Jul 20, 2016
psykokwak4 added a commit that referenced this issue Jul 21, 2016
@ghost ghost added the in progress label Jul 22, 2016
ghost pushed a commit that referenced this issue Jul 23, 2016
* Issue #184, #186

* Added/Reenabled sanity tests for Issue #184, #186, cleaned up decoder little bit.
@ghost ghost removed the in progress label Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant