
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 11:40 AM
Hi guys,
getting error AttributeError: 'function' object has no attribute '_meta_info' when creating policy-map. Even though I get this error the configuration is committed and XR device returns RPC-OK message.
Code is in attachment. When I tried to comment the policy-map code there is no error.
Anyone any thoughts?
Thanks a lot
Solved! Go to Solution.
- Labels:
-
YANG Development Kit (YDK)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 12:09 PM
Hi Anton,
Looks like a minor typo on line 137 of your script :
crud_create2 = crud.create (provider, put_cm_to_pm)
should be
crud_create2 = crud.create (provider, policy_configuration)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 12:09 PM
Hi Anton,
Looks like a minor typo on line 137 of your script :
crud_create2 = crud.create (provider, put_cm_to_pm)
should be
crud_create2 = crud.create (provider, policy_configuration)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 10:10 AM
Thank you very much! It works like charm :-)
PS: I feel so bad about this post. You should not troubleshoot code typos after folks like me. Next time I will triple check before posting it here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 10:27 AM
No problem Always glad to help
