Skip to content

Fix route map if/else #549

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

Merged

Conversation

Ruchip16
Copy link
Member

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)

sean-m-sullivan and others added 5 commits March 24, 2025 14:38
@Ruchip16 Ruchip16 merged commit e501883 into ansible-collections:main May 27, 2025
50 checks passed
@Ruchip16 Ruchip16 deleted the sean-m-sullivan/main branch May 27, 2025 08:25
@Ruchip16 Ruchip16 mentioned this pull request May 27, 2025
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

Successfully merging this pull request may close these issues.

4 participants