Hi Rene, We use the below process to upload VLs (TOSCA template) from backend. I'm not sure if there is a different/better way. It would be good to get feedback from the community.
· Download SDC code from gerrit (git clone https://gerrit.onap.org/r/sdc). · Install python and pycurl in the machine where the sdc code is placed. · Put the new models (VLs) to {gerrit sdc code}/catalog-be/src/main/resources/import/tosca/normative-types folder · Go to {gerrit sdc code}/catalog-be/src/main/resources/scripts/import/tosca · Edit the file importNormativeTypes.py and add the new model names to the array normativeTypes. (E.g. - normativeTypes = [ "root", "compute", "softwareComponent", "webServer", "webApplication", "DBMS", "database", "objectStorage", "blockStorage", "containerRuntime", "containerApplication", "loadBalancer", "port", "network","newModel"]). · Note - The model name should be same as the name of the model folder. · Run python importDataTypes.py -i {sdc-be docker IP} -p 8080 (The response should be 200 for existing model names and 201 for the new model names). Thanks Rahul From: [email protected] <[email protected]> On Behalf Of Rene Robert Sent: Friday, November 9, 2018 10:15 PM To: [email protected]; [email protected] Subject: [onap-discuss] [SDC] : adding a new VL model Hello I need to create and add a new VL model with its associated Heat stack. What is the procedure ? Best regards [Logo Orange]<https://apac01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.orange.com%2F&data=01%7C01%7CRahul_Ghugikar%40infosys.com%7C09e209880610443520c408d6466b3f0b%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C1&sdata=%2FixhTpPuYW9TOCx%2BgJdrYpoG1JG%2BVnk9D7J1aTMVzJA%3D&reserved=0> René Robert «Open and Smart solutions for autOmating Network Services» ORANGE/IMT/OLN/CNC/NARA/OSONS Fixe : +33 2 96 07 39 29 <https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmonsi.sso.francetelecom.fr%2Findex.asp%3Ftarget%3Dhttp%253A%252F%252Fclicvoice.sso.francetelecom.fr%252FClicvoiceV2%252FToolBar.do%253Faction%253Ddefault%2526rootservice%253DSIGNATURE%2526to%253D%2B33%25202%252096%252007%252039%252029&data=01%7C01%7CRahul_Ghugikar%40infosys.com%7C09e209880610443520c408d6466b3f0b%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C1&sdata=A77v7NOYUdEOSK%2F7%2FM7JvdWncCcvj9%2FiNPhithcRHgA%3D&reserved=0> Mobile : +33 6 74 78 68 43 <https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmonsi.sso.francetelecom.fr%2Findex.asp%3Ftarget%3Dhttp%253A%252F%252Fclicvoice.sso.francetelecom.fr%252FClicvoiceV2%252FToolBar.do%253Faction%253Ddefault%2526rootservice%253DSIGNATURE%2526to%253D%2B33%25206%252074%252078%252068%252043&data=01%7C01%7CRahul_Ghugikar%40infosys.com%7C09e209880610443520c408d6466b3f0b%7C63ce7d592f3e42cda8ccbe764cff5eb6%7C1&sdata=5GOwiYuHJ9azaqvacjl50t36GYw9ysARR8oHk8vE3qE%3D&reserved=0> [email protected]<mailto:[email protected]> _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14136): https://lists.onap.org/g/onap-discuss/message/14136 Mute This Topic: https://lists.onap.org/mt/28050492/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
