...
Code Block |
---|
|
curl --header "Content-Type: application/json" -X POST -d @register-nbi-listeners http://nbi.api.simpledemo.onap.org:30274/nbi/api/v4/hub
e.g. cat register-nbi-listeners
{
"callback": "http://172.30.0.130:5000/serviceOrderStateListener/listener/v1/",
"query":"eventType = ServiceOrderStateChangeNotification,ServiceOrderCreationNotification,ServiceOrderItemStateChangeNotification,ServiceCreationNotification,ServiceAttributeValueChangeNotification,ServiceRemoveNotification"
}
Right after posting your endpoint to NBI make sure it's configured properly by running
curl --header "Content-Type: application/json" http://nbi.api.simpledemo.onap.org:30274/nbi/api/v3v4/hub |
Create a configuration file named bng.conf under /tmp with this content
Code Block |
---|
|
cat /tmp/bng.conf
[DEFAULT]
db-username = root
db-password = root
db-host = 0.0.0.0
db-database = bbs
onap-nbi-url = http://nbi.api.simpledemo.onap.org:30274/nbi/api/v3v4/
onap-dcae-ves-collector-url = http://172.30.0.93:30235/eventListener/v5/
onap-message-router = http://mr.api.simpledemo.openecomp.org:30227/events/AAI-EVENT/T/T2?timeout=10000&limit=1 |
...