Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

python3 setup.py install --user

python3 -m RanNssmfSimulator.MainApp


Register to ONAP ESR

1. Add an esr-thirdparty-sdnc and esr-system-info to ESR:

Run command:

curl -

s -

k -

u "

X PUT "https://AAI:

AAI" -H "X-FromAppId: testApp" -H "X-TransactionId: 1001" -H "Content-Type: application/json" -H "Accept: application/json" -X PUT https://aai.onap:30233/aai/v20/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/sdnc-an-01 -d @sdnc-an-01.json

Example of sdnc-an-01.json:

{

  "thirdparty-sdnc-id": "sdnc-an-01"

}

2. Add an esr-system-info (RAN NSSMF) to ESR:

AAI@<worker-vm-ip>:30233/aai/v23/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/sdnc-an-01" \

-H 'Accept: application/json' \

-H 'X-FromAppId: AAI' \

-H 'X-TransactionId: 1' \

-H '

Run command:

curl -s -k -u "AAI:AAI" -H "X-FromAppId: testApp" -H "X-TransactionId: 1001" -H "

Content-Type: application/json

" -H "Accept: application/json" -X PUT 

' \

-d '{

"thirdparty-sdnc-id":"

https://aai.onap:30233/aai/v20/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/

sdnc-an-01

/

",

    "product-name": "nssmf",

                 "esr-system-info-list

/

":{"esr-system-info

/nssmf-an-01 -d @nssmf-an-01.json

Example of nssmf-an-01.json:

{
 

":[{

"esr-system-info-id": "nssmf-

an-01

an-01",

"system-name": "E2E",

 

"

type

vendor": "

an

huawei",

 

"

vendor

type": "

huawei

an",

 

"

system

user-

type

name": "

thirdparty-sdnc

admin",

 

"

ip-address

password": "

192.168.35.83

123456",

 

"

port

system-type": "

8443

thirdparty-sdnc",

 

"

user

ip-

name

address": "

admin

<ip-address-of-simulator>",

 

"

password

port": "

123456

8443",

 "ssl-cacert": "test.ca"

}]}

}'

Where, ip-address is the IP address or hostname which runs the External RAN NSSMF Simulator, port is the listening port of RESTful API of the simulator,

user-name and password are set in config file RanNssmfSimulator/etc/auth.json of the simulator.

...