Thank you Jozsef!

-Steve

From: Csongvai, Jozsef <[email protected]>
Sent: Thursday, August 13, 2020 7:37 AM
To: Steve Baillargeon <[email protected]>
Cc: [email protected]; [email protected]; Fontaine, Julien 
<[email protected]>
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 
<[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
MALAKOV, YURIY via 
lists.onap.org<https://protect2.fireeye.com/v1/url?k=910a7d15-cfaad3d8-910a3d8e-866132fe445e-b4681665058b0413&q=1&e=4f5cc6f7-8b7d-4759-a9bc-cb66c96321da&u=http%3A%2F%2Flists.onap.org%2F>
Sent: Wednesday, August 12, 2020 3:50 PM
To: [email protected]<mailto:[email protected]>; Steve 
Baillargeon 
<[email protected]<mailto:[email protected]>>
Cc: Fontaine, Julien <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
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<qto://talk/ym9479>
[email protected]<mailto:[email protected]>

From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
Steve Baillargeon via 
lists.onap.org<https://protect2.fireeye.com/v1/url?k=02983e08-5c3890c5-02987e93-866132fe445e-63f2c6a4437fa59c&q=1&e=4f5cc6f7-8b7d-4759-a9bc-cb66c96321da&u=http%3A%2F%2Flists.onap.org%2F>
Sent: Wednesday, August 12, 2020 11:37 AM
To: [email protected]<mailto:[email protected]>
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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#21901): https://lists.onap.org/g/onap-discuss/message/21901
Mute This Topic: https://lists.onap.org/mt/76149468/21656
Mute #ccsdk: https://lists.onap.org/g/onap+onap-discuss/mutehashtag/ccsdk
Mute #python: https://lists.onap.org/g/onap+onap-discuss/mutehashtag/python
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to