Open eleksis opened 2 months ago
Hi @KB-perByte, saw you assigned ticket to yourself. Is this in progress right now? Otherwise i will look into it.
@eleksis not actively looking at this, we would have planned it, if you want to add a contribution for the fix. We would be more than happy to review and merge the contribution. Thank you!
SUMMARY
Module does not generate necessary commands to achieve desired state (missing commands). There is possibility that bug is deeper in shared/netcommon compare() function. As we still (also) have problems with IP configuration via ios_l3_interfaces module. But not sure, as code is extremely difficult to read (a lot of non-intuitive var names, no comments, etc.).I am updating bug report, as i have found out i did not identify problem at the correct place. I thought module did not generate commands right, but as it turns out there is a problem in gathering facts (static routes) from device. Look below & compare before state from device output and before dict in module output.
ISSUE TYPE
COMPONENT NAME
ios_static_routes.py
ANSIBLE VERSION
STEPS TO REPRODUCE
BEFORE:
EXPECTED RESULTS
EXPECTED:
ACTUAL RESULTS
ADDITIONAL INFO
self.have in Static_routes already has wrong data, so bug must be in get_facts() / Static_routesFacts.