CONFIGURE_ACTION_DG_ID VNF_TYPE ACTION GENERATE_CONFIG_DG DOWNLOAD_CONFIG_DG
---------------------- ------------------------ -------------- ------------------ ------------------
34 vUSP - Revenue Assurance ConfigScaleOut (null) Generic_AnsibleDG
The value of GENERATE_CONFIG_DG for Ansible should be "Generic_AnsibleDG"
I forgot to mention here that I already tried to set Generic_AnsibleDG, but this results in playbook to be executed twice, because Generic_AnsibleDG will be executed again in the following chain:
$tmp.configureactiondg.DOWNLOAD-CONFIG-DG → SaveRunningConfig → GetDeviceRunningConfig → GetTemplateConfig_Ansible → Generic_AnsibleDG.
That's why I presumed just setting empty directed graph returning success all the time should "work", but this sounds more of a hack rather than solution
Based on my analysis, this value comes from DOWNLOAD_CONFIG_DG column of CONFIGURE_ACTION_DG table in the APP-C DB, which in turn gets populated by CDT with the download-dg-reference field from the reference data. I could not find any document which describes purpose of this parameter, I can only guess that this graph is responsible for downloading configuration to Ansible server, but which configuration - unclear, since ansible-adapter-1.0 graph expects certain set of parameters like: AgentUrl, User, Password and PlaybookName and they are populated by APP-C throughout the Configure action execution. My guess is if we put empty graph which just returns success, it should be fine. Any thoughts?
P.S. Confluence has troubles showing image, so here's the external link: https://ibb.co/mxMsWJ