Hi ,
I have noticed that the call : https://api.meraki.com/api/v1/devices/*******/switch/ports was returning me Trunk ports with voice vlans , which seems fishy at first.
For example :
https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/switch/ports
{"portId":"1","name":null,"tags":[],"enabled":true,"poeEnabled":true,"type":"trunk","vlan":1023,"voiceVlan":1031,"allowedVlans":"all","isolationEnabled":false,"rstpEnabled":true,"stpGuard":"disabled","linkNegotiation":"Auto negotiate","portScheduleId":null,"udld":"Alert only","accessPolicyType":"Open"}
https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/switch/ports/1
{"portId":"1","name":null,"tags":[],"enabled":true,"poeEnabled":true,"type":"trunk","vlan":1023,"voiceVlan":1031,"allowedVlans":"all","isolationEnabled":false,"rstpEnabled":true,"stpGuard":"disabled","linkNegotiation":"Auto negotiate","portScheduleId":null,"udld":"Alert only","accessPolicyType":"Open"}
Both endpoints are returning me voicevlan 1031 which is not present in the actual config :
But when looking at the ''access'' tab , I can see the ''other'' config :
I'm pretty sure there is a reason for that , something like you can have ''both'' configs ''ready'' in the dashboard so the API returns them.
If the switchport is in trunk mode , just display the trunk values , not the access values. I don't want to go over 3K switchports to remove the values in the access tab for the API to return the correct data.
Well...