CiscoDevNet/ansible-meraki

MX Static route failing with VLAN error code

gj0nyg opened this issue · 1 comments

fatal: [localhost]: FAILED! => {"changed": false, "msg": "HTTP error 400 - https://api.meraki.com/api/v1/networks/XXXX/appliance/staticRoutes/XXXX- 'gatewayVlanId' must be a string", "response": "OK (unknown bytes)", "status": 400}
Example playbook:

  • name: test
    hosts: localhost
    tasks:
    • name: test
      meraki_static_route:
      auth_key: XXXX
      state: present
      org_name: Bob's Org
      net_name: My network
      subnet: 10.1.1.0/24
      name: Net 10.1.1.0-24
      gateway_ip: 1.2.3.4
      delegate_to: localhost

I do support the gateway_ip but gatewayVlanId isn't supported in my module right now. I'm curious what about the call is requiring it since documentation (https://developer.cisco.com/meraki/api-v1/#!create-network-appliance-static-route) doesn't show it as required. I will work on this as it should be a relatively easy fix. Thank you for reporting it!