...
- Yang model changes to current LCM:rollback action in CCSDK (mandatory fields in rollback action will be optional to make the LCM:rollback action more generic, optional output payload field is added)
- Definition of rollback input and output payloads for 5G PNF specific rollback
- Possible payload changes into existing API /operations/LCM:upgrade-software
- sw download, install and activate APIs in southbound of SDNC (to EC) as part of Ansible playbook for LCM:upgrade-software API.
API details
(1) Provided by SDN-C/CCSDK:
LCM API Abbre. | HTTP Method | URI | Yang Model Section | Request Example | Response Example |
---|
rollback | Post | /operations/LCM:rollback |
Code Block |
---|
language | yml |
---|
theme | Emacs |
---|
collapse | true |
---|
| |
|
Code Block |
---|
language | xml |
---|
theme | Emacs |
---|
collapse | true |
---|
| {
"input":
{
"common-header": {
"timestamp": "2018-10-10T09:40:04.244Z",
"api-ver": "2.00",
"originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
"request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "4",
"flags": {
"force" : "TRUE",
"ttl" : 60000
}
},
"action": "rollback",
"action-identifiers": {
"vnf-id":"5gDU0001"
},
"payload": "{\"pnf-flag\":\"true\",
\"pnf-name\": \"5gDU0001\",\"pnfId\":
\"5gDU0001\", \"ipaddress-v4-oam\":
\"139.159.228.37\",\"oldSwVersion\": \"v1\",
\"additionalData\":\"{}\"}"}} |
|
Code Block |
---|
language | xml |
---|
theme | Emacs |
---|
collapse | true |
---|
| |
|
precheck* | /operations/LCM:upgrade-pre-check |
Code Block |
---|
language | yml |
---|
theme | Emacs |
---|
collapse | true |
---|
| rpc upgrade-pre-check {
description "An operation to check that the VNF has the correct software version needed for a software upgrade.";
input {
uses common-header;
leaf action {
type action;
mandatory true;
}
uses action-identifiers;
leaf payload {
type payload;
mandatory true;
}
}
output {
uses common-header;
uses status;
leaf payload {
type payload;
mandatory true;
}
}
} |
|
Code Block |
---|
language | xml |
---|
theme | Emacs |
---|
collapse | true |
---|
| {
"input":
{
"common-header": {
"timestamp": "2018-10-10T09:40:04.244Z",
"api-ver": "2.00",
"originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
"request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "1",
"flags": {
"force" : "TRUE",
"ttl" : 60000
}
},
"action": "UpgradePreCheck",
"action-identifiers": {
"vnf-id":"5gDU0001"
},
"payload": "{\"pnf-flag\":\"true\",
\"pnf-name\": \"5gDU0001\",\"pnfId\":
\"5gDU0001\", \"ipaddress-v4-oam\":
\"139.159.228.37\",\"oldSwVersion\": \"v1\",
\"targetSwVersion\": \"v2\", \"ruleName\":
\"r001\", \"Id\": \"10\",
\"additionalData\":\"{}\"}"}} |
| 400: Success Code Block |
---|
language | xml |
---|
theme | Emacs |
---|
collapse | true |
---|
| {
"output": {
"common-header": {
"api-ver":
"2.00",
"originator-id":
"664be3d2-6c12-4f4b-a3e7-c349acced203",
"sub-request-id": "1",
"request-id": "664be3d2-6c12-4f4b-a3e7-c349acced203"
},
"status": {
"code": 400,
"message": "Ansible Request
8200a38f-03d3-43ac-935e-2c43c9434872 finished with Result = success,
Message = FINISHED"
}
}
} |
|
postcheck* | /operations/LCM:upgrade-post-check |
|
|
|
upgrade-software* | /operations/LCM:upgrade-software |
|
|
|
*: These lcm APIs inherit from R3.
(2) Provided by External Controller:
Test cases and Status
Master Integration Test Page: Dublin Release Integration Testing Status
...