cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
396
Views
0
Helpful
1
Replies

Cisco ACI acitoolkit EPG-Physical Domain association

r.nalesso
Level 1
Level 1

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: github.com/thetechguy-it/

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: 

 

"children":[
                         {
                            "fvRsDomAtt":{
                               "attributes":{
                                  "annotation":"",
                                  "bindingType":"none",
                                  "classPref":"encap",
                                  "customEpgName":"",
                                  "delimiter":"",
                                  "encap":"unknown",
                                  "encapMode":"auto",
                                  "epgCos":"Cos0",
                                  "epgCosPref":"disabled",
                                  "instrImedcy":"lazy",
                                  "lagPolicyName":"",
                                  "netflowDir":"both",
                                  "netflowPref":"disabled",
                                  "numPorts":"0",
                                  "portAllocation":"none",
                                  "primaryEncap":"unknown",
                                  "primaryEncapInner":"unknown",
                                  "resImedcy":"immediate",
                                  "secondaryEncapInner":"unknown",
                                  "switchingMode":"native",
                                  "tDn":"uni/phys-Physical_PhysDom",
                                  "untagged":"no",
                                  "userdom":":all:",
                                  "vnetOnly":"no"
                               }
                            }
                         },


Thanks!

1 Accepted Solution

Accepted Solutions

r.nalesso
Level 1
Level 1

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

View solution in original post

1 Reply 1

r.nalesso
Level 1
Level 1

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

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License