cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
645
Views
0
Helpful
3
Replies

Create policy-map AttributeError: 'function' object has no attribute '_meta_info'

Anton Abik
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

abhirame
Cisco Employee
Cisco Employee

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)

View solution in original post

3 Replies 3

abhirame
Cisco Employee
Cisco Employee

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)

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

No problem Always glad to help