05-30-2017 05:47 AM
Hi,
The update operation in crud_service.py has a _create_update_entity_filter function, which tries to read the entity in the module, the
update_filter = getattr(module, entity._meta_info().name)() fails to fetch the nested class instance(for example Interfaces.Interface() is not accessible) because of the behavior of python getattr function, which does not support consecutive attribute retrievals.
The fix for this issue can be to use the operator.attrgetattr() python function instead.
import operator
update_filter = operator.attrgetter(entity._meta_info().name)(module)()
Please look into this issue and provide a fix.
Thanks,
Hemalathaa
Solved! Go to Solution.
05-31-2017 09:09 AM
Thanks for your post. If you have a fix for this issue, please feel free to contribute to the ydk-gen repository (GitHub - CiscoDevNet/ydk-gen: Generate model-driven APIs from YANG models) by creating a pull request
05-31-2017 09:09 AM
Thanks for your post. If you have a fix for this issue, please feel free to contribute to the ydk-gen repository (GitHub - CiscoDevNet/ydk-gen: Generate model-driven APIs from YANG models) by creating a pull request
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide