-
Notifications
You must be signed in to change notification settings - Fork 51
Fix route map if/else #536
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
base: main
Are you sure you want to change the base?
Conversation
Update eleif section for resolve route police data for route maps
update changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sean-m-sullivan can we please add some integration and unit tests to validate this change?
@sean-m-sullivan can you attach a playbook particularly |
Playbook
Also from a parsed config
linking case with more detail |
thanks @sean-m-sullivan i will get to this by this week! |
@Ruchip16 Update? |
SUMMARY
cisco iosxr_route_maps resource module fails to return facts with an error "list index out of range ".
Issue appears to be in the facts module utility in method rec_resolve_policy_data() that needs a condition if objs is defined.
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
Liniking case #04095628
ansible-playbook [core 2.15.8]
python version = 3.9.6
/home/user/.ansible/collections/ansible_collections
Collection Version
cisco.iosxr 10.3.0
PLAYBOOK: route_policies_parsed.yml ***************************************************************************************************************************************************************************************************************
1 plays in route_policies_parsed.yml
PLAY [all] ****************************************************************************************************************************************************************************************************************************************
TASK [Parse the provided configuration] ***********************************************************************************************************************************************************************************************************
task path: /home/achada2/sips_automation/Adi_Local_Testing_PBs/route_policies_parsed.yml:11
The full traceback is:
File "/home/achada2/.ansible/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py", line 128, in get_network_resources_facts
inst.populate_facts(self._connection, self.ansible_facts, data)