Steps to set up simulators for VoLTE use case
Step 1. Run "demo.sh init" from Robot VM to populate A&AI
Step 2. Install MockServer docker in Robot VM
>sudo docker pull jamesdbloom/mockserver >sudo docker run --name mockserver -d -p 1080:1080 jamesdbloom/mockserver
Step 3. Use Postman to create PE1 and PE2 in A&AI
Step 4. Use Postman to create SDN WAN controller for underlay network (you can do this in Portal ESR app too)
Step 5. Use Postman to create DC1 and DC2 SDN controllers
PUT https://{{aai}}:8443/aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/DCI-Controller-1 Body: <?xml version="1.0" encoding="UTF-8"?> <esr-thirdparty-sdnc xmlns="http://org.openecomp.aai.inventory/v11"> <thirdparty-sdnc-id>DCI-Controller-1</thirdparty-sdnc-id> <location>Core</location> <product-name>DCI-Controller</product-name> <esr-system-info-list> <esr-system-info> <esr-system-info-id>DCI-Controller1-ESR-1</esr-system-info-id> <system-name>DC-Controller-1</system-name> <type>DC</type> <vendor>IP-WAN</vendor> <version>example-version-val-5833</version> <service-url>http://10.0.10.1:1080</service-url> <user-name>admin</user-name> <password>Admin@12345</password> <system-type>example-system-type-val-12078</system-type> <protocol>RESTCONF</protocol> <ssl-cacert>example-ssl-cacert-val-20589</ssl-cacert> <ssl-insecure>true</ssl-insecure> <ip-address>10.0.10.1</ip-address> <port>1080</port> <cloud-domain>example-cloud-domain-val-76077</cloud-domain> <default-tenant>example-default-tenant-val-71148</default-tenant> <passive>true</passive> <remote-path>example-remotepath-val-5833</remote-path> <system-status>example-system-status-val-23435</system-status> </esr-system-info> </esr-system-info-list> </esr-thirdparty-sdnc> PUT https://{{aai}}:8443/aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/ZTE-DCI-Controller Body: <?xml version="1.0" encoding="UTF-8"?> <esr-thirdparty-sdnc xmlns="http://org.openecomp.aai.inventory/v11"> <thirdparty-sdnc-id>ZTE-DCI-Controller</thirdparty-sdnc-id> <location>Edge</location> <product-name>DCI-Controller</product-name> <esr-system-info-list> <esr-system-info> <esr-system-info-id>ZTE-DCI-Controller-ESR-1</esr-system-info-id> <system-name>ZTE-DCI-Controller</system-name> <type>DC</type> <vendor>SPTN</vendor> <version>example-version-val-5833</version> <service-url>http://10.0.10.1:1080</service-url> <user-name>admin</user-name> <password>admin</password> <system-type>example-system-type-val-12078</system-type> <protocol>RESTCONF</protocol> <ssl-cacert>example-ssl-cacert-val-20589</ssl-cacert> <ssl-insecure>true</ssl-insecure> <ip-address>10.0.10.1</ip-address> <port>1080</port> <cloud-domain>example-cloud-domain-val-76077</cloud-domain> <default-tenant>example-default-tenant-val-71148</default-tenant> <passive>true</passive> <remote-path>example-remotepath-val-5833</remote-path> <system-status>example-system-status-val-23435</system-status> </esr-system-info> </esr-system-info-list> </esr-thirdparty-sdnc>
Step 6. Use Postman to create data center network 1,2,3,4 for overlay
Step 7. Change huaweivnfmdriver MSB service url and point to MockServer. Assume you are running from MutliService VM
>curl -X DELETE http://127.0.0.1/api/microservices/v1/services/huaweivnfmdriver/v1 >curl -X GET http://127.0.0.1/api/microservices/v1/services/huaweivnfmdriver/v1 >curl -X POST -H "Content-Type:application/json" -d '{"serviceName":"huaweivnfmdriver","version":"v1","url":"/api/huaweivnfmdriver/v1","protocol":"REST","lb_policy":"round-robin","nodes":[{"ip":"10.0.10.1","port":"1080"}]}' http://127.0.0.1/api/microservices/v1/services
Step 8. Create VoLTE service with Huawei VNFs and set nf_type parameter to huaweivnfmdriver. Put a screenshot here
Step 9. Open /service//vfc/nfvo/lcm/lcm/pub/config/config.py and change AAI_BASE_URL = "http://10.0.14.1:80/aai/v11"
Step 10. Update file basemodel.py in vfc_catalog container
/service/vfc/nfvo/catalog/catalog/pub/utils/toscaparser/basemodel.py (See R1 Known Issues issue 1)
Step 11. Update config.py in vfc_catalog container
root@3511e71899bc:/service/vfc/nfvo/catalog/catalog/pub/config# diff config.py config.py.orig 52,54c52,54 < SDC_BASE_URL = "http://10.0.14.1:80/api" < SDC_USER = "aai" < SDC_PASSWD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" --- > SDC_BASE_URL = "https://127.0.0.1:8443/api" > SDC_USER = "SDC" > SDC_PASSWD = "SDC"
Step 11-2. Validate msb-ip and sdnc-ip in /etc/mso/config.d/topology.properties are correct oam ips in SO container testlab_mso_1 (TODO: if this is correct, remove this step)
Step 12. Configure MockServer to simulate SDN controller and VNFM driver
Step 13. Distribute VoLTE service from SDC
Step 14. Distribute VoLTE service from UUI
Step 15. Simulate request from UUI to SO
Step 16. Simulate notification message from Huawei VNFM driver to nslcm
Notification message sent from vnfm driver to nslcm