dashboard-api-python
dashboard-api-python copied to clipboard
createNetworkSwitchStackRoutingInterface, with uplinkV4 notworking
Describe how you confirmed the issue is with the library, and not with the API itself, or a server-side issue of some other kind.
You can usually confirm it's an issue with the library itself (or with Python) if you've executed the same operations using other tools (e.g. Postman, or Python requests library) and if you only have the issue when using this library. For example, if you can't reproduce it with Postman, then it might be a library issue. On the other hand, if you can reproduce it across platforms, then it's probably not an issue with the library. In that case, please report the issue to Meraki support.
Python version installed Which specific Python version are you using? 3.12 Meraki library version installed Which specific version of the library are you using?
Have you reproduced the issue with the latest version of this library? And with the latest version of Python?
OS Platform linux
Describe the bug invoke the SDK below with Uplink V4 get the error below response = dashboard.switch.createNetworkSwitchStackRoutingInterface(meraki_network_id,stack_id, name = 'uplinkSVI', vlanId= 30, uplinkV4 =True, multicastRouting='disabled', interfaceIp= '192.168.56.180',subnet= '192.168.56.128/26', defaultGateway='192.168.56.129')
eraki.exceptions.APIError: switch, createNetworkSwitchStackRoutingInterface - 4 00 Bad Request, {'errors': ['Cannot create an L3 Interface without creating eith er an IPv4 or IPv6 Uplink L3 Interface first.']}
but the Curl CLI works
How can we replicate the problem you're reporting? create the switch stack wiht DHCP as uplink then use the SDP API to change it to be static assignment . get error
use the curl command to post the payload it is working
For example, to reproduce:
- Invoke X endpoint with Y request attributes and/or Z query parameters.
- Expect outcome A.
Expected behavior it should work for both CURL and SDK
Code snippets If applicable, add code snippets to help explain your problem.
Additional context Add any other context about the problem here.