Install docker

sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
docker ps

Run esr-server docker

Login the ONAP docker registry first: sudo docker login -u docker -p docker nexus3.onap.org:10001

sudo docker run -p  9518:9518 -d --net=host --name esr-server -e MSB_ADDR=${MSB_SERVER_IP}:80 nexus3.onap.org:10001/onap/aai/esr-server

Test whether esr-service is runing:

GET  http://ESR_SERVICE_IP:9518/api/aai-esr-server/v1/test 

The returned status should be 200.

Run esr-gui docker

sudo docker run -p  8080:9519 -d --net=host --name esr-gui nexus3.onap.org:10001/onap/aai/esr-gui

Register service to MSB

A&AI register to MSB

NOTE: The way bellow is register to MSB by hand, it is a temporary method. Later it will be registered automatic by MSB.

curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai-cloudInfrastructure", "version": "v11", "url": "/aai/v11/cloud-infrastructure","protocol": "REST", "enable_ssl":"true", "visualRange":"1", "nodes": [ {"ip": "A&AI_SERVER_IP","port": "8443"}]}' \
http://MSB_SERVER_IP:10081/api/microservices/v1/services

curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai-externalSystem", "version": "v11", "url": "/aai/v11/external-system","protocol": "REST", "enable_ssl":"true", "visualRange":"1", "nodes": [ {"ip": "A&AI_SERVER_IP","port": "8443"}]}' \
http://MSB_SERVER_IP:10081/api/microservices/v1/services

MultiCloud register to MSB

TODO

ESR register to MSB

curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai-esr-server", "version": "v1", "url": "/api/aai-esr-server/v1","protocol": "REST", "visualRange":"1", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9518"}]}' \
http://MSB_SERVER_IP:10081/api/microservices/v1/services

curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai-esr-gui", "url": "/esr-gui","protocol": "UI", "visualRange":"1", "path":"/iui/aai-esr-gui", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9519"}]}' \
http://MSB_SERVER_IP:10081/api/microservices/v1/services

Visit ESR portal

http://MSB_SERVER_IP:80/iui/aai-esr-gui/extsys/vnfm/vnfmView.html

http://MSB_SERVER_IP:80/iui/aai-esr-gui/extsys/sdncontroller/sdncView.html

http://MSB_SERVER_IP:80/iui/aai-esr-gui/extsys/vim/vimView.html

http://MSB_SERVER_IP:80/iui/aai-esr-gui/extsys/ems/emsView.html

  • No labels