Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config failure when non-unique iosxr configuration lines are uploaded. #620

Open
vasger1984 opened this issue Feb 16, 2024 · 0 comments
Open

Comments

@vasger1984
Copy link

Hi Ansible Team,

we have Cisco IOS XR routers, where we would like to configure multiple policy-maps each containing the relevant configuration under the class class-default section.
Original configuration:

policy-map pol_map_1
  class class-default
    set mpls experimental imposition 5
end-policy-map

policy-map pol_map_2
  class class-default
    set mpls experimental imposition 7
end-policy-map

Unfortunately because the below linked line we are not able to do that as the 2nd, 3rd, ... class class-default lines are removed from the commands list. The IOS XR is not supporting the formal configuration syntax in case of policy-maps.

This is the resulted commands list:

policy-map pol_map_1
  class class-default
    set mpls experimental imposition 5
end-policy-map

policy-map pol_map_2
    set mpls experimental imposition 7
end-policy-map

Due to this the router doesn't accept the configuration, and fails with syntax error at the set mpls experimental imposition 7 line.

https://github.com/ansible-collections/ansible.netcommon/blame/0005f922cc5068e7e4d60099b0cad347f85e1308/plugins/module_utils/network/common/config.py#L405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant