summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEliezio Oliveira <eliezio.oliveira@est.tech>2019-07-30 14:12:14 +0100
committerDan Timoney <dtimoney@att.com>2019-08-09 19:46:04 +0000
commit1596f69d2e59a158ae509e798448a398b2c9559f (patch)
tree4c0116005410619c4923387d36c0e35cec0547a5
parent3a044bd88387ff8cc3f1a7e6ba5bb35fac4f3db7 (diff)
Fixed restconf Python scripts bugs caused by BPP refactor
Change-Id: I9f064aca6f40c0427614d41a08be6b0e6288bcec Issue-ID: CCSDK-1573 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py2
-rw-r--r--components/scripts/python/ccsdk_restconf/restconf_client.py7
2 files changed, 4 insertions, 5 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py b/components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py
index 17dd56104..7bda87229 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py
+++ b/components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py
@@ -14,8 +14,6 @@
# limitations under the License.
# ============LICENSE_END=========================================================
-from org.onap.ccsdk.cds.blueprintsprocessor.functions.restconf.executor import \
- RestconfComponentFunction
from java.lang import Exception as JavaException
from restconf_client import RestconfClient
diff --git a/components/scripts/python/ccsdk_restconf/restconf_client.py b/components/scripts/python/ccsdk_restconf/restconf_client.py
index ec25853f0..43f2a02c4 100644
--- a/components/scripts/python/ccsdk_restconf/restconf_client.py
+++ b/components/scripts/python/ccsdk_restconf/restconf_client.py
@@ -34,13 +34,13 @@ class RestconfClient:
self.__component_function = restconf_component_function
def web_client_service(self, identifier):
- RestconfExecutorExtensionsKt.restconfClientService(self.__component_function, identifier)
+ return RestconfExecutorExtensionsKt.restconfClientService(self.__component_function, identifier)
def resolve_and_generate_message_from_template_prefix(self, artifact_prefix):
- return ResourceResolutionExtensionsKt.contentFromResolvedArtifact(self.component_function, artifact_prefix)
+ return ResourceResolutionExtensionsKt.contentFromResolvedArtifact(self.__component_function, artifact_prefix)
def retrieve_resolved_template_from_database(self, key, artifact_template):
- return ResourceResolutionExtensionsKt.storedContentFromResolvedArtifact(self.component_function, key,
+ return ResourceResolutionExtensionsKt.storedContentFromResolvedArtifact(self.__component_function, key,
artifact_template)
def mount_device(self, web_client_service, nf_id, mount_payload):
@@ -55,6 +55,7 @@ class RestconfClient:
counter = 0
url = self.__odl_status_check_url + nf_id
self.__log.info("url for ODL status check: {}", url)
+ # TODO: allow JSON format change
expected_result = '"netconf-node-topology:connection-status":"connected"'
while counter < self.__odl_status_check_limit:
result = web_client_service.exchangeResource("GET", url, "")