The deployment location for the target NFVO can be added in the CP4NA UI, supplying the following information for infrastructure properties.
{
"nfvoServerUrl": "http://nfvo-test-harness:8297",
# Authentication details
"authenticationType": "BASIC",
"username": "xxx",
"password": "yyy"
}
{
"authenticationType": "BASIC",
"username": "xxx",
"password": "yyy"
}
{
"authenticationType": "OAUTH2",
"accessTokenUri": "https://nfvo:port/oauth2/token",
"client_id": "",
"client_secret": "",
"grant_type": "", # Optional
"scope": "" # Optional
}
{
"authenticationType": "COOKIE",
"authenticationUrl": "",
"username": "xxx",
"password": "yyy",
"usernameTokenName": "", # Optional (default: IDToken1)
"passwordTokenName": "" # Optional (default: IDToken2)
}
In order for the driver to receive lifecycle notifications from the NFVO, the following command should be run.
NOTES:
- It is important that the command is run from a location where the NFVO can be reached
- The address (for the driver) used in the content of the message below should be considered from the point of view of the NFVO itself (in cases where addresses or ports may be subject to NAT or proxying)
curl -X POST \
https://nfvo-address:port/nslcm/v2/subscriptions \
-H 'Content-Type: application/json' \
-d '{
"callbackUri" : "http://sol005-lifecycle-driver:8296/nslcm/v2/notifications",
"filter" : {
"notificationTypes" : [ "NsLcmOperationOccurrenceNotification" ],
"operationStates" : [ "COMPLETED", "FAILED", "FAILED_TEMP", "ROLLED_BACK" ]
}
}'