meraki_static_route: Module does not query static routes
JT252 opened this issue · 4 comments
This command taken from the meraki_static_route module does not query the static route table.
- name: Delete static routes
meraki_static_route:
auth_key: abc123
state: absent
org_name: YourOrg
net_name: YourNet
delegate_to: localhost
This is what I get when I run the playbook:
ok: [localhost] => {
"changed": false,
"data": [],
"invocation": {
"module_args": {
"auth_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"enabled": null,
"fixed_ip_assignments": null,
"follow_redirects": "all",
"gateway_ip": null,
"gateway_vlan_id": null,
"host": "api.meraki.com",
"internal_error_retry_time": 60,
"name": null,
"net_id": null,
"net_name": "JT252",
"org_id": null,
"org_name": "JT252",
"output_format": "snakecase",
"output_level": "normal",
"protocol": "https",
"rate_limit_retry_time": 165,
"reserved_ip_ranges": null,
"route_id": null,
"state": "query",
"subnet": null,
"timeout": 30,
"use_https": true,
"use_proxy": false,
"validate_certs": true
}
},
"response": "OK (unknown bytes)",
"status": 200
Sorry about the delay getting back to you. The state should be query
and not absent
for the module to do the query. Does that resolve the problem?
I think I see the problem you're referring to. It's using state even though it's setup for absent
. Let me look into that further.
I'm unable to reproduce this locally. Can you confirm the playbook and the output match? The integration test at
seems to match your use case and appears to work as the next step outputs static route information.