"config-snapshot-value": {
"required": false,
"type": "string"
+ },
+ "response-data": {
+ "required": false,
+ "type": "json"
}
},
"capabilities": {
{
"description": "This is Jython Execution Component.",
"version": "1.0.0",
+ "attributes": {
+ "response-data": {
+ "required": false,
+ "type": "json"
+ }
+ },
"capabilities": {
"component-node": {
"type": "tosca.capabilities.Node"
{\r
"description": "This is Netconf Transaction Configuration Component API",\r
"version": "1.0.0",\r
+ "attributes": {\r
+ "response-data": {\r
+ "required": false,\r
+ "type": "json"\r
+ }\r
+ },\r
"capabilities": {\r
"component-node": {\r
"type": "tosca.capabilities.Node"\r
"ansible-command-logs": {
"required": true,
"type": "string"
+ },
+ "response-data": {
+ "required": false,
+ "type": "json"
}
},
"capabilities": {
{
"description": "This is CLI Transaction Configuration Component API",
"version": "1.0.0",
+ "attributes": {
+ "response-data": {
+ "required": false,
+ "type": "json"
+ }
+ },
"capabilities": {
"component-node": {
"type": "tosca.capabilities.Node"
def retrieve_resolved_template_from_database(self, key, artifact_template):
return ResourceResolutionExtensionsKt.storedContentFromResolvedArtifact(self.component_function, key,
artifact_template)
+
STATUS_SUCCESS = "success"
STATUS_FAILURE = "failure"
+ATTRIBUTE_RESPONSE_DATA = "response-data"
+
CONFIG_TARGET_RUNNING = "running"
CONFIG_TARGET_CANDIDATE = "candidate"
CONFIG_DEFAULT_OPERATION_MERGE = "merge"
-from netconf_constant import CONFIG_TARGET_RUNNING, CONFIG_TARGET_CANDIDATE, \
- CONFIG_DEFAULT_OPERATION_REPLACE
+from netconf_constant import *
from org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor import NetconfExecutorExtensionsKt
def discard_change(self):
device_response = self.netconf_rpc_client.discardConfig()
return device_response
+
+ def set_execution_attribute_response_data(self, response_data):
+ self.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)
# ============LICENSE_END=========================================================
#
from time import sleep
+from restconf_constant import *
from org.onap.ccsdk.cds.blueprintsprocessor.functions.restconf.executor import RestconfExecutorExtensionsKt
from org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution import ResourceResolutionExtensionsKt
url = self.__base_odl_url + nf_id
self.__log.debug("sending unmount request, url: {}", url)
web_client_service.exchangeResource("DELETE", url, "")
+
+ def set_execution_attribute_response_data(self, response_data):
+ self.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)
--- /dev/null
+ATTRIBUTE_RESPONSE_DATA = "response-data"
\ No newline at end of file