Re: CDS Execution Scripts - Python Support #ccsdk #python


Steve Baillargeon
 

Thank you Jozsef!

 

-Steve

 

From: Csongvai, Jozsef <jozsef.csongvai@...>
Sent: Thursday, August 13, 2020 7:37 AM
To: Steve Baillargeon <steve.baillargeon@...>
Cc: onap-discuss@...; ym9479@...; Fontaine, Julien <julien.fontaine@...>
Subject: RE: [onap-discuss] CDS Execution Scripts - Python Support #ccsdk #python

 

Hi Steve,

“blueprint-action” is a reference to a class. All classes should be imported in the __init__.py file.

In the example Yuriy sent, the node template “execute-remote-python” defines "blueprint-action”: “HelloWorld”,

this class resides in /Scripts/python/hello_world.py and PyExecutor finds it by reading /Scripts/python/__init__.py

 

thanks,

Jozsef



On Aug 12, 2020, at 4:13 PM, Steve Baillargeon <steve.baillargeon@...> wrote:

 

Hi  

One quick clarification.

 

Below is the definition for component-remote-script-executor.

Why does it *not* include the path name to the python script included in the CBA?

I am just wondering how such component can find the desired python script.

Or is it blueprint-action?

 

{

  "node_types" : {

    "component-remote-script-executor" : {

      "description" : "Generic Remote Script Component Executor",

      "version" : "1.0.0",

      "attributes" : {

        "response-data" : {

          "description" : "Remote executed response data.",

          "required" : false,

          "type" : "json"

        },

        "status" : {

          "description" : "Remote execution status.",

          "required" : true,

          "type" : "string"

        }

      },

      "interfaces" : {

        "ComponentRemoteScriptExecutor" : {

          "operations" : {

            "process" : {

              "description" : "ComponentRemoteScriptExecutor Operation",

              "inputs" : {

                "blueprint-version" : {

                  "description" : "Blueprint version.",

                  "required" : true,

                  "type" : "string"

                },

                "blueprint-name" : {

                  "description" : "Blueprint name.",

                  "required" : true,

                  "type" : "string"

                },

                "selector" : {

                  "description" : "Remote GRPC selector or DSL reference or GRPC Json config.",

                  "required" : true,

                  "type" : "json"

                },

                "blueprint-action" : {

                  "description" : "Blueprint action name.",

                  "required" : true,

                  "type" : "string"

                },

                "timeout" : {

                  "description" : "Remote execution timeout in sec.",

                  "required" : true,

                  "type" : "integer",

                  "default" : 180

                },

                "request-data" : {

                  "description" : "Dynamic Json Content or DSL Json reference.",

                  "required" : false,

                  "type" : "json"

                }

              },

              "outputs" : {

                "status" : {

                  "description" : "Status of the Component Execution ( success or failure )",

                  "required" : true,

                  "type" : "string"

                }

              }

            }

          }

        }

      },

      "derived_from" : "tosca.nodes.Component"

    },

    "tosca.nodes.Component" : {

      "description" : "This is default Component Node",

      "version" : "1.0.0",

      "derived_from" : "tosca.nodes.Root"

    }

  }

}

 

Thanks again

 

-Steve

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of MALAKOV, YURIY via lists.onap.org
Sent: Wednesday, August 12, 2020 3:50 PM
To: onap-discuss@...; Steve Baillargeon <steve.baillargeon@...>
Cc: Fontaine, Julien <julien.fontaine@...>; jozsef.csongvai@...
Subject: Re: [onap-discuss] CDS Execution Scripts - Python Support #ccsdk #python

 

 

CDS Python executor support Python 3.6

 

Please use this sample. 

 

 

<image001.png>

 

Yuriy Malakov 

ONAP/ECOMP SA/SE

732-420-3030, Q-Chat

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of Steve Baillargeon via lists.onap.org
Sent: Wednesday, August 12, 2020 11:37 AM
To: onap-discuss@...
Subject: [onap-discuss] CDS Execution Scripts - Python Support #ccsdk #python

 

Hi
Does CDS support python execution scripts?
More specifically, is the component-netconf-executor.json node type with a python script supported by CDS in Guilin?
Which python version is used?

Thank you

SB


External Email: Please use caution when opening links and attachments / Courriel externe: Soyez prudent avec les liens et documents joints 

 

Join onap-discuss@lists.onap.org to automatically receive all group messages.