The goal: Create a script that modifies existing ACI tenants and adds vrf and bridge domains to already created tenants.
I used API inspector to retrieve the JSON post snippet that modifies an existing tenant. Then I used arya.py to convert that JSON snippet into a python script with the various cobra modules. All appears to be fine until I run the script and I get the following message.
Traceback (most recent call last):
File "test3.py", line 75, in <module>
fvTenant = cobra.model.fv.Tenant(topMo)
TypeError: __init__() takes at least 3 arguments (2 given)
Attached is the JSON code from API inspector and the converted code. I have no problems creating fresh new tenants using this procedure but updating existing ones I do.
Can someone please review and make recommendations?
Thank you!