cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Issue with cisco.ios.ios_route_maps ansible module

Nathan Spitzer
Level 1
Level 1

I am trying to deploy the following configuration to some routers using Ansible:

 

route-map BGP_TO_EC permit 10
match ip address prefix-list DEFAULT

 

As far as I can tell from the documentation this should be the correct YAML:

 

 - name: create/verify route map
      cisco.ios.ios_route_maps:
        config:
          - route_map: BGP_TO_EC
            entries: 
            - sequence: 10
              action: permit
              match:
                ip:
                  address:
                    prefix_lists:
                      - DEFAULT

 

However when I try to run that I get an error:

"msg": "'route_map' is undefined"

 

I would normally believe I just messed up except I attempted to parse the above valid configuration and that also fails with the same error. I have attached my test file and test playbook and the full error message from a test run.

 

I am using cisco.ios version 2.8.1, ansible  version  2.10.8

 

If anyone has any ideas it would be greatly appreciated.

 

Who Me Too'd this topic