...
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 - |
k - |
X PUT "https://AAI: |
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:
Content-Type: application/json |
' \ -d '{ "thirdparty-sdnc-id":" |
sdnc-an-01 |
", "product-name": "nssmf", "esr-system-info-list |
":{"esr-system-info |
Example of nssmf-an-01.json:
":[{ |
"esr-system-info-id": "nssmf- |
an-01", "system-name": "E2E", |
" |
vendor": " |
huawei", |
" |
type": " |
an", |
" |
user- |
name": " |
admin", |
" |
password": " |
123456", |
" |
system-type": " |
thirdparty-sdnc", |
" |
ip- |
address": " |
<ip-address-of-simulator>", |
" |
port": " |
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.
...