Objective : instantiate a Virtual Link based on a neutron network with ONAP
Here is my procedure (maybe not the best, but the one I know) : Done with ONAP Beijing (OOM) 1 - change the heat template and heat template params already inserted in SO mariaDB (I did never manage to use the existing heat template....) Connect to SO mariadb (use DBeaver software for example) UPDATE mso_catalog.heat_template SET NAME='Generic NeutronNet', VERSION='1', BODY='heat_template_version: 2013-05-23 description: HOT template that creates a Generic Neutron Network parameters: network_name: type: string description: Name of direct network (e.g. core, dmz) outputs: network_id: description: Openstack network identifier value: { get_resource: network } resources: network: type: OS::Neutron::Net properties: name: {get_param: network_name } ', TIMEOUT_MINUTES=10, DESCRIPTION='Generic Neutron Template', CREATION_TIMESTAMP='2017-10-26 14:44:00.000', ARTIFACT_CHECKSUM='MANUAL RECORD' WHERE ARTIFACT_UUID='efee1d84-b8ec-11e7-abc4-cec278b6b50a'; INSERT INTO mso_catalog.heat_template_params (HEAT_TEMPLATE_ARTIFACT_UUID, PARAM_NAME, IS_REQUIRED, PARAM_TYPE, PARAM_ALIAS) VALUES('efee1d84-b8ec-11e7-abc4-cec278b6b50a', 'network_name', 1, 'string', 'NULL'); 2 - onboard a new service using SDC create a new service in SDC add a "generic neutron" VL resource to the service (composition) validate/distibute the service 3 instantiate the service and network using Rest API (SO, SDNC) Service instanciation curl -X POST \ http://so.api.simpledemo.onap.org:30223/ecomp/mso/infra/serviceInstances/v6 \ -H 'accept: application/json' \ -H 'authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'x-fromappid: APIclient' \ -H 'x-transactionid: test' \ -d '{ "requestDetails": { "requestInfo": { "instanceName": "test-neutron-service-01", "source": "VID", "suppressRollback": false, "requestorId": "demo" }, "modelInfo": { "modelType": "service", "modelInvariantId": "909c2700-799f-4348-9e69-a6523638ee0b", "modelVersionId": "912fe8f8-9d1e-4b46-b44d-722fb974e6bb", "modelName": "Neutron network", "modelVersion": "1.0" }, "requestParameters": { "userParams": [], "subscriptionServiceType": "Neutron network", "aLaCarte": true }, "subscriberInfo": { "globalSubscriberId": "generic" }, "project": { "projectName": "Orange_project" }, "owningEntity": { "owningEntityId": "2ca23314-ffc8-4511-8387-8a04b50684d6", "owningEntityName": "Orange" } } }' Preload for Network curl -X POST \ http://sdnc.api.simpledemo.onap.org:30202/restconf/operations/VNF-API:preload-network-topology-operation \ -H 'accept: application/json' \ -H 'authorization: Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'x-fromappid: API client' \ -H 'x-transactionid: 0a3f6713-ba96-4971-a6f8-c2da85a3176e' \ -d '{ "VNF-API:input": { "VNF-API:request-information": { "VNF-API:request-id": "robot0012", "VNF-API:notification-url": "http://so.onap.org", "VNF-API:order-number": "robot0012", "VNF-API:request-sub-action": "SUPP", "VNF-API:request-action": "PreloadNetworkRequest", "VNF-API:source": "robot", "VNF-API:order-version": "1.0" }, "VNF-API:network-topology-information": { "VNF-API:network-topology-identifier": { "VNF-API:network-role": "test", "VNF-API:network-technology": "neutron", "VNF-API:service-type": "Neutron network", "VNF-API:network-name": "Net_via_ONAP_01", "VNF-API:network-type": "Generic NeutronNet" }, "VNF-API:provider-network-information": { "VNF-API:is-external-network": "false", "VNF-API:is-provider-network": "false", "VNF-API:is-shared-network": "false" }, "VNF-API:subnets": [ { "VNF-API:start-address": "192.168.80.0", "VNF-API:cidr-mask": "24", "VNF-API:subnet-name": "Net_via_ONAP", "VNF-API:ip-version": "4", "VNF-API:dhcp-enabled": "Y", "VNF-API:gateway-address": "192.168.80.1" } ] }, "VNF-API:sdnc-request-header": { "VNF-API:svc-action": "reserve", "VNF-API:svc-notification-url": "http://mso.api.simpledemo.onap.org", "VNF-API:svc-request-id": "reobot0012" } } } ' Neutron Network instantiation : curl -X POST \ http://so.api.simpledemo.onap.org:30223/ecomp/mso/infra/serviceInstances/v6/419d9db7-7f18-4a6c-b960-bf1f0cdf5ab5/networks \ -H 'accept: application/json' \ -H 'authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'x-fromappid: APIclient' \ -H 'x-transactionid: test' \ -d '{ "requestDetails": { "requestInfo": { "instanceName": "Net_via_ONAP_01", "source": "VID", "suppressRollback": false, "requestorId": "demo", "productFamilyId": "909c2700-799f-4348-9e69-a6523638ee0b" }, "modelInfo": { "modelType": "network", "modelInvariantId": "b78cf667-58fe-4b1f-921c-a525107acbf7", "modelVersionId": "06e9b6dc-f1d1-4319-bc97-fd52ff0fdf68", "modelName": "Generic NeutronNet", "modelVersion": "1.0", "modelCustomizationId": "062ba5b3-5ef8-48f3-a4c1-b97d653a51cb", "modelCustomizationName": "Generic NeutronNet 0" }, "requestParameters": { "userParams": [] }, "cloudConfiguration": { "lcpCloudRegionId": "RegionOne", "tenantId": "40149c76c29b487b88626ef222ee34da" }, "lineOfBusiness": { "lineOfBusinessName": "Orange_LineOfBusiness" }, "platform": { "platformName": "Orange_platform" }, "relatedInstanceList": [{ "relatedInstance": { "instanceId": "419d9db7-7f18-4a6c-b960-bf1f0cdf5ab5", "modelInfo": { "modelType": "service", "modelName": "Neutron network", "modelInvariantId": "909c2700-799f-4348-9e69-a6523638ee0b", "modelVersion": "1.0", "modelVersionId": "912fe8f8-9d1e-4b46-b44d-722fb974e6bb" } } }] } }' _________________________________________________________________________________________________________________________ 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 (#12543): https://lists.onap.org/g/onap-discuss/message/12543 Mute This Topic: https://lists.onap.org/mt/25803163/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-