10-31-2019 01:42 AM
Hello *,
for our Server Teams I have to provide the information how the network configuration for the server (connected to cisco aci fabric) looks like.
My first idea was at first to create an workflow to collect the information from the fabric with an generic rest api.
API Query
/api/node/mo/uni/infra/funcprof.json?query-target=subtree&target-subtree-class=infraAccBndlGrp&query-target-filter=and(not(wcard(polUni.dn, "__ui_")),not(eq(infraAccBndlGrp.lagT,"link")))&rsp-subtree=children&rsp-subtree-class=infraRsCdpIfPol,infraRsMcpIfPol,infraRsHIfPol,infraRsLldpIfPol,infraRsLacpPol,,infraAccBndlSubgrp,infraRsStpIfPol,infraRsAttEntP,infraRsSpanVSrcGrp,infraRsSpanVDestGrp,infraRsL2IfPol,infraRsStormctrlIfPol,infraRtAccBaseGrp
In the Workflow response (ouput.json) are all information included which the server guys are want to know.
How should the output look like for every Leaf Policy Group:
In the output.json I have current 73 different Leaf Policy groups.
My question are
Kind regards
Stefan
11-07-2019 10:21 AM
This would require product code changes to generate this report as we don’t persist these parameters in a single table/report. Inside the workflow you could generate a custom e-mail and specify the output parameters you want to share. Those parameters need to be defined/assigned in the flow, essentially any string literal value can be included.
You would need to create a custom task that parses the json string to build the output variable, you can’t output directly the JSON DOM elements. Here is an example of manipulating JSON data with cloupia script: https://community.cisco.com/t5/ucs-director-documents/parsing-json-objects-within-ucs-director-custom-workflow-tasks/ta-p/3641527
A service end user can see only the generic workflow status. It is possible to embed comments into the task status with something like what is shown here: https://community.cisco.com/t5/ucs-director-documents/ucsd-adding-initiator-service-request-sr-comments-and-task/ta-p/3623905
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: