Update pnf-id to pnf-name in LCM API 66/100466/1
authorEnbo Wang <wangenbo@huawei.com>
Mon, 20 Jan 2020 06:51:13 +0000 (14:51 +0800)
committerEnbo Wang <wangenbo@huawei.com>
Mon, 20 Jan 2020 06:51:13 +0000 (14:51 +0800)
In order to be compatible with Pnf entry in A&AI, update pnf-id to pnf-name.

Change-Id: Ibb76fd754c4a657a6f4af4453b3c819670fb96c2
Issue-ID: SDNC-856
Signed-off-by: Enbo Wang <wangenbo@huawei.com>
lcm/model/src/main/resources/lcm.20180329.json
lcm/model/src/main/yang/lcm.yang
lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmProvider.java

index 18512fc..b841898 100644 (file)
           "$ref": "#/definitions/Optional.empty",
           "description": "identifies a specific VM within the given service/vnf to which\\n   this action is to be applied"
         },
-        "pnf-id": {
+        "pnf-name": {
           "$ref": "#/definitions/Optional.empty",
           "description": "identifies the PNF to which this action is to be applied."
         }
           "$ref": "#/definitions/Optional.empty",
           "description": "identifies a specific VM within the given service/vnf to which\\n   this action is to be applied"
         },
-        "LCM:pnf-id": {
+        "LCM:pnf-name": {
           "$ref": "#/definitions/Optional.empty",
           "description": "identifies the PNF to which this action is to be applied."
         }
index d2ca5fe..188068a 100644 (file)
@@ -313,12 +313,11 @@ module LCM {
                 type string;
                 mandatory false;
             }
-            leaf pnf-id {
+            leaf pnf-name {
                 description "identifies the PNF to which this action is to be applied.";
                 type string;
                 mandatory false;
             }
-
         }
     }
 
index a7e1e1f..b73151e 100644 (file)
@@ -1171,7 +1171,7 @@ public class TestLcmProvider {
                aBuilder.setVfModuleId("vf-module-1");
                aBuilder.setVnfcName("my-vnfc");
                aBuilder.setVnfId("123");
-               aBuilder.setPnfId("456");
+               aBuilder.setPnfName("my-pnf");
                aBuilder.setVserverId("123");
                builder.setActionIdentifiers(aBuilder.build());
 
@@ -1206,7 +1206,7 @@ public class TestLcmProvider {
                aBuilder.setVfModuleId("vf-module-1");
                aBuilder.setVnfcName("my-vnfc");
                aBuilder.setVnfId("123");
-               aBuilder.setPnfId("456");
+               aBuilder.setPnfName("my-pnf");
                aBuilder.setVserverId("123");
                builder.setActionIdentifiers(aBuilder.build());