meraki / automation-scripts

MIT License
391 stars 198 forks source link

Single LAN is not available for networks in passthrough mode #33

Closed dvela-whg closed 2 years ago

dvela-whg commented 2 years ago

Hi getting this error when running backup.

appliance, getNetworkApplianceSingleLan - 400 Bad Request, {'errors': ['Single LAN is not available for networks in passthrough mode']}

mpapazog commented 2 years ago

Which script are you having the issue with? Any other details that would help pinpoint your use case?

dvela-whg commented 2 years ago

using this script https://github.com/meraki/automation-scripts/blob/master/backup_configs/backup_configs.py

i dont have any other information as below is the only error im getting appliance, getNetworkApplianceSingleLan - 400 Bad Request, {'errors': ['Single LAN is not available for networks in passthrough mode']}

Backup script still manage to complete the backup tho its incomplete i assume due to the error above

dvela-whg commented 2 years ago

@mpapazog any feedback on this?

mpapazog commented 2 years ago

I haven't had time to take a look at this yet.

If someone else following this thread wants to take a shot at replicating/resolving this, feel free. Probably some if-then-else code missing for handling appliance networks in passthrough mode.

mpapazog commented 2 years ago

The error message you see is harmless and should just be ignored. The code works as intended.

What happens is the following: when instructed to fetch security appliance VLANs, the code checks if VLANs have been enabled on the network or not. Networks in passthrough mode do not have VLANs enabled, so the code will attempt to fetch any single-LAN settings instead. This operation will fail and log the error message returned by the Dashboard API. Despite the error message, the script does not stop executing or fetching any additional data, it just informs the user that this operation is invalid for this particular network.

All in all, there is nothing to fix. Just ignore the error message.