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

IOS XE shows forward_router_address instead of AD in static route module #896

Open
bl1nkbl1nk opened this issue Aug 1, 2023 · 0 comments
Assignees
Labels
bug This issue/PR relates to a bug. static_routes static_routes resource module

Comments

@bl1nkbl1nk
Copy link

SUMMARY

in IOS XE the static route is not rendered correctly in some cases. Have a look at the following output:

                            {
                                "dest": "192.0.2.1/32",
                                "next_hops": [
                                    {
                                        "forward_router_address": "2",
                                        "interface": "Null0",
                                        "name": "remote_blackhole_route",
                                        "tag": 666
                                    }
                                ]
                            }

This is returned by the device after pushing a route with a higher distance_metric

          {
            "dest": "{{ entry.prefix }}",
            "next_hops": [
              {
                "interface": "Null0",
                "name": "generated_from_{{ item.description | lower | replace(' ', '_') | default('Unknown') }}",
                "distance_metric": "2",
                "tag": "301"
              }
            ]
ISSUE TYPE
  • Bug Report
COMPONENT NAME

cisco.ios.ios_static_routes

ANSIBLE VERSION
ansible [core 2.13.7]
  configured module search path = ['/Users/dimitry.kuijpers/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
  ansible collection location = /Users/dimitry.kuijpers/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.11 (main, Apr  7 2023, 07:31:31) [Clang 14.0.0 (clang-1400.0.29.202)]
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
cisco.ios                5.0.0  
OS / ENVIRONMENT

MACOS

STEPS TO REPRODUCE
  1. Push static route (or configure manual)

  2. collect facts

    cisco.ios.ios_facts:
    gather_subset:
    - "!all"
    gather_network_resources:
    - all

EXPECTED RESULTS

Push AD and then it should be reflected in the facts return (also module idempotency)

ACTUAL RESULTS

it is rendering forward address instead of AD in this case


@KB-perByte KB-perByte self-assigned this Aug 2, 2023
@KB-perByte KB-perByte added bug This issue/PR relates to a bug. static_routes static_routes resource module labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. static_routes static_routes resource module
Projects
None yet
Development

No branches or pull requests

2 participants