09-14-2022 08:55 AM
Ehi community!
I need your help with Cisco ACI acitoolkit
I created a script that creates Tenants, VRFs, APs, EPGs, BDs and the relative associations...it works fine: https://github.com/thetechguy-it/Cisco-ACI/blob/master/cfg_tenantFULL_direct.py
BUT, I'm not able to associate physical domain to the EPG using acitoolkit.
Do you have any experience? I manage to fix it by exporting the ApplicationProfile in json format, editing it and import the necessary section under the children section, but I would like to automate it using the python script:
Thanks!
Solved! Go to Solution.
09-16-2022 01:15 AM
Fixed
phydom = splitted_list[6] --> value retrieved from external txt file
dom = aci.EPGDomain.get_by_name(session, phydom)
epg.add_infradomain(dom)
difference:
type(dom)
<class 'acitoolkit.acitoolkit.EPGDomain'>
type(phydom)
<class 'str'>
I'll update my python script
09-16-2022 01:15 AM
Fixed
phydom = splitted_list[6] --> value retrieved from external txt file
dom = aci.EPGDomain.get_by_name(session, phydom)
epg.add_infradomain(dom)
difference:
type(dom)
<class 'acitoolkit.acitoolkit.EPGDomain'>
type(phydom)
<class 'str'>
I'll update my python script
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide