-
Notifications
You must be signed in to change notification settings - Fork 44
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
meraki_mx_vlan idempotency issues #434
Comments
Version of module:
|
Thank you for reporting this. I'm looking into it now. |
Update. I've found the bug responsible for the first error. 1 line fix. |
Regarding the second one, this one is harder. I think this error comes from Do you have a use case where you need to specify both? |
I agree with your analysis - i only stumbled across it trying to work out which attribute was throwing the original error. As for use case, no - nothing that couldn't be solved with some playbook logic - multiple calls and some "when x is defined" sort of thing. |
I think I could also have it strip that from the payload since it's incompatible. Would that create any problems you could imagine? |
No, it wouldn't, they are mutually exclusive in application. Is that compatible with the general approach and philosophy used in the rest of the project? are the modules in general acting as idempotent interfaces to the API - thus allowing me to malform a request should i wish to - or is including that sanity check part of the overall philosophy of the project? if it doesn't clash with your approach, that would make sense (and it should be set when |
I am facing the same issue with a much shorter declaration: - name: Create VLAN
cisco.meraki.meraki_mx_vlan:
auth_key: "{{ meraki_authentication_key }}"
org_id: "{{ meraki_organisation_details.data.id }}"
net_id: "{{ meraki_network_details.data.id }}"
state: present
vlan_id: "{{ meraki_vlan_id }}"
name: "{{ meraki_vlan_name }}"
subnet: "192.168.10.1/24"
appliance_ip: "192.168.10.1"
dns_nameservers: google_dns
delegate_to: localhost Here's what the module error contains:
|
Found the cause of my problem: the subnet was |
Thanks for the update. I'll take a look at the original bug still though. |
Two parameters of meraki_mx_vlan command have idempotency issues:
specifying dhcp_handelling causes:
"HTTP error 400 - https://api.meraki.com/api/v1/networks/L_690176642894537554/appliance/vlans/1 - 'dhcpHandling' must be a string"
specifying dhcp_relay_server_ips as an empty string ( for the second time) causes:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: 'NoneType' object is not subscriptable
the following can be used to reproduce the first issue and with commenting, the second.:
example run:
The text was updated successfully, but these errors were encountered: