Hi Ofir,
Thanks a lot. BR, Liping From: [email protected] [mailto:[email protected]] On Behalf Of Ofir Sonsino Sent: Wednesday, February 19, 2020 8:35 PM To: [email protected] Cc: [email protected] Subject: Re: [onap-sdc] Question about how to upload csar file to service model, need your help. SDC doesn't support any CLI commands. You might want to check with CLI project PTL: [email protected] Ofir From: [email protected] <[email protected]> On Behalf Of zhaoliping Sent: Wednesday, February 19, 2020 1:07 PM To: [email protected] Subject: Re: [onap-sdc] Question about how to upload csar file to service model, need your help. Hi Ofir, Thanks for your reply. I have downloaded the APIs doc and it is complex if I use the related upload artifact api directly because the parameter are so many and the format I don't know to deal with. So I choose the cli command "oclip service-model-add-artifact" which is simple to me. But the command has some detailed paramters and values need to be discussed with the expert who is very familiar with it. Could you tell who can help me? Thank a lot. BR, Liping From: [email protected] [mailto:[email protected]] On Behalf Of Ofir Sonsino Sent: Wednesday, February 19, 2020 5:45 PM To: [email protected] Subject: Re: [onap-sdc] Question about how to upload csar file to service model, need your help. Hi, If you mean to upload a artifact, you can chek the offered APIs under: https://onap.readthedocs.io/en/latest/submodules/sdc.git/docs/offeredapis.ht ml <https://urldefense.proofpoint.com/v2/url?u=https-3A__onap.readthedocs.io_en _latest_submodules_sdc.git_docs_offeredapis.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQ icvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=mg2KP_L6iml6NstMaoqSz IUP445rHeMmc9O8DDJQaYw&s=WGUw2fDT3KSKKUTXG-_q-r_UK03QRx3GYJInrj9TF10&e=> You might want to set it to Deployment artifact rather than Informational. Ofir From: [email protected] <[email protected]> On Behalf Of zhaoliping Sent: Monday, February 17, 2020 2:36 AM To: [email protected] Subject: [onap-sdc] Question about how to upload csar file to service model, need your help. Hi SDC expert, I am working on the vCPE auto test case. And I have some questions about SDC part. How to upload csar file to service model through api or cli script? I tried to use cli script as followings, right? Please help me to point which cli command is the right if I make a mistake and an example is preferred. Thanks. oclip service-model-add-artifact -x ae82db75-81f8-40a6-99ff-abfcdd9c15f8 -y remarks -z ns.csar -b ns.csar -u cs0008 -p demo123456! -m http://192.168.235.31:30205 <https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.235.31-3A30205& d=DwMFoQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBC t58&m=o1c1XLtLzcHUu_DwSdYmF3LLC4O5_NR0oJvATv5y5lM&s=IaGtsXT__LAd99H6owXealA4 wFYXnZytjMPQk3T4qw8&e=> ae82db75-81f8-40a6-99ff-abfcdd9c15f8 is my service model id, but I found there are some problems after I run the script. 1.The uploading path set to Artifacts\Informational\OTHER\ I guess it set to the hard code according to the yaml file. But on the vfc-catalog part, it will parse the csar file from "Artifacts/Deployment/OTHER/ns.csar". What's more, I found the uploading path is "Artifacts/Deployment/OTHER/ns.csar" if I do the same action manually. There are inconsisten between the two behaviors. I don' t know why. Please tell me the details, thanks a lot. 2. In service-model-add-artifact script, the artifactName and the artifactLabel are set to the same value artifact-name. If the artifactName named "xxx.csar" but the artifactLable makes "." as special characters and it is not allowed. So I think the script need to set the two parameters to different values. What do you think? Thanks in advance for your reply. BR, Liping -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20075): https://lists.onap.org/g/onap-discuss/message/20075 Mute This Topic: https://lists.onap.org/mt/71394746/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
