- Got a policy map in our device and use the redirect nexthop route-target command.
- Have tried to get the policy map configuration with YDK and can only get the class-name and class-type with no additional policy map rule.
- Is it possible to 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 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>
Support for redirection is missing in model Cisco-IOS-XR-infra-policymgr-cfg. YDK just reflects the current state of the model. Have reported the XR defect (CSCvd21030) so it can be address. Once the model is fixed, YDK will reflect the updated model.
- once the model is fixed, wether is it needed to upgrade the YDK to a new version or still use the current version.
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.
Comments
0 comments
Please sign in to leave a comment.