02-16-2017 01:26 AM
Hi experts
I have a policy map in our device and use the redirect nexthop route-target command.
I've tried to get the policy map configuration with YDK and I can only get the class-name and class-type with no additional policymaprule.
Can I get the full policy map config with the current version YDK?
The config on device is:
policy-map type pbr s100
class type traffic s1
redirect nexthop route-target 100:1
!
And the config I get with YDK is:
<policy-maps>
<policy-map>
<type>pbr</type>
<name>s100</name>
<policy-map-rule>
<class-name>s1</class-name>
<class-type>traffic</class-type>
</policy-map-rule>
</policy-map>
</policy-maps>
Solved! Go to Solution.
02-17-2017 03:06 PM
Support for redirection is missing in model Cisco-IOS-XR-infra-policymgr-cfg. YDK just reflects the current state of the model. I've reported the XR defect (CSCvd21030) so it can be address. Once the model is fixed, YDK will reflect the updated model.
02-16-2017 10:14 AM
Redirection seems to be missing from the model. Let me investigate.
02-16-2017 05:26 PM
Thanks, let me know if you need any additional infomation
02-17-2017 03:06 PM
Support for redirection is missing in model Cisco-IOS-XR-infra-policymgr-cfg. YDK just reflects the current state of the model. I've reported the XR defect (CSCvd21030) so it can be address. Once the model is fixed, YDK will reflect the updated model.
02-18-2017 01:37 AM
Thanks for your help.
And one more question, once the model is fixed, do I need to upgrade the YDK to a new version or I can still use the current version?
02-19-2017 02:14 AM
Since the APIs are autogenerated from the models, you'd need to upgrade YDK to a version that makes use of the fixed model revision.
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