Hi,

I suggest to sue onap-sdk and the examples there to try i.e. basic vm 
instantiation.

https://github.com/Orange-OpenSource/python-onapsdk/tree/develop/docs/examples

Regards,

[Logo Orange]

Łukasz Rajewski, R&D Expert
Orange Innovations Poland, Virtual Programmable Infrastructure Skill center
Mob.: +48 604307879
Orange Polska, Obrzeżna 7, 02-691 Warszawa
www.orange.pl<http://www.orange.pl/>

From: [email protected] <[email protected]> On Behalf Of 
[email protected]
Sent: Wednesday, November 10, 2021 9:27 AM
To: Mandeep Singh Kalra <[email protected]>; 
[email protected]
Subject: Re: [onap-discuss] SDNC Preload Generic Resource API


Hi @Brian Freeman and @Mandeep Singh Kalra
I have a problem in preloading data to SDNC when I want to configure VF Module 
in VID dashboard.

 I use the below API



curl -k -X POST \
https://sdnc.api.simpledemo.onap.org:30267/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation
 \
-H 'Accept: application/json' \
-H 'Authorization: Basic 
YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==' \
-H 'Content-Type: application/json' \
-H 'X-FromAppId: API client' \
-H 'X-TransactionId: 0a3f6713-ba96-4971-a6f8-c2da85a3176e' \
-H 'cache-control: no-cache' \
-d ' {
    "input": {
        "vnf-topology-information": {
            "vnf-topology-identifier": {
                "service-type": "d22ff55e-b94a-41d7-892c-e284748e456c",
                "vnf-name": "VFWCL",
                "vnf-type": "VfwclVpkgF40a5456Be46..base_vpkg..module-0",
                "generic-vnf-name": "VFWCL",
                "generic-vnf-type": "vFWCL_vPKG f40a5456-be46 0"
            },
            "vnf-assignments": {
                "availability-zones": [],
                "vnf-networks": [],
                "vnf-vms": []
            },
      "vnf-parameters":
      [
{
"vnf-parameter-name": "image_name",
"vnf-parameter-value": "ubuntu-20"
},
{
"vnf-parameter-name": "flavor_name",
"vnf-parameter-value": "m1.medium"
},
{
"vnf-parameter-name": "public_net_id",
"vnf-parameter-value": "adb9c5ec-5444-4b7b-ba57-cddad5c68fb2"
},
{
"vnf-parameter-name": "unprotected_private_net_id",
"vnf-parameter-value": "b762ce61-1406-494d-817d-71cc0ca0fd08"
},
{
"vnf-parameter-name": "unprotected_private_subnet_id",
"vnf-parameter-value": "cafc0dc4-3a6d-489a-bf2e-898ec3402d7b"
},
{
"vnf-parameter-name": "protected_private_net_id",
"vnf-parameter-value": "ea71fc84-072f-49d6-83b0-423520cc8f7d"
},
{
"vnf-parameter-name": "protected_private_subnet_id",
"vnf-parameter-value": "zdfw1fwl01_protected_sub"
},
{
"vnf-parameter-name": "onap_private_net_id",
"vnf-parameter-value": "e4c257f1-084d-48dd-897e-f6ded60f18a7"
},
{
"vnf-parameter-name": "onap_private_subnet_id",
"vnf-parameter-value": "c7d47086-6ddf-4243-921c-e886fa5874f1"
},
{
"vnf-parameter-name": "unprotected_private_net_cidr",
"vnf-parameter-value": "10.10.0.0/24"
},
{
"vnf-parameter-name": "protected_private_net_cidr",
"vnf-parameter-value": "10.20.20.0/24"
},
{
"vnf-parameter-name": "onap_private_net_cidr",
"vnf-parameter-value": "10.10.10.0/24"
},
{
"vnf-parameter-name": "vfw_private_ip_0",
"vnf-parameter-value": "10.20.20.10"
},
{
"vnf-parameter-name": "vpg_private_ip_0",
"vnf-parameter-value": "10.20.20.11"
},
{
"vnf-parameter-name": "vpg_private_ip_1",
"vnf-parameter-value": "10.10.10.11"
},
{
"vnf-parameter-name": "vsn_private_ip_0",
"vnf-parameter-value": "10.20.20.13"
},
{
"vnf-parameter-name": "vpg_name_0",
"vnf-parameter-value": "VFWCL"
},
{
"vnf-parameter-name": "vnf_id",
"vnf-parameter-value": "vPacketGen_demo_app"
},
{
"vnf-parameter-name": "vf_module_id",
"vnf-parameter-value": "vPacketGen"
},
{
"vnf-parameter-name": "repo_url_blob",
"vnf-parameter-value": "https://nexus.onap.org/content/sites/raw";
},
{
"vnf-parameter-name": "repo_url_artifacts",
"vnf-parameter-value": "https://nexus.onap.org/content/repositories/releases";
},
{
"vnf-parameter-name": "demo_artifacts_version",
"vnf-parameter-value": "1.2.1"
},
{
"vnf-parameter-name": "install_script_version",
"vnf-parameter-value": "1.2.1"
},
{
"vnf-parameter-name": "key_name",
"vnf-parameter-value": "heat_key"
},
{
"vnf-parameter-name": "pub_key",
"vnf-parameter-value": "ssh-rsa 
AAAAB3NzaC1yc2EAAAADAQABAAABAQCxxO01uQPLHnn7MU9z+hAY/KJN2HgEdnTRCTbqMJpGvQHi0EpGUwZW1iMAeVizncb+ay5OeVMtfW+ALf+FzQpg0JYa9yOcfdo/6EX3Gzw8tGOJvskkK8/I1z1Hg7wW2Yy0GFYzzK9tRsyrYX1WVXHvsvBvYskIW+XwiYHlHubAZ1dA/j3vWw9NSY2D0BU4snQLfEOIiDejzNvPy6mWrJAXPqEWZ7dNhqU+3jj3zXHuSKP476ayKWAy0QTdYLhfawhJPR
 Generated-by-Nova"
},
{
"vnf-parameter-name": "cloud_env",
"vnf-parameter-value": "openstack"
}


      ]
       },
        "request-information": {
            "request-id": "robot12",
            "order-version": "1",
            "notification-url": "openecomp.org",
            "order-number": "1",
            "request-action": "PreloadVNFRequest"
        },
        "sdnc-request-header": {
            "svc-request-id": "robot12",
            "svc-notification-url": 
"http:\/\/openecomp.org:8080\/adapters\/rest\/SDNCNotify",
            "svc-action": "reserve"
        }
    }
}'



but we got this error:

{"errors":{"error":[{"error-type":"protocol","error-tag":"malformed-message","error-message":"Error
 parsing input: Schema node with name vnf-topology-information was not found 
under 
(org:onap:sdnc:northbound:generic-resource?revision=2017-08-24)input.","error-info":"Schema
 node with name vnf-topology-information was not found under 
(org:onap:sdnc:northbound:generic-resource?revision=2017-08-24)input."}]}}


We search alot but we didn't find anything. Please help us to identify the root 
cause of problem.

Thanks in advanced






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23643): https://lists.onap.org/g/onap-discuss/message/23643
Mute This Topic: https://lists.onap.org/mt/32123039/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to