Versions Compared

Key

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

...

  • 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 MethodURIYang Model SectionRequest ExampleResponse Example
rollbackPost/operations/LCM:rollback


Code Block
languageyml
themeEmacs
collapsetrue



Code Block
languagexml
themeEmacs
collapsetrue
{ 
    "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
languagexml
themeEmacs
collapsetrue


precheck*/operations/LCM:upgrade-pre-check


Code Block
languageyml
themeEmacs
collapsetrue
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
languagexml
themeEmacs
collapsetrue
{ 
    "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
languagexml
themeEmacs
collapsetrue
{

"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

...