{%- if "Tenant" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,Owner Key,Owner Tag,User Domain,Modified Timestamp
{%-     for tenant in data_to_template['imdata'] %}
{{ tenant.fvTenant.attributes.name }},{{ tenant.fvTenant.attributes.nameAlias }},{{ tenant.fvTenant.attributes.descr | replace(","," ") }},{{ tenant.fvTenant.attributes.status }},{{ tenant.fvTenant.attributes.dn }},{{ tenant.fvTenant.attributes.uid }},{{ tenant.fvTenant.attributes.annotation }},{{ tenant.fvTenant.attributes.childAction }},{{ tenant.fvTenant.attributes.extMngdBy }},{{ tenant.fvTenant.attributes.lcOwn }},{{ tenant.fvTenant.attributes.monPolDn }},{{ tenant.fvTenant.attributes.ownerKey }},{{ tenant.fvTenant.attributes.ownerTag }},{{ tenant.fvTenant.attributes.userdom }},{{ tenant.fvTenant.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "AEPg" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,User Domain,Configuration Issues,Configuration State,Exception Tag,Flood On Encapsulation,Forward Control,Has Multicast Source,Is Attribute Based EPG,Is Shared Service Multicast Site EPG,Match T,PC Enforcement Preference,PC Tag,PC Tag Allocation Source,Preference Gr Member,Priority,Scope,Shutdown,Trigger State,TX Id,Modified Timestamp
{%-     for epg in data_to_template['imdata'] %}
{{ epg.fvAEPg.attributes.name }},{{ epg.fvAEPg.attributes.nameAlias }},{{ epg.fvAEPg.attributes.descr | replace(","," ") }},{{ epg.fvAEPg.attributes.status }},{{ epg.fvAEPg.attributes.dn }},{{ epg.fvAEPg.attributes.uid }},{{ epg.fvAEPg.attributes.annotation }},{{ epg.fvAEPg.attributes.childAction }},{{ epg.fvAEPg.attributes.extMngdBy }},{{ epg.fvAEPg.attributes.lcOwn }},{{ epg.fvAEPg.attributes.monPolDn }},{{ epg.fvAEPg.attributes.userdom }},{{ epg.fvAEPg.attributes.configIssues }},{{ epg.fvAEPg.attributes.configSt }},{{ epg.fvAEPg.attributes.exceptionTag }},{{ epg.fvAEPg.attributes.floodOnEncap }},{{ epg.fvAEPg.attributes.fwdCtrl }},{{ epg.fvAEPg.attributes.hasMcastSource }},{{ epg.fvAEPg.attributes.isAttrBasedEPg }},{{ epg.fvAEPg.attributes.isSharedSrvMsiteEPg }},{{ epg.fvAEPg.attributes.matchT }},{{ epg.fvAEPg.attributes.pcEnfPref }},{{ epg.fvAEPg.attributes.pcTag }},{{ epg.fvAEPg.attributes.pcTagAllocSrc }},{{ epg.fvAEPg.attributes.prefGrMemb }},{{ epg.fvAEPg.attributes.prio }},{{ epg.fvAEPg.attributes.scope }},{{ epg.fvAEPg.attributes.shutdown }},{{ epg.fvAEPg.attributes.triggerSt }},{{ epg.fvAEPg.attributes.txId }},{{ epg.fvAEPg.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "BD" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,User Domain,Configuration Issues,Optimize Wan Bandwidth,ARP Flood,Broadcast P,Endpoint Clear,Endpoint Move Detect Mode,Host Based Routing,Intersite BUM Traffic Allow,Intersite L2 Stretch,IP Learning,IPv6 Multicast Allow,Limit IP Learn To Subnets,Link Local Address,MAC,Multicast Allow,MTU,Multicase Destination Packet Action,Owner Key,Owner Tag,PC Tag,Scope,Segment,Type,Unicast Route,Unknown MAC Unicast Action,Unknown Multicast Action,IPv6 Unknown Multicast Action,Virtual MAC,Modified Timestamp
{%-     for bd in data_to_template['imdata'] %}
{{ bd.fvBD.attributes.name }},{{ bd.fvBD.attributes.nameAlias }},{{ bd.fvBD.attributes.descr | replace(","," ") }},{{ bd.fvBD.attributes.status }},{{ bd.fvBD.attributes.dn }},{{ bd.fvBD.attributes.uid }},{{ bd.fvBD.attributes.annotation }},{{ bd.fvBD.attributes.childAction }},{{ bd.fvBD.attributes.extMngdBy }},{{ bd.fvBD.attributes.lcOwn }},{{ bd.fvBD.attributes.monPolDn }},{{ bd.fvBD.attributes.userdom }},{{ bd.fvBD.attributes.configIssues }},{{ bd.fvBD.attributes.OptimizeWanBandwidth }},{{ bd.fvBD.attributes.arpFlood }},{{ bd.fvBD.attributes.bcastP }},{{ bd.fvBD.attributes.epClear }},{{ bd.fvBD.attributes.epMoveDetectMode }},{{ bd.fvBD.attributes.hostBasedRouting }},{{ bd.fvBD.attributes.intersiteBumTrafficAllow }},{{ bd.fvBD.attributes.intersiteL2Stretch }},{{ bd.fvBD.attributes.ipLearning }},{{ bd.fvBD.attributes.ipv6McastAllow }},{{ bd.fvBD.attributes.limitIpLearnToSubnets }},{{ bd.fvBD.attributes.llAddr }},{{ bd.fvBD.attributes.mac }},{{ bd.fvBD.attributes.mcastAllow }},{{ bd.fvBD.attributes.mtu }},{{ bd.fvBD.attributes.multiDstPktAct }},{{ bd.fvBD.attributes.ownerKey }},{{ bd.fvBD.attributes.ownerTag }},{{ bd.fvBD.attributes.pcTag }},{{ bd.fvBD.attributes.scope }},{{ bd.fvBD.attributes.seg }},{{ bd.fvBD.attributes.type }},{{ bd.fvBD.attributes.unicastRoute }},{{ bd.fvBD.attributes.unkMacUcastAct }},{{ bd.fvBD.attributes.unkMcastAct }},{{ bd.fvBD.attributes.v6unkMcastAct }},{{ bd.fvBD.attributes.vmac }},{{ bd.fvBD.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "Ctx" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,User Domain,Bridge Domain Enforced Enable,IP Data Plane Learning,Known Multicast Action,Owner Key,Owner Tag,PC Enforce Directory,PC Enforce Directory Updated,PC Enforce Preference,PC Tag,Scope,Seg,VRF ID,VRF Index,Modified Timestamp
{%-     for context in data_to_template['imdata'] %}
{{ context.fvCtx.attributes.name }},{{ context.fvCtx.attributes.nameAlias }},{{ context.fvCtx.attributes.descr | replace(","," ") }},{{ context.fvCtx.attributes.status }},{{ context.fvCtx.attributes.dn }},{{ context.fvCtx.attributes.uid }},{{ context.fvCtx.attributes.annotation }},{{ context.fvCtx.attributes.childAction }},{{ context.fvCtx.attributes.extMngdBy }},{{ context.fvCtx.attributes.lcOwn }},{{ context.fvCtx.attributes.monPolDn }},{{ context.fvCtx.attributes.userdom }},{{ context.fvCtx.attributes.bdEnforcedEnable }},{{ context.fvCtx.attributes.ipDataPlaneLearning }},{{ context.fvCtx.attributes.knwMcastAct }},{{ context.fvCtx.attributes.ownerKey }},{{ context.fvCtx.attributes.ownerTag }},{{ context.fvCtx.attributes.pcEnfDir }},{{ context.fvCtx.attributes.pcEnfDirUpdated }},{{ context.fvCtx.attributes.pcEnfPref }},{{ context.fvCtx.attributes.pcTag }},{{ context.fvCtx.attributes.scope }},{{ context.fvCtx.attributes.seg }},{{ context.fvCtx.attributes.vrfId }},{{ context.fvCtx.attributes.vrfIndex }},{{ context.fvCtx.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "Ap" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,User Domain,Owner Key,Owner Tag,Priority,Modified Timestamp
{%-     for application_profile in data_to_template['imdata'] %}
{{ application_profile.fvAp.attributes.name }},{{ application_profile.fvAp.attributes.nameAlias }},{{ application_profile.fvAp.attributes.descr | replace(","," ") }},{{ application_profile.fvAp.attributes.status }},{{ application_profile.fvAp.attributes.dn }},{{ application_profile.fvAp.attributes.uid }},{{ application_profile.fvAp.attributes.annotation }},{{ application_profile.fvAp.attributes.childAction }},{{ application_profile.fvAp.attributes.extMngdBy }},{{ application_profile.fvAp.attributes.lcOwn }},{{ application_profile.fvAp.attributes.monPolDn }},{{ application_profile.fvAp.attributes.userdom }},{{ application_profile.fvAp.attributes.ownerKey }},{{ application_profile.fvAp.attributes.ownerTag }},{{ application_profile.fvAp.attributes.prio }},{{ application_profile.fvAp.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "l3extOut" in api %}Name,Alias,Description,Status,DN,UID,Annotation,Child Action,Externally Managed By,Local Owner,Monitoring Policy DN,User Domain,Owner Key,Owner Tag,Priority,Enforce Route Control,Target DSCP,Modified Timestamp
{%-     for l3out in data_to_template['imdata'] %}
{{ l3out.l3extOut.attributes.name }},{{ l3out.l3extOut.attributes.nameAlias }},{{ l3out.l3extOut.attributes.descr | replace(","," ") }},{{ l3out.l3extOut.attributes.status }},{{ l3out.l3extOut.attributes.dn }},{{ l3out.l3extOut.attributes.uid }},{{ l3out.l3extOut.attributes.annotation }},{{ l3out.l3extOut.attributes.childAction }},{{ l3out.l3extOut.attributes.extMngdBy }},{{ l3out.l3extOut.attributes.lcOwn }},{{ l3out.l3extOut.attributes.monPolDn }},{{ l3out.l3extOut.attributes.userdom }},{{ l3out.l3extOut.attributes.ownerKey }},{{ l3out.l3extOut.attributes.ownerTag }},{{ l3out.l3extOut.attributes.prio }},{{ l3out.l3extOut.attributes.enforceRtctrl }},{{ l3out.l3extOut.attributes.targetDscp }},{{ l3out.l3extOut.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "l2extOut" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,LC Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,Target DSCP,UID,User Domain
{%-     for l2out in data_to_template['imdata'] %}
{{ l2out.l2extOut.attributes.name }},{{ l2out.l2extOut.attributes.nameAlias }},{{ l2out.l2extOut.attributes.annotation }},{{ l2out.l2extOut.attributes.childAction }},{{ l2out.l2extOut.attributes.descr | replace(","," ") }},{{ l2out.l2extOut.attributes.dn }},{{ l2out.l2extOut.attributes.extMngdBy }},{{ l2out.l2extOut.attributes.lcOwn }},{{ l2out.l2extOut.attributes.modTs }},{{ l2out.l2extOut.attributes.monPolDn }},{{ l2out.l2extOut.attributes.ownerKey }},{{ l2out.l2extOut.attributes.ownerTag }},{{ l2out.l2extOut.attributes.status }},{{ l2out.l2extOut.attributes.targetDscp }},{{ l2out.l2extOut.attributes.uid }},{{ l2out.l2extOut.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "Subnet" in api %}Name,Alias,Annotation,Child Action,Config Issues,Control,Debug Message,Description,DN,Externally Managed By,IP,IP Data Plane Learning,LC Owner,Monitoring Policy DN,Preferred,Scope,Status,UID,User Domain,Virtual,Last Modified
{%-     for subnet in data_to_template['imdata'] %}
{{ subnet.fvSubnet.attributes.name }},{{ subnet.fvSubnet.attributes.nameAlias }},{{ subnet.fvSubnet.attributes.annotation }},{{ subnet.fvSubnet.attributes.childAction }},{{ subnet.fvSubnet.attributes.configIssues }},{{ subnet.fvSubnet.attributes.ctrl }},{{ subnet.fvSubnet.attributes.debugMessage }},{{ subnet.fvSubnet.attributes.descr | replace(","," ") }},{{ subnet.fvSubnet.attributes.dn }},{{ subnet.fvSubnet.attributes.extMngdBy }},{{ subnet.fvSubnet.attributes.ip }},{{ subnet.fvSubnet.attributes.ipDPLearning }},{{ subnet.fvSubnet.attributes.lcOwn }},{{ subnet.fvSubnet.attributes.monPolDn }},{{ subnet.fvSubnet.attributes.preferred }},{{ subnet.fvSubnet.attributes.scope | replace(","," ")}},{{ subnet.fvSubnet.attributes.status }},{{ subnet.fvSubnet.attributes.uid }},{{ subnet.fvSubnet.attributes.userdom }},{{ subnet.fvSubnet.attributes.virtual }},{{ subnet.fvSubnet.attributes.modTs }}
{%-     endfor %}
{%- else %}
{%- if "CEp" in api %}Name,Name Alias,MAC,Annotation,Base EPG DN,Bridge Domain DN,Child Action,Container Name,DN,Encapsulation,ESG Use gDN,Externally Managed By,Full Fabric Path DN,POD,Path,Parent Interface,Interface Number,ID,ID Endpoint DN,LCC,LC Owner,Multicast Address,Last Modified,Monitor Policy DN,Status,UID,User Domain,UUID,VMM Source,VRF DN
{%-     for endpoint in data_to_template['imdata'] %}
{{ endpoint.fvCEp.attributes.name }},{{ endpoint.fvCEp.attributes.nameAlias }},{{ endpoint.fvCEp.attributes.mac }},{{ endpoint.fvCEp.attributes.annotation }},{{ endpoint.fvCEp.attributes.baseEpgDn }},{{ endpoint.fvCEp.attributes.bdDn }},{{ endpoint.fvCEp.attributes.childAction }},{{ endpoint.fvCEp.attributes.contName }},{{ endpoint.fvCEp.attributes.dn }},{{ endpoint.fvCEp.attributes.encap }},{{ endpoint.fvCEp.attributes.esgUsegDn }},{{ endpoint.fvCEp.attributes.extMngdBy }},{{ endpoint.fvCEp.attributes.fabricPathDn }},{%- if endpoint.fvCEp.attributes.fabricPathDn %}{{ endpoint.fvCEp.attributes.fabricPathDn | replace("topology/","") | replace("/",",") | replace("pathep-[","") | replace("]","")}}{%- if "eth" not in endpoint.fvCEp.attributes.fabricPathDn %},N/A{%- endif %}{%- else %}N/A,N/A,N/A,N/A{%- endif %},{{ endpoint.fvCEp.attributes.id }},{{ endpoint.fvCEp.attributes.idepdn }},{{ endpoint.fvCEp.attributes.lcC | replace(","," ") }},{{ endpoint.fvCEp.attributes.lcOwn }},{{ endpoint.fvCEp.attributes.mcastAddr }},{{ endpoint.fvCEp.attributes.modTs }},{{ endpoint.fvCEp.attributes.monPolDn }},{{ endpoint.fvCEp.attributes.status }},{{ endpoint.fvCEp.attributes.uid }},{{ endpoint.fvCEp.attributes.userdom }},{{ endpoint.fvCEp.attributes.uuid }},{{ endpoint.fvCEp.attributes.vmmSrc }},{{ endpoint.fvCEp.attributes.vrfDn }}
{%-     endfor %}
{%- else %}
{%- if "fabricNode" in api %}Name,Name Alias,AD St,Address,Annotation,APIC Type,Child Action,Delayed Heartbeat,DN,Externally Managed By,Fabric State,ID,Last State Modified,Local Owner,Last Modified,Model,Monitoring Policy DN,Node Type,Role,Serial,Status,UID,User Domain,Vendor,Version
{%-     for node in data_to_template['imdata'] %}
{{ node.fabricNode.attributes.name }},{{ node.fabricNode.attributes.nameAlias }},{{ node.fabricNode.attributes.adSt }},{{ node.fabricNode.attributes.address }},{{ node.fabricNode.attributes.annotation }},{{ node.fabricNode.attributes.apicType }},{{ node.fabricNode.attributes.childAction }},{{ node.fabricNode.attributes.delayedHeartbeat }},{{ node.fabricNode.attributes.dn }},{{ node.fabricNode.attributes.extMngdBy }},{{ node.fabricNode.attributes.fabricSt }},{{ node.fabricNode.attributes.id }},{{ node.fabricNode.attributes.lastStateModTs }},{{ node.fabricNode.attributes.lcOwn }},{{ node.fabricNode.attributes.modTs }},{{ node.fabricNode.attributes.model }},{{ node.fabricNode.attributes.monPolDn }},{{ node.fabricNode.attributes.nodeType }},{{ node.fabricNode.attributes.role }},{{ node.fabricNode.attributes.serial }},{{ node.fabricNode.attributes.status }},{{ node.fabricNode.attributes.uid }},{{ node.fabricNode.attributes.userdom }},{{ node.fabricNode.attributes.vendor | replace(","," ")}},{{ node.fabricNode.attributes.version }}
{%-     endfor %}
{%- else %}
{%- if "l1PhysIf" in api %}Admin State,Auto Negotiate,Breakout Map,Bandwidth,Child Action,Delay,Description,DFE Delay MS,DN,POD,Node,Dot1q EtherType,Eth PM Cfg Failed Bmp,Eth PM Cfg Failed Timestamp,Eth PM Cfg State,FCOT Channel Number,FEC Mode,ID,Inherited Bandwidth,Is Reflective Relay Config Supported,Layer,Local Owner,Link Debounce,Link Flap Error Max,Link Flap Error Seconds,Link Log,MDIX,Medium,Last Modified,Mode,Monitoring Policy DN,MTU,Name,Path S Description,Port Physical Media Type,Port T,Priority Flow Control,Reflective Relay Enable,Router MAC,SNMP Trap State,Span Mode,Speed,Status,Switching State,Trunk Log,Usage
{%-     for outer_list in data_to_template %}
{%-         for interface in outer_list %}
{{ interface.l1PhysIf.attributes.adminSt }},{{ interface.l1PhysIf.attributes.autoNeg }},{{ interface.l1PhysIf.attributes.brkoutMap }},{{ interface.l1PhysIf.attributes.bw }},{{ interface.l1PhysIf.attributes.childAction }},{{ interface.l1PhysIf.attributes.delay }},{{ interface.l1PhysIf.attributes.descr | replace(","," ") }},{{ interface.l1PhysIf.attributes.dfeDelayMs }},{{ interface.l1PhysIf.attributes.dn }},{{ interface.l1PhysIf.attributes.dn | replace("topology/","") | replace("/sys/phys-[","") | replace (interface.l1PhysIf.attributes.id,"") | replace("/",",") | replace("]","")}},{{ interface.l1PhysIf.attributes.dot1qEtherType }},{{ interface.l1PhysIf.attributes.ethpmCfgFailedBmp }},{{ interface.l1PhysIf.attributes.ethpmCfgFailedTs }},{{ interface.l1PhysIf.attributes.ethpmCfgState }},{{ interface.l1PhysIf.attributes.fcotChannelNumber }},{{ interface.l1PhysIf.attributes.fecMode }},{{ interface.l1PhysIf.attributes.id }},{{ interface.l1PhysIf.attributes.inhBw }},{{ interface.l1PhysIf.attributes.isReflectiveRelayCfgSupported }},{{ interface.l1PhysIf.attributes.layer }},{{ interface.l1PhysIf.attributes.lcOwn }},{{ interface.l1PhysIf.attributes.linkDebounce }},{{ interface.l1PhysIf.attributes.linkFlapErrorMax }},{{ interface.l1PhysIf.attributes.linkFlapErrorSeconds }},{{ interface.l1PhysIf.attributes.linkLog }},{{ interface.l1PhysIf.attributes.mdix }},{{ interface.l1PhysIf.attributes.medium }},{{ interface.l1PhysIf.attributes.modTs }},{{ interface.l1PhysIf.attributes.mode }},{{ interface.l1PhysIf.attributes.monPolDn }},{{ interface.l1PhysIf.attributes.mtu }},{{ interface.l1PhysIf.attributes.name }},{{ interface.l1PhysIf.attributes.pathSDescr }},{{ interface.l1PhysIf.attributes.portPhyMediaType }},{{ interface.l1PhysIf.attributes.portT }},{{ interface.l1PhysIf.attributes.prioFlowCtrl }},{{ interface.l1PhysIf.attributes.reflectiveRelayEn }},{{ interface.l1PhysIf.attributes.routerMac }},{{ interface.l1PhysIf.attributes.snmpTrapSt }},{{ interface.l1PhysIf.attributes.spanMode }},{{ interface.l1PhysIf.attributes.speed }},{{ interface.l1PhysIf.attributes.status }},{{ interface.l1PhysIf.attributes.switchingSt }},{{ interface.l1PhysIf.attributes.trunkLog }},{{ interface.l1PhysIf.attributes.usage | replace(","," ") }}
{%-         endfor %}
{%-     endfor %}
{%- else %}
{%- if "infraAccPortP" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for profile in data_to_template['imdata'] %}
{{ profile.infraAccPortP.attributes.name }},{{ profile.infraAccPortP.attributes.nameAlias }},{{ profile.infraAccPortP.attributes.annotation }},{{ profile.infraAccPortP.attributes.childAction }},{{ profile.infraAccPortP.attributes.descr | replace(","," ") }},{{ profile.infraAccPortP.attributes.dn }},{{ profile.infraAccPortP.attributes.extMngdBy }},{{ profile.infraAccPortP.attributes.lcOwn }},{{ profile.infraAccPortP.attributes.modTs }},{{ profile.infraAccPortP.attributes.monPolDn }},{{ profile.infraAccPortP.attributes.ownerKey }},{{ profile.infraAccPortP.attributes.ownerTag }},{{ profile.infraAccPortP.attributes.status }},{{ profile.infraAccPortP.attributes.uid }},{{ profile.infraAccPortP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraSpAccPortP" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for profile in data_to_template['imdata'] %}
{{ profile.infraSpAccPortP.attributes.name }},{{ profile.infraSpAccPortP.attributes.nameAlias }},{{ profile.infraSpAccPortP.attributes.annotation }},{{ profile.infraSpAccPortP.attributes.childAction }},{{ profile.infraSpAccPortP.attributes.descr | replace(","," ") }},{{ profile.infraSpAccPortP.attributes.dn }},{{ profile.infraSpAccPortP.attributes.extMngdBy }},{{ profile.infraSpAccPortP.attributes.lcOwn }},{{ profile.infraSpAccPortP.attributes.modTs }},{{ profile.infraSpAccPortP.attributes.monPolDn }},{{ profile.infraSpAccPortP.attributes.ownerKey }},{{ profile.infraSpAccPortP.attributes.ownerTag }},{{ profile.infraSpAccPortP.attributes.status }},{{ profile.infraSpAccPortP.attributes.uid }},{{ profile.infraSpAccPortP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraNodeP" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for profile in data_to_template['imdata'] %}
{{ profile.infraNodeP.attributes.name }},{{ profile.infraNodeP.attributes.nameAlias }},{{ profile.infraNodeP.attributes.annotation }},{{ profile.infraNodeP.attributes.childAction }},{{ profile.infraNodeP.attributes.descr | replace(","," ") }},{{ profile.infraNodeP.attributes.dn }},{{ profile.infraNodeP.attributes.extMngdBy }},{{ profile.infraNodeP.attributes.lcOwn }},{{ profile.infraNodeP.attributes.modTs }},{{ profile.infraNodeP.attributes.monPolDn }},{{ profile.infraNodeP.attributes.ownerKey }},{{ profile.infraNodeP.attributes.ownerTag }},{{ profile.infraNodeP.attributes.status }},{{ profile.infraNodeP.attributes.uid }},{{ profile.infraNodeP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraSpineP" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for profile in data_to_template['imdata'] %}
{{ profile.infraSpineP.attributes.name }},{{ profile.infraSpineP.attributes.nameAlias }},{{ profile.infraSpineP.attributes.annotation }},{{ profile.infraSpineP.attributes.childAction }},{{ profile.infraSpineP.attributes.descr | replace(","," ") }},{{ profile.infraSpineP.attributes.dn }},{{ profile.infraSpineP.attributes.extMngdBy }},{{ profile.infraSpineP.attributes.lcOwn }},{{ profile.infraSpineP.attributes.modTs }},{{ profile.infraSpineP.attributes.monPolDn }},{{ profile.infraSpineP.attributes.ownerKey }},{{ profile.infraSpineP.attributes.ownerTag }},{{ profile.infraSpineP.attributes.status }},{{ profile.infraSpineP.attributes.uid }},{{ profile.infraSpineP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "fvnsVlanInstP" in api %}Name,Name Alias,Allocation Mode,Annotation,Child Action,Configuration Issues,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for pool in data_to_template['imdata'] %}
{{ pool.fvnsVlanInstP.attributes.name }},{{ pool.fvnsVlanInstP.attributes.nameAlias }},{{ pool.fvnsVlanInstP.attributes.allocMode }},{{ pool.fvnsVlanInstP.attributes.annotation }},{{ pool.fvnsVlanInstP.attributes.childAction }},{{ pool.fvnsVlanInstP.attributes.configIssues }},{{ pool.fvnsVlanInstP.attributes.descr | replace(","," ") }},{{ pool.fvnsVlanInstP.attributes.dn }},{{ pool.fvnsVlanInstP.attributes.extMngdBy }},{{ pool.fvnsVlanInstP.attributes.lcOwn }},{{ pool.fvnsVlanInstP.attributes.modTs }},{{ pool.fvnsVlanInstP.attributes.monPolDn }},{{ pool.fvnsVlanInstP.attributes.ownerKey }},{{ pool.fvnsVlanInstP.attributes.ownerTag }},{{ pool.fvnsVlanInstP.attributes.status }},{{ pool.fvnsVlanInstP.attributes.uid }},{{ pool.fvnsVlanInstP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraAttEntityP" in api %}Name,Name Alias,Allocation Mode,Annotation,Child Action,Configuration Issues,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for profile in data_to_template['imdata'] %}
{{ profile.infraAttEntityP.attributes.name }},{{ profile.infraAttEntityP.attributes.nameAlias }},{{ profile.infraAttEntityP.attributes.allocMode }},{{ profile.infraAttEntityP.attributes.annotation }},{{ profile.infraAttEntityP.attributes.childAction }},{{ profile.infraAttEntityP.attributes.configIssues }},{{ profile.infraAttEntityP.attributes.descr | replace(","," ") }},{{ profile.infraAttEntityP.attributes.dn }},{{ profile.infraAttEntityP.attributes.extMngdBy }},{{ profile.infraAttEntityP.attributes.lcOwn }},{{ profile.infraAttEntityP.attributes.modTs }},{{ profile.infraAttEntityP.attributes.monPolDn }},{{ profile.infraAttEntityP.attributes.ownerKey }},{{ profile.infraAttEntityP.attributes.ownerTag }},{{ profile.infraAttEntityP.attributes.status }},{{ profile.infraAttEntityP.attributes.uid }},{{ profile.infraAttEntityP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "vzBrCP" in api %}Name,Name Alias,Access Privilege,Annotation,Child Action,Configuration Issues,Description,DN,Externally Managed By,Intent,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Priority,Re Evaluate All,Scope,Status,Target DSCP,UID,User Domain
{%-     for contract in data_to_template['imdata'] %}
{{ contract.vzBrCP.attributes.name }},{{ contract.vzBrCP.attributes.nameAlias }},{{ contract.vzBrCP.attributes.accessPrivilege }},{{ contract.vzBrCP.attributes.annotation }},{{ contract.vzBrCP.attributes.childAction }},{{ contract.vzBrCP.attributes.configIssues }},{{ contract.vzBrCP.attributes.descr | replace(","," ") }},{{ contract.vzBrCP.attributes.dn }},{{ contract.vzBrCP.attributes.extMngdBy }},{{ contract.vzBrCP.attributes.intent }},{{ contract.vzBrCP.attributes.lcOwn }},{{ contract.vzBrCP.attributes.modTs }},{{ contract.vzBrCP.attributes.monPolDn }},{{ contract.vzBrCP.attributes.ownerKey }},{{ contract.vzBrCP.attributes.ownerTag }},{{ contract.vzBrCP.attributes.prio }},{{ contract.vzBrCP.attributes.reevaluateAll }},{{ contract.vzBrCP.attributes.scope }},{{ contract.vzBrCP.attributes.status }},{{ contract.vzBrCP.attributes.targetDscp }},{{ contract.vzBrCP.attributes.uid }},{{ contract.vzBrCP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "vzEntry" in api %}Name,Name Alias,Access Privilege,Annotation,Apply To Fragments,ARP Opc,Child Action,Destination From Port,Destination To Port,Description,DN,EtherType,Externally Managed By,ICMPv4 T,ICMPv6 T,Local Owner,Match DSCP,Last Modified,Monitoring Policy DN,Protocol,Source From Port,Source To Port,Stateful,Status,TCP Rules,UID,User Domain
{%-     for entry in data_to_template['imdata'] %}
{{ entry.vzEntry.attributes.name }},{{ entry.vzEntry.attributes.nameAlias }},{{ entry.vzEntry.attributes.accessPrivilege }},{{ entry.vzEntry.attributes.annotation }},{{ entry.vzEntry.attributes.applyToFrag }},{{ entry.vzEntry.attributes.arpOpc }},{{ entry.vzEntry.attributes.childAction }},{{ entry.vzEntry.attributes.dFromPort }},{{ entry.vzEntry.attributes.dToPort }},{{ entry.vzEntry.attributes.descr | replace(","," ") }},{{ entry.vzEntry.attributes.dn }},{{ entry.vzEntry.attributes.etherT }},{{ entry.vzEntry.attributes.extMngdBy }},{{ entry.vzEntry.attributes.icmpv4T }},{{ entry.vzEntry.attributes.icmpv6T }},{{ entry.vzEntry.attributes.lcOwn }},{{ entry.vzEntry.attributes.matchDscp }},{{ entry.vzEntry.attributes.modTs }},{{ entry.vzEntry.attributes.monPolDn }},{{ entry.vzEntry.attributes.prot }},{{ entry.vzEntry.attributes.sFromPort }},{{ entry.vzEntry.attributes.sToPort }},{{ entry.vzEntry.attributes.stateful }},{{ entry.vzEntry.attributes.status }},{{ entry.vzEntry.attributes.tcpRules }},{{ entry.vzEntry.attributes.uid }},{{ entry.vzEntry.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "physDomP" in api %}Name,Name Alias,Annotation,Child Action,Configuration Issues,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for domain in data_to_template['imdata'] %}
{{ domain.physDomP.attributes.name }},{{ domain.physDomP.attributes.nameAlias }},{{ domain.physDomP.attributes.annotation }},{{ domain.physDomP.attributes.childAction }},{{ domain.physDomP.attributes.configIssues }},{{ domain.physDomP.attributes.dn }},{{ domain.physDomP.attributes.extMngdBy }},{{ domain.physDomP.attributes.lcOwn }},{{ domain.physDomP.attributes.modTs }},{{ domain.physDomP.attributes.monPolDn }},{{ domain.physDomP.attributes.ownerKey }},{{ domain.physDomP.attributes.ownerTag }},{{ domain.physDomP.attributes.status }},{{ domain.physDomP.attributes.uid }},{{ domain.physDomP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "l3extDomP" in api %}Name,Name Alias,Annotation,Child Action,Configuration Issues,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,UID,User Domain
{%-     for domain in data_to_template['imdata'] %}
{{ domain.l3extDomP.attributes.name }},{{ domain.l3extDomP.attributes.nameAlias }},{{ domain.l3extDomP.attributes.annotation }},{{ domain.l3extDomP.attributes.childAction }},{{ domain.l3extDomP.attributes.configIssues }},{{ domain.l3extDomP.attributes.dn }},{{ domain.l3extDomP.attributes.extMngdBy }},{{ domain.l3extDomP.attributes.lcOwn }},{{ domain.l3extDomP.attributes.modTs }},{{ domain.l3extDomP.attributes.monPolDn }},{{ domain.l3extDomP.attributes.ownerKey }},{{ domain.l3extDomP.attributes.ownerTag }},{{ domain.l3extDomP.attributes.status }},{{ domain.l3extDomP.attributes.uid }},{{ domain.l3extDomP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "qosClass" in api %}Name,Name Alias,Admin,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,MTU,Owner Key,Owner Tag,Priority,Status,UID,User Domain
{%-     for class in data_to_template['imdata'] %}
{{ class.qosClass.attributes.name }},{{ class.qosClass.attributes.nameAlias }},{{ class.qosClass.attributes.admin }},{{ class.qosClass.attributes.annotation }},{{ class.qosClass.attributes.childAction }},{{ class.qosClass.attributes.descr | replace(","," ") }},{{ class.qosClass.attributes.dn }},{{ class.qosClass.attributes.extMngdBy }},{{ class.qosClass.attributes.lcOwn }},{{ class.qosClass.attributes.modTs }},{{ class.qosClass.attributes.mtu }},{{ class.qosClass.attributes.ownerKey }},{{ class.qosClass.attributes.ownerTag }},{{ class.qosClass.attributes.prio }},{{ class.qosClass.attributes.status }},{{ class.qosClass.attributes.uid }},{{ class.qosClass.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "faultSummary" in api %}Cause,Child Action,Code,Count,Description,DN,Domain,Non Acknowledged,Non Delegated,Non Delegated And Non Acknowledged,Rule,Severity,Status,Subject,Type
{%-     for fault in data_to_template['imdata'] %}
{{ fault.faultSummary.attributes.cause }},{{ fault.faultSummary.attributes.childAction }},{{ fault.faultSummary.attributes.code }},{{ fault.faultSummary.attributes.count }},{{ fault.faultSummary.attributes.descr | replace(","," ") | replace(","," ")}},{{ fault.faultSummary.attributes.dn }},{{ fault.faultSummary.attributes.domain }},{{ fault.faultSummary.attributes.nonAcked }},{{ fault.faultSummary.attributes.nonDelegated }},{{ fault.faultSummary.attributes.nonDelegatedAndNonAcked }},{{ fault.faultSummary.attributes.rule }},{{ fault.faultSummary.attributes.severity }},{{ fault.faultSummary.attributes.status }},{{ fault.faultSummary.attributes.subject }},{{ fault.faultSummary.attributes.type }}
{%-     endfor %}
{%- else %}
{%- if "aaaModLR" in api %}ID,Affected,Cause,Change Set,Child Action,Client Tag,Code,Created,Description,DN,IND,Last Modified,Session ID,Severity,Status,Trigger,TX ID,User
{%-     for log in data_to_template['imdata'] %}
{{ log.aaaModLR.attributes.id }},{{ log.aaaModLR.attributes.affected }},{{ log.aaaModLR.attributes.cause }},{{ log.aaaModLR.attributes.changeSet | replace(","," ")}},{{ log.aaaModLR.attributes.childAction }},{{ log.aaaModLR.attributes.clientTag }},{{ log.aaaModLR.attributes.code }},{{ log.aaaModLR.attributes.created }},{{ log.aaaModLR.attributes.descr | replace(","," ") }},{{ log.aaaModLR.attributes.dn }},{{ log.aaaModLR.attributes.ind }},{{ log.aaaModLR.attributes.modTs }},{{ log.aaaModLR.attributes.sessionId }},{{ log.aaaModLR.attributes.severity }},{{ log.aaaModLR.attributes.status }},{{ log.aaaModLR.attributes.trig }},{{ log.aaaModLR.attributes.txId }},{{ log.aaaModLR.attributes.user }}
{%-     endfor %}
{%- else %}
{%- if "fvIp" in api %}IP Address,Annotation,Base EPG DN,Bridge Domain DN,Child Action,Created,Debug MAC Message,ESG Use gDN,Externally Managed By,Fabric Path DN,Flags,Local Owner,Last Modified,Monitoring Policy DN,DN,Status,UID,User Domain,VRF DN
{%-     for ip in data_to_template['imdata'] %}
{{ ip.fvIp.attributes.addr }},{{ ip.fvIp.attributes.annotation }},{{ ip.fvIp.attributes.baseEpgDn }},{{ ip.fvIp.attributes.bdDn }},{{ ip.fvIp.attributes.childAction }},{{ ip.fvIp.attributes.createTs }},{{ ip.fvIp.attributes.debugMACMessage }},{{ ip.fvIp.attributes.esgUsegDn }},{{ ip.fvIp.attributes.extMngdBy }},{{ ip.fvIp.attributes.fabricPathDn }},{{ ip.fvIp.attributes.flags }},{{ ip.fvIp.attributes.lcOwn }},{{ ip.fvIp.attributes.modTs }},{{ ip.fvIp.attributes.monPolDn }},{{ ip.fvIp.attributes.dn }},{{ ip.fvIp.attributes.status }},{{ ip.fvIp.attributes.uid }},{{ ip.fvIp.attributes.userdom }},{{ ip.fvIp.attributes.vrfDn }}
{%-     endfor %}
{%- else %}
{%- if "eventRecord" in api %}ID,Affected,Cause,Change Set,Child Action,Code,Created,Description,DN,IND,Last Modified,Severity,Status,Trigger,TX ID,User
{%-     for event in data_to_template['imdata'] %}
{{ event.eventRecord.attributes.id }},{{ event.eventRecord.attributes.affected }},{{ event.eventRecord.attributes.cause }},{{ event.eventRecord.attributes.changeSet | replace(','," ") }},{{ event.eventRecord.attributes.childAction }},{{ event.eventRecord.attributes.code }},{{ event.eventRecord.attributes.created }},{{ event.eventRecord.attributes.descr | replace(","," ")}},{{ event.eventRecord.attributes.dn }},{{ event.eventRecord.attributes.ind }},{{ event.eventRecord.attributes.modTs }},{{ event.eventRecord.attributes.severity }},{{ event.eventRecord.attributes.status }},{{ event.eventRecord.attributes.trig | replace(","," ")}},{{ event.eventRecord.attributes.txId }},{{ event.eventRecord.attributes.user }}
{%-     endfor %}
{%- else %}
{%- if "licenseEntitlement" in api %}Name,Auth Status,Child Action,Count,Description,DN,Local Owner,Last Modified,Status,Tag,Version
{%-     for license in data_to_template['imdata'] %}
{{ license.licenseEntitlement.attributes.name }},{{ license.licenseEntitlement.attributes.authStatus }},{{ license.licenseEntitlement.attributes.childAction }},{{ license.licenseEntitlement.attributes.count }},{{ license.licenseEntitlement.attributes.descr | replace(","," ")}},{{ license.licenseEntitlement.attributes.dn }},{{ license.licenseEntitlement.attributes.lcOwn }},{{ license.licenseEntitlement.attributes.modTs }},{{ license.licenseEntitlement.attributes.status }},{{ license.licenseEntitlement.attributes.tag | replace(","," ")}},{{ license.licenseEntitlement.attributes.version }}
{%-     endfor %}
{%- else %}
{%- if "bgpRRNodePEp" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,ID,Local Owner,Last Modified,Monitoring Policy DN,POD ID,Status,UID,User Domain
{%-     for rr in data_to_template['imdata'] %}
{{ rr.bgpRRNodePEp.attributes.name }},{{ rr.bgpRRNodePEp.attributes.nameAlias }},{{ rr.bgpRRNodePEp.attributes.annotation }},{{ rr.bgpRRNodePEp.attributes.childAction }},{{ rr.bgpRRNodePEp.attributes.descr | replace(","," ")}},{{ rr.bgpRRNodePEp.attributes.dn }},{{ rr.bgpRRNodePEp.attributes.extMngdBy }},{{ rr.bgpRRNodePEp.attributes.id }},{{ rr.bgpRRNodePEp.attributes.lcOwn }},{{ rr.bgpRRNodePEp.attributes.modTs }},{{ rr.bgpRRNodePEp.attributes.monPolDn }},{{ rr.bgpRRNodePEp.attributes.podId }},{{ rr.bgpRRNodePEp.attributes.status }},{{ rr.bgpRRNodePEp.attributes.uid }},{{ rr.bgpRRNodePEp.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraPortS" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,Type,UID,User Domain
{%-     for policy in data_to_template['imdata'] %}
{{ policy.infraHPortS.attributes.name }},{{ policy.infraHPortS.attributes.nameAlias }},{{ policy.infraHPortS.attributes.annotation }},{{ policy.infraHPortS.attributes.childAction }},{{ policy.infraHPortS.attributes.descr | replace(","," ")}},{{ policy.infraHPortS.attributes.dn }},{{ policy.infraHPortS.attributes.extMngdBy }},{{ policy.infraHPortS.attributes.lcOwn }},{{ policy.infraHPortS.attributes.modTs }},{{ policy.infraHPortS.attributes.monPolDn }},{{ policy.infraHPortS.attributes.ownerKey }},{{ policy.infraHPortS.attributes.ownerTag }},{{ policy.infraHPortS.attributes.status }},{{ policy.infraHPortS.attributes.type }},{{ policy.infraHPortS.attributes.uid }},{{ policy.infraHPortS.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "infraProfile" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Owner Key,Owner Tag,Status,Type,UID,User Domain
{%-     for policy in data_to_template['imdata'] %}
{%-         if policy.infraAccPortP %}
{{ policy.infraAccPortP.attributes.name }},{{ policy.infraAccPortP.attributes.nameAlias }},{{ policy.infraAccPortP.attributes.annotation }},{{ policy.infraAccPortP.attributes.childAction }},{{ policy.infraAccPortP.attributes.descr | replace(","," ")}},{{ policy.infraAccPortP.attributes.dn }},{{ policy.infraAccPortP.attributes.extMngdBy }},{{ policy.infraAccPortP.attributes.lcOwn }},{{ policy.infraAccPortP.attributes.modTs }},{{ policy.infraAccPortP.attributes.monPolDn }},{{ policy.infraAccPortP.attributes.ownerKey }},{{ policy.infraAccPortP.attributes.ownerTag }},{{ policy.infraAccPortP.attributes.status }},{{ policy.infraAccPortP.attributes.type }},{{ policy.infraAccPortP.attributes.uid }},{{ policy.infraAccPortP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraAttEntityP %}
{{ policy.infraAttEntityP.attributes.name }},{{ policy.infraAttEntityP.attributes.nameAlias }},{{ policy.infraAttEntityP.attributes.annotation }},{{ policy.infraAttEntityP.attributes.childAction }},{{ policy.infraAttEntityP.attributes.descr | replace(","," ")}},{{ policy.infraAttEntityP.attributes.dn }},{{ policy.infraAttEntityP.attributes.extMngdBy }},{{ policy.infraAttEntityP.attributes.lcOwn }},{{ policy.infraAttEntityP.attributes.modTs }},{{ policy.infraAttEntityP.attributes.monPolDn }},{{ policy.infraAttEntityP.attributes.ownerKey }},{{ policy.infraAttEntityP.attributes.ownerTag }},{{ policy.infraAttEntityP.attributes.status }},{{ policy.infraAttEntityP.attributes.type }},{{ policy.infraAttEntityP.attributes.uid }},{{ policy.infraAttEntityP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraFexP %}
{{ policy.infraFexP.attributes.name }},{{ policy.infraFexP.attributes.nameAlias }},{{ policy.infraFexP.attributes.annotation }},{{ policy.infraFexP.attributes.childAction }},{{ policy.infraFexP.attributes.descr | replace(","," ")}},{{ policy.infraFexP.attributes.dn }},{{ policy.infraFexP.attributes.extMngdBy }},{{ policy.infraFexP.attributes.lcOwn }},{{ policy.infraFexP.attributes.modTs }},{{ policy.infraFexP.attributes.monPolDn }},{{ policy.infraFexP.attributes.ownerKey }},{{ policy.infraFexP.attributes.ownerTag }},{{ policy.infraFexP.attributes.status }},{{ policy.infraFexP.attributes.type }},{{ policy.infraFexP.attributes.uid }},{{ policy.infraFexP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraFuncP %}
{{ policy.infraFuncP.attributes.name }},{{ policy.infraFuncP.attributes.nameAlias }},{{ policy.infraFuncP.attributes.annotation }},{{ policy.infraFuncP.attributes.childAction }},{{ policy.infraFuncP.attributes.descr | replace(","," ")}},{{ policy.infraFuncP.attributes.dn }},{{ policy.infraFuncP.attributes.extMngdBy }},{{ policy.infraFuncP.attributes.lcOwn }},{{ policy.infraFuncP.attributes.modTs }},{{ policy.infraFuncP.attributes.monPolDn }},{{ policy.infraFuncP.attributes.ownerKey }},{{ policy.infraFuncP.attributes.ownerTag }},{{ policy.infraFuncP.attributes.status }},{{ policy.infraFuncP.attributes.type }},{{ policy.infraFuncP.attributes.uid }},{{ policy.infraFuncP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraNodeP %}
{{ policy.infraNodeP.attributes.name }},{{ policy.infraNodeP.attributes.nameAlias }},{{ policy.infraNodeP.attributes.annotation }},{{ policy.infraNodeP.attributes.childAction }},{{ policy.infraNodeP.attributes.descr | replace(","," ")}},{{ policy.infraNodeP.attributes.dn }},{{ policy.infraNodeP.attributes.extMngdBy }},{{ policy.infraNodeP.attributes.lcOwn }},{{ policy.infraNodeP.attributes.modTs }},{{ policy.infraNodeP.attributes.monPolDn }},{{ policy.infraNodeP.attributes.ownerKey }},{{ policy.infraNodeP.attributes.ownerTag }},{{ policy.infraNodeP.attributes.status }},{{ policy.infraNodeP.attributes.type }},{{ policy.infraNodeP.attributes.uid }},{{ policy.infraNodeP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraPodP %}
{{ policy.infraPodP.attributes.name }},{{ policy.infraPodP.attributes.nameAlias }},{{ policy.infraPodP.attributes.annotation }},{{ policy.infraPodP.attributes.childAction }},{{ policy.infraPodP.attributes.descr | replace(","," ")}},{{ policy.infraPodP.attributes.dn }},{{ policy.infraPodP.attributes.extMngdBy }},{{ policy.infraPodP.attributes.lcOwn }},{{ policy.infraPodP.attributes.modTs }},{{ policy.infraPodP.attributes.monPolDn }},{{ policy.infraPodP.attributes.ownerKey }},{{ policy.infraPodP.attributes.ownerTag }},{{ policy.infraPodP.attributes.status }},{{ policy.infraPodP.attributes.type }},{{ policy.infraPodP.attributes.uid }},{{ policy.infraPodP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraSpAccPortP %}
{{ policy.infraSpAccPortP.attributes.name }},{{ policy.infraSpAccPortP.attributes.nameAlias }},{{ policy.infraSpAccPortP.attributes.annotation }},{{ policy.infraSpAccPortP.attributes.childAction }},{{ policy.infraSpAccPortP.attributes.descr | replace(","," ")}},{{ policy.infraSpAccPortP.attributes.dn }},{{ policy.infraSpAccPortP.attributes.extMngdBy }},{{ policy.infraSpAccPortP.attributes.lcOwn }},{{ policy.infraSpAccPortP.attributes.modTs }},{{ policy.infraSpAccPortP.attributes.monPolDn }},{{ policy.infraSpAccPortP.attributes.ownerKey }},{{ policy.infraSpAccPortP.attributes.ownerTag }},{{ policy.infraSpAccPortP.attributes.status }},{{ policy.infraSpAccPortP.attributes.type }},{{ policy.infraSpAccPortP.attributes.uid }},{{ policy.infraSpAccPortP.attributes.userdom }}
{%-         endif %}
{%-         if policy.infraSpineP %}
{{ policy.infraSpineP.attributes.name }},{{ policy.infraSpineP.attributes.nameAlias }},{{ policy.infraSpineP.attributes.annotation }},{{ policy.infraSpineP.attributes.childAction }},{{ policy.infraSpineP.attributes.descr | replace(","," ")}},{{ policy.infraSpineP.attributes.dn }},{{ policy.infraSpineP.attributes.extMngdBy }},{{ policy.infraSpineP.attributes.lcOwn }},{{ policy.infraSpineP.attributes.modTs }},{{ policy.infraSpineP.attributes.monPolDn }},{{ policy.infraSpineP.attributes.ownerKey }},{{ policy.infraSpineP.attributes.ownerTag }},{{ policy.infraSpineP.attributes.status }},{{ policy.infraSpineP.attributes.type }},{{ policy.infraSpineP.attributes.uid }},{{ policy.infraSpineP.attributes.userdom }}
{%-         endif %}
{%-     endfor %}
{%- else %}
{%- if "fabricPod" in api %}ID,Child Action,DN,Local Owner,Last Modified,Monitoring Policy DN,Pod Type,Status
{%-     for pod in data_to_template['imdata'] %}
{{ pod.fabricPod.attributes.id }},{{ pod.fabricPod.attributes.childAction }},{{ pod.fabricPod.attributes.dn }},{{ pod.fabricPod.attributes.lcOwn }},{{ pod.fabricPod.attributes.modTs }},{{ pod.fabricPod.attributes.monPolDn }},{{ pod.fabricPod.attributes.podType }},{{ pod.fabricPod.attributes.status }}
{%-     endfor %}
{%- else %}
{%- if "fabricPath" in api %}Node 1,Node 2,Child Action,DN,Local Owner,Last Updated,Monitoring Policy DN,Status
{%-     for path in data_to_template['imdata'] %}
{{ path.fabricPath.attributes.n1 }},{{ path.fabricPath.attributes.n2 }},{{ path.fabricPath.attributes.childAction }},{{ path.fabricPath.attributes.dn }},{{ path.fabricPath.attributes.lcOwn }},{{ path.fabricPath.attributes.modTs }},{{ path.fabricPath.attributes.monPolDn }},{{ path.fabricPath.attributes.status }}
{%-     endfor %}
{%- else %}
{%- if "rtctrlSubjP" in api %}Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Name,Name Alias,Status,UID,User Domain
{%-     for prefix_list in data_to_template['imdata'] %}
{{ prefix_list.rtctrlSubjP.attributes.annotation }},{{ prefix_list.rtctrlSubjP.attributes.childAction }},{{ prefix_list.rtctrlSubjP.attributes.description }},{{ prefix_list.rtctrlSubjP.attributes.dn }},{{ prefix_list.rtctrlSubjP.attributes.extMngdBy }},{{ prefix_list.rtctrlSubjP.attributes.lcOwn }},{{ prefix_list.rtctrlSubjP.attributes.modTs }},{{ prefix_list.rtctrlSubjP.attributes.name }},{{ prefix_list.rtctrlSubjP.attributes.nameAlias }},{{ prefix_list.rtctrlSubjP.attributes.status }},{{ prefix_list.rtctrlSubjP.attributes.uid }},{{ prefix_list.rtctrlSubjP.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "rtctrlMatchRtDest" in api %}Aggregate,Annotation,Child Action,Description,DN,Externally Managed By,fromPfxLen,IP,Local Owner,Last Modified,Name,Name Alias,Status,toPfxLen,Type,UID,User Domain
{%-     for outer_list in data_to_template %}
{%-         for prefix_list_detailed in outer_list %}
{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.aggregate }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.annotation }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.childAction }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.descr }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.dn }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.extMngdBy }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.fromPfxLen }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.ip }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.lcOwn }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.modTs }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.name }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.nameAlias }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.status }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.toPfxLen }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.type }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.uid }},{{ prefix_list_detailed.rtctrlMatchRtDest.attributes.userdom }}
{%-         endfor %}
{%-     endfor %}
{%- else %}
{%- if "aaaUser" in api %}Name,Name Alias,Account Status,Annotation,Cert Attribute,Child Action,Clear Password History,Description,DN,Email,Expiration,Expires,Externally Managed By,First Name,Last Name,Local Owner,Last Modified,Monitoring Policy DN,OTP Enable,OTP Enforced,OTP Key,Owner Key,Owner Tag,Phone,Password Life Time,Password Update Required,RBAC String,Restricted RBAC User,Status,UID,UNIX User ID,User Domain
{%-     for user in data_to_template['imdata'] %}
{{ user.aaaUser.attributes.name }},{{ user.aaaUser.attributes.nameAlias }},{{ user.aaaUser.attributes.accountStatus }},{{ user.aaaUser.attributes.annotation }},{{ user.aaaUser.attributes.certAttribute }},{{ user.aaaUser.attributes.childAction }},{{ user.aaaUser.attributes.clearPwdHistory }},{{ user.aaaUser.attributes.descr }},{{ user.aaaUser.attributes.dn }},{{ user.aaaUser.attributes.email }},{{ user.aaaUser.attributes.expiration }},{{ user.aaaUser.attributes.expires }},{{ user.aaaUser.attributes.extMngdBy }},{{ user.aaaUser.attributes.firstName }},{{ user.aaaUser.attributes.lastName }},{{ user.aaaUser.attributes.lcOwn }},{{ user.aaaUser.attributes.modTs }},{{ user.aaaUser.attributes.monPolDn }},{{ user.aaaUser.attributes.otpenable }},{{ user.aaaUser.attributes.otpenf }},{{ user.aaaUser.attributes.otpkey }},{{ user.aaaUser.attributes.ownerKey }},{{ user.aaaUser.attributes.ownerTag }},{{ user.aaaUser.attributes.phone }},{{ user.aaaUser.attributes.pwdLifeTime }},{{ user.aaaUser.attributes.pwdUpdateRequired }},{{ user.aaaUser.attributes.rbacString }},{{ user.aaaUser.attributes.restrictedRbacUser }},{{ user.aaaUser.attributes.status }},{{ user.aaaUser.attributes.uid }},{{ user.aaaUser.attributes.unixUserId }},{{ user.aaaUser.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "aaaDomain" in api %}Name,Name Alias,Annotation,Child Action,Description,DN,Externally Managed By,Local Owner,Last Modified,Owner Key,Owner Tag,Restricted RBAC Domain,Status,UID,User Domain
{%-     for domain in data_to_template['imdata'] %}
{{ domain.aaaDomain.attributes.name }},{{ domain.aaaDomain.attributes.nameAlias }},{{ domain.aaaDomain.attributes.annotation }},{{ domain.aaaDomain.attributes.childAction }},{{ domain.aaaDomain.attributes.descr }},{{ domain.aaaDomain.attributes.dn }},{{ domain.aaaDomain.attributes.extMngdBy }},{{ domain.aaaDomain.attributes.lcOwn }},{{ domain.aaaDomain.attributes.modTs }},{{ domain.aaaDomain.attributes.ownerKey }},{{ domain.aaaDomain.attributes.ownerTag }},{{ domain.aaaDomain.attributes.restrictedRbacDomain }},{{ domain.aaaDomain.attributes.status }},{{ domain.aaaDomain.attributes.uid }},{{ domain.aaaDomain.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "vzSubj" in api %}Name,Name Alias,Access Privilege,Annotation,Child Action,Configuration Issues,Consumer Match T,Description,DN,Externally Managed By,Local Owner,Last Modified,Monitoring Policy DN,Priority,Provider Match T,Reverse Filter Ports,Status,Target DSCP,UID,User Domain
{%-     for subject in data_to_template['imdata'] %}
{{ subject.vzSubj.attributes.name }},{{ subject.vzSubj.attributes.nameAlias }},{{ subject.vzSubj.attributes.accessPrivilege }},{{ subject.vzSubj.attributes.annotation }},{{ subject.vzSubj.attributes.childAction }},{{ subject.vzSubj.attributes.configIssues }},{{ subject.vzSubj.attributes.consMatchT }},{{ subject.vzSubj.attributes.descr }},{{ subject.vzSubj.attributes.dn }},{{ subject.vzSubj.attributes.extMngdBy }},{{ subject.vzSubj.attributes.lcOwn }},{{ subject.vzSubj.attributes.modTs }},{{ subject.vzSubj.attributes.monPolDn }},{{ subject.vzSubj.attributes.prio }},{{ subject.vzSubj.attributes.provMatchT }},{{ subject.vzSubj.attributes.revFltPorts }},{{ subject.vzSubj.attributes.status }},{{ subject.vzSubj.attributes.targetDscp }},{{ subject.vzSubj.attributes.uid }},{{ subject.vzSubj.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "topology/health" in api %}Change,Current,Child Action,DN,Local Owner,Maximum Severity,Last Modified,Previous,Status,TW Score,Updated
{%-     for score in data_to_template['imdata'] %}
{{ score.fabricHealthTotal.attributes.chng }},{{ score.fabricHealthTotal.attributes.cur }},{{ score.fabricHealthTotal.attributes.childAction }},{{ score.fabricHealthTotal.attributes.dn }},{{ score.fabricHealthTotal.attributes.lcOwn }},{{ score.fabricHealthTotal.attributes.maxSev }},{{ score.fabricHealthTotal.attributes.modTs }},{{ score.fabricHealthTotal.attributes.prev }},{{ score.fabricHealthTotal.attributes.status }},{{ score.fabricHealthTotal.attributes.twScore }},{{ score.fabricHealthTotal.attributes.updTs }}
{%-     endfor %}
{%- else %}
{%- if "pkiFabricNodeSSLCertificate" in api %}Name,Name Alias,Authority Key Identifier,Child Action,Data,Description,DN,Expired Certificate,Invalid Issuer,Invalid Signing CA For Certificate,Invalid Subject Format,Issuer,Key Size,Local Owner,Message,Last Modified,Monitoring Policy DN,Node ID,Node Type,Owner Key,Owner Tag,Public Key Algorithm,Serial Number,Signature Algorithm,Status,Subject,Subject Key Identifier,Valid Certificate,Validity Not After,Validity Not Before,Version
{%-     for cert in data_to_template['imdata'] %}
{{ cert.pkiFabricNodeSSLCertificate.attributes.name }},{{ cert.pkiFabricNodeSSLCertificate.attributes.nameAlias }},{{ cert.pkiFabricNodeSSLCertificate.attributes.authorityKeyIdentifier }},{{ cert.pkiFabricNodeSSLCertificate.attributes.childAction }},{{ cert.pkiFabricNodeSSLCertificate.attributes.data | replace("\n"," ") }},{{ cert.pkiFabricNodeSSLCertificate.attributes.descr }},{{ cert.pkiFabricNodeSSLCertificate.attributes.dn }},{{ cert.pkiFabricNodeSSLCertificate.attributes.expiredCertificate }},{{ cert.pkiFabricNodeSSLCertificate.attributes.invalidIssuer }},{{ cert.pkiFabricNodeSSLCertificate.attributes.invalidSigningCAForCertificate }},{{ cert.pkiFabricNodeSSLCertificate.attributes.invalidSubjectFormat }},{{ cert.pkiFabricNodeSSLCertificate.attributes.issuer }},{{ cert.pkiFabricNodeSSLCertificate.attributes.keySize }},{{ cert.pkiFabricNodeSSLCertificate.attributes.lcOwn }},{{ cert.pkiFabricNodeSSLCertificate.attributes.message }},{{ cert.pkiFabricNodeSSLCertificate.attributes.modTs }},{{ cert.pkiFabricNodeSSLCertificate.attributes.monPolDn }},{{ cert.pkiFabricNodeSSLCertificate.attributes.nodeId }},{{ cert.pkiFabricNodeSSLCertificate.attributes.nodeType }},{{ cert.pkiFabricNodeSSLCertificate.attributes.ownerKey }},{{ cert.pkiFabricNodeSSLCertificate.attributes.ownerTag }},{{ cert.pkiFabricNodeSSLCertificate.attributes.publicKeyAlgorithm }},{{ cert.pkiFabricNodeSSLCertificate.attributes.serialNumber }},{{ cert.pkiFabricNodeSSLCertificate.attributes.signatureAlgorithm }},{{ cert.pkiFabricNodeSSLCertificate.attributes.status }},{{ cert.pkiFabricNodeSSLCertificate.attributes.subject | replace(","," ")}},{{ cert.pkiFabricNodeSSLCertificate.attributes.subjectKeyIdentifier }},{{ cert.pkiFabricNodeSSLCertificate.attributes.validCertificate }},{{ cert.pkiFabricNodeSSLCertificate.attributes.validityNotAfter }},{{ cert.pkiFabricNodeSSLCertificate.attributes.validityNotBefore }},{{ cert.pkiFabricNodeSSLCertificate.attributes.version }}
{%-     endfor %}
{%- else %}
{%- if "tn-" and "health" in api %}DN,Change,Current,Previous,TW Score,Child Action,Max Severity,Last Modified,Status,Last Updated
{%-     for outer_list in data_to_template %}
{%-         for tenant in outer_list %}
{{ tenant.healthInst.attributes.dn }},{{ tenant.healthInst.attributes.chng }},{{ tenant.healthInst.attributes.cur }},{{ tenant.healthInst.attributes.prev }},{{ tenant.healthInst.attributes.twScore }},{{ tenant.healthInst.attributes.childAction }},{{ tenant.healthInst.attributes.maxSev }},{{ tenant.healthInst.attributes.modTs }},{{ tenant.healthInst.attributes.status }},{{ tenant.healthInst.attributes.updTs }}
{%-         endfor %}
{%-     endfor %}
{%- else %}
{%- if "firmwareCtrlrRunning" in api %}DN,Child Action,Description,Internal Label,Local Owner,Last Modified,Mode,Status,TPM In Use,Timestamp,Type,Version
{%-     for member in data_to_template['imdata'] %}
{{ member.firmwareCtrlrRunning.attributes.dn }},{{ member.firmwareCtrlrRunning.attributes.childAction }},{{ member.firmwareCtrlrRunning.attributes.descr }},{{ member.firmwareCtrlrRunning.attributes.internalLabel }},{{ member.firmwareCtrlrRunning.attributes.lcOwn }},{{ member.firmwareCtrlrRunning.attributes.modTs }},{{ member.firmwareCtrlrRunning.attributes.mode }},{{ member.firmwareCtrlrRunning.attributes.status }},{{ member.firmwareCtrlrRunning.attributes.tpmInUse }},{{ member.firmwareCtrlrRunning.attributes.ts }},{{ member.firmwareCtrlrRunning.attributes.type }},{{ member.firmwareCtrlrRunning.attributes.version }}
{%-     endfor %}
{%- else %}
{%- if "topSystem" in api %}
{%-     if "?" not in api %}Name,Address,Bootstrap State,Child Action,Cluster Time Diff,Configuration Issues,Control Plane MTU,Current Time,DN,Enforce Subnet Check,ETEP Address,Fabric Domain,Fabric ID,Fabric MAC,ID,Inband Mgmt Address,Inband Mgmt Address6,Inband Mgmt Address6 Mask,Inband Mgmt Address Mask,Inband Mgmt Gateway,Inband Mgmt Gateway6,Last Reboot Time,Last Reset Reason,LC Own,Modified Timestamp,Mode,Monitoring Policy DN,Name Alias,Node Type,Out of Band Mgmt Address,Out of Band Mgmt Address6,Out of Band Mgmt Address6 Mask,Out of Band Mgmt Address Mask,Out of Band Mgmt Gateway,Out of Band Mgmt Gateway6,Pod ID,Remote Network ID,Remote Node,RL Oper Pod ID,RL Routable Mode,RL Direct Mode,Role,Serial Number,Server Type,Site ID,State,Status,System Uptime,TEP Pool,Unicast XR EP Learn Disable,Version,Virtual Mode
{%-         for topSystem in data_to_template['imdata'] %}
{{ topSystem.topSystem.attributes.name }},{{ topSystem.topSystem.attributes.address }},{{ topSystem.topSystem.attributes.bootstrapState }},{{ topSystem.topSystem.attributes.childAction }},{{ topSystem.topSystem.attributes.clusterTimeDiff }},{{ topSystem.topSystem.attributes.configIssues }},{{ topSystem.topSystem.attributes.controlPlaneMTU }},{{ topSystem.topSystem.attributes.currentTime }},{{ topSystem.topSystem.attributes.dn }},{{ topSystem.topSystem.attributes.enforceSubnetCheck }},{{ topSystem.topSystem.attributes.etepAddr }},{{ topSystem.topSystem.attributes.fabricDomain }},{{ topSystem.topSystem.attributes.fabricId }},{{ topSystem.topSystem.attributes.fabricMAC }},{{ topSystem.topSystem.attributes.id }},{{ topSystem.topSystem.attributes.inbMgmtAddr }},{{ topSystem.topSystem.attributes.inbMgmtAddr }},{{ topSystem.topSystem.attributes.inbMgmtAddr6Mask }},{{ topSystem.topSystem.attributes.inbMgmtAddrMask }},{{ topSystem.topSystem.attributes.inbMgmtGateway }},{{ topSystem.topSystem.attributes.inbMgmtGateway6 }},{{ topSystem.topSystem.attributes.lastRebootTime }},{{ topSystem.topSystem.attributes.lastResetReason }},{{ topSystem.topSystem.attributes.lcOwn }},{{ topSystem.topSystem.attributes.modTs }},{{ topSystem.topSystem.attributes.mode }},{{ topSystem.topSystem.attributes.monPolDn }},{{ topSystem.topSystem.attributes.nameAlias }},{{ topSystem.topSystem.attributes.nodeType }},{{ topSystem.topSystem.attributes.oobMgmtAddr }},{{ topSystem.topSystem.attributes.oobMgmtAddr6 }},{{ topSystem.topSystem.attributes.oobMgmtAddr6Mask }},{{ topSystem.topSystem.attributes.oobMgmtAddrMask }},{{ topSystem.topSystem.attributes.oobMgmtGateway }},{{ topSystem.topSystem.attributes.oobMgmtGateway6 }},{{ topSystem.topSystem.attributes.podId }},{{ topSystem.topSystem.attributes.remoteNetworkId }},{{ topSystem.topSystem.attributes.remoteNode }},{{ topSystem.topSystem.attributes.rlOperPodId }},{{ topSystem.topSystem.attributes.rlRoutableMode }},{{ topSystem.topSystem.attributes.rldirectMode }},{{ topSystem.topSystem.attributes.role }},{{ topSystem.topSystem.attributes.serial }},{{ topSystem.topSystem.attributes.serverType }},{{ topSystem.topSystem.attributes.siteId }},{{ topSystem.topSystem.attributes.state }},{{ topSystem.topSystem.attributes.status }},{{ topSystem.topSystem.attributes.systemUpTime }},{{ topSystem.topSystem.attributes.tepPool }},{{ topSystem.topSystem.attributes.unicastXrEpLearnDisable }},{{ topSystem.topSystem.attributes.version }},{{ topSystem.topSystem.attributes.virtualMode }}
{%-         endfor %}
{%-     endif %}
{%- else %}
{%- if "infraWiNode" in api %}Node Name,Name,Name Alias,IP Address,Admin State,Annotation,APIC Mode,Chassis,Child Action,Control Sbst State,DN,Externally Managed By,Failover Status,Health,ID,Local Owner,Member Serial Number,Last Modified,Monitoring Policy DN,Mutn Timestamp,Operational State,Pod ID,Routable IP Address,Status,Target Member Serial Number,UID,User Domain
{%-     for node in data_to_template['imdata'] %}
{{ node.infraWiNode.attributes.nodeName }},{{ node.infraWiNode.attributes.name }},{{ node.infraWiNode.attributes.nameAlias }},{{ node.infraWiNode.attributes.addr }},{{ node.infraWiNode.attributes.adminSt }},{{ node.infraWiNode.attributes.annotation }},{{ node.infraWiNode.attributes.apicMode }},{{ node.infraWiNode.attributes.chassis }},{{ node.infraWiNode.attributes.childAction }},{{ node.infraWiNode.attributes.cntrlSbstState }},{{ node.infraWiNode.attributes.dn }},{{ node.infraWiNode.attributes.extMngdBy }},{{ node.infraWiNode.attributes.failoverStatus }},{{ node.infraWiNode.attributes.health }},{{ node.infraWiNode.attributes.id }},{{ node.infraWiNode.attributes.lcOwn }},{{ node.infraWiNode.attributes.mbSn }},{{ node.infraWiNode.attributes.modTs }},{{ node.infraWiNode.attributes.monPolDn }},{{ node.infraWiNode.attributes.mutnTs }},{{ node.infraWiNode.attributes.operSt }},{{ node.infraWiNode.attributes.podId }},{{ node.infraWiNode.attributes.routableIpAddr }},{{ node.infraWiNode.attributes.status }},{{ node.infraWiNode.attributes.targetMbSn }},{{ node.infraWiNode.attributes.uid }},{{ node.infraWiNode.attributes.userdom }}
{%-     endfor %}
{%- else %}
{%- if "vnsMDev" in api %}Vendor,Annotation,Audit On Busy,Child Action,DN,Externally Managed By,Function Mask,Local Owner,Managed,Last Modified,Model,Monitoring Policy DN,Status,UID,User Domain,Version
{%-     for package in data_to_template['imdata'] %}
{{ package.vnsMDev.attributes.vendor }},{{ package.vnsMDev.attributes.annotation }},{{ package.vnsMDev.attributes.auditOnBusy }},{{ package.vnsMDev.attributes.childAction }},{{ package.vnsMDev.attributes.dn }},{{ package.vnsMDev.attributes.extMngdBy }},{{ package.vnsMDev.attributes.funcMask | replace(","," ") }},{{ package.vnsMDev.attributes.lcOwn }},{{ package.vnsMDev.attributes.managed }},{{ package.vnsMDev.attributes.modTs }},{{ package.vnsMDev.attributes.model }},{{ package.vnsMDev.attributes.monPolDn }},{{ package.vnsMDev.attributes.status }},{{ package.vnsMDev.attributes.uid }},{{ package.vnsMDev.attributes.userdom }},{{ package.vnsMDev.attributes.version }}
{%-     endfor %}
{%- else %}
{%- if "cnwAggrIf" in api %}Name,Admin State,Auto Negotiate,Bandwidth,Child Action,Delay,Description,DN,Dot1q Ether Type,FCOT Channel Number,ID,Inherited Bandwidth,Is Reflective Relay Config Supported,Layer,Local Owner,Link Debounce,Link Log,MDIX,Medium,Last Modified,Mode,Monitoring Policy DN,MTU,Oper State,Path S Description,Port T,Priority Flow Control,Reflective Relay Enable,Router MAC,SNMP Trap State,Span Mode,Speed,Status,Switching State,Trunk Log,Usage
{%-     for interface in data_to_template['imdata'] %}
{{ interface.cnwAggrIf.attributes.name }},{{ interface.cnwAggrIf.attributes.adminSt }},{{ interface.cnwAggrIf.attributes.autoNeg }},{{ interface.cnwAggrIf.attributes.bw }},{{ interface.cnwAggrIf.attributes.childAction }},{{ interface.cnwAggrIf.attributes.delay }},{{ interface.cnwAggrIf.attributes.descr }},{{ interface.cnwAggrIf.attributes.dn }},{{ interface.cnwAggrIf.attributes.dot1qEtherType }},{{ interface.cnwAggrIf.attributes.fcotChannelNumber }},{{ interface.cnwAggrIf.attributes.id }},{{ interface.cnwAggrIf.attributes.inhBw }},{{ interface.cnwAggrIf.attributes.isReflectiveRelayCfgSupported }},{{ interface.cnwAggrIf.attributes.layer }},{{ interface.cnwAggrIf.attributes.lcOwn }},{{ interface.cnwAggrIf.attributes.linkDebounce }},{{ interface.cnwAggrIf.attributes.linkLog }},{{ interface.cnwAggrIf.attributes.mdix }},{{ interface.cnwAggrIf.attributes.medium }},{{ interface.cnwAggrIf.attributes.modTs }},{{ interface.cnwAggrIf.attributes.mode }},{{ interface.cnwAggrIf.attributes.monPolDn }},{{ interface.cnwAggrIf.attributes.mtu }},{{ interface.cnwAggrIf.attributes.operSt }},{{ interface.cnwAggrIf.attributes.pathSDescr }},{{ interface.cnwAggrIf.attributes.portT }},{{ interface.cnwAggrIf.attributes.prioFlowCtrl }},{{ interface.cnwAggrIf.attributes.reflectiveRelayEn }},{{ interface.cnwAggrIf.attributes.routerMac }},{{ interface.cnwAggrIf.attributes.snmpTrapSt }},{{ interface.cnwAggrIf.attributes.spanMode }},{{ interface.cnwAggrIf.attributes.speed }},{{ interface.cnwAggrIf.attributes.status }},{{ interface.cnwAggrIf.attributes.switchingSt }},{{ interface.cnwAggrIf.attributes.trunkLog }},{{ interface.cnwAggrIf.attributes.usage }}
{%-     endfor %}
{%- else %}
{%- if "l3Inst" in api %}Name,Admin State,BGP RD,BGP RD Display,Child Action,Created Timestamp,CTX PKey,DN,Domain ID,Encapsulation,GSDB CTX,ID,L3 VM Config Failed Bmp,L3 VM Config Failed Timestamp,L3 VM Config State,Last Changed Timestamp,Local Owner,Last Modified,Monitoring Policy DN,MPLS VPN Label Index,Old Oper State Quality,Oper State Quality,Oper State,Oui,Pending,Port CL Bmp,Resource ID,Scope,Status,v4 Tib ID,v4 Tib Name,v4 Tib Old Oper State Quality,v4 Tib Oper State Quality,v4 Tib Oper State,v4 Tib Pending,v4 Tib Valid,v6 Tib ID,v6 Tib Name,v6 Tib Old Oper State Quality,v6 Tib Oper State Quality,v6 Tib Oper State,v6 Tib Pending,v6 Tib Valid,VPN ID
{%-     for interface in data_to_template['imdata'] %}
{{ interface.l3Inst.attributes.name }},{{ interface.l3Inst.attributes.adminState }},{{ interface.l3Inst.attributes.bgpRd | replace(","," ") }},{{ interface.l3Inst.attributes.bgpRdDisp }},{{ interface.l3Inst.attributes.childAction }},{{ interface.l3Inst.attributes.createTs }},{{ interface.l3Inst.attributes.ctxPKey }},{{ interface.l3Inst.attributes.dn }},{{ interface.l3Inst.attributes.domainId }},{{ interface.l3Inst.attributes.encap }},{{ interface.l3Inst.attributes.gsdbCtx }},{{ interface.l3Inst.attributes.id }},{{ interface.l3Inst.attributes.l3vmCfgFailedBmp }},{{ interface.l3Inst.attributes.l3vmCfgFailedTs }},{{ interface.l3Inst.attributes.l3vmCfgState }},{{ interface.l3Inst.attributes.lastChgdTs }},{{ interface.l3Inst.attributes.lcOwn }},{{ interface.l3Inst.attributes.modTs }},{{ interface.l3Inst.attributes.monPolDn }},{{ interface.l3Inst.attributes.mplsVPNLabelIndex }},{{ interface.l3Inst.attributes.oldOperStQual }},{{ interface.l3Inst.attributes.operStQual }},{{ interface.l3Inst.attributes.operState }},{{ interface.l3Inst.attributes.oui }},{{ interface.l3Inst.attributes.pending }},{{ interface.l3Inst.attributes.prtclBmp }},{{ interface.l3Inst.attributes.resourceId }},{{ interface.l3Inst.attributes.scope }},{{ interface.l3Inst.attributes.status }},{{ interface.l3Inst.attributes.v4TibId }},{{ interface.l3Inst.attributes.v4TibName }},{{ interface.l3Inst.attributes.v4TibOldOperStQual }},{{ interface.l3Inst.attributes.v4TibOperStQual }},{{ interface.l3Inst.attributes.v4TibOperState }},{{ interface.l3Inst.attributes.v4TibPending }},{{ interface.l3Inst.attributes.v4TibValid }},{{ interface.l3Inst.attributes.v6TibId }},{{ interface.l3Inst.attributes.v6TibName }},{{ interface.l3Inst.attributes.v6TibOldOperStQual }},{{ interface.l3Inst.attributes.v6TibOperStQual }},{{ interface.l3Inst.attributes.v6TibOperState }},{{ interface.l3Inst.attributes.v6TibPending }},{{ interface.l3Inst.attributes.v6TibValid }},{{ interface.l3Inst.attributes.vpnId }}
{%-     endfor %}
{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}{%- endif %}