CR Port Mirroring: add new properties 29/51129/2
authoreleonorali <eleonoral@amdocs.com>
Mon, 11 Jun 2018 15:18:32 +0000 (18:18 +0300)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Wed, 13 Jun 2018 08:11:39 +0000 (08:11 +0000)
Add new properties nfc_naming_code and nf_naming_code.
Merge from release/1806.

Change-Id: I25abd4036e34ab43980ec433df9a3510926e4f8b
Issue-ID: SDC-1417
Signed-off-by: eleonorali <eleonoral@amdocs.com>
17 files changed:
common/onap-tosca-datatype/src/main/resources/globalTypes/openecomp/data.yml
openecomp-bdd/resources/yaml/Nested_FSB1ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/impl/tosca/PortMirroringEnricher.java
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/impl/tosca/model/PortMirroringConnectionPointDescription.java
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/multiLevel/out/Nested_pd_serverServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/multiLevel/out/Nested_pd_server_1ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/multiLevel/out/Nested_pd_server_3ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/multiLevel/out/Nested_pd_server_4ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/multiLevel/out/Nested_pd_server_6ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/oneLevel/out/MainServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/nested/oneLevel/out/nested-pcm_v0.1ServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/scalingInstance/out/MainServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/scalingInstance/out/Nested_pd_serverServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/singleSubstitution/diffPortType/out/MainServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/singleSubstitution/diffPortType/out/Nested_pd_serverServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/singleSubstitution/samePortType/out/MainServiceTemplate.yaml
openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/enrichPortMirroring/singleSubstitution/samePortType/out/Nested_pd_serverServiceTemplate.yaml

index 47d424f..ef11987 100644 (file)
@@ -560,8 +560,14 @@ data_types:
     properties:
       nf_type:
         type: string
+        description: deprecated
       nfc_type:
         type: string
+        description: deprecated
+      nf_naming_code:
+        type: string
+      nfc_naming_code:
+        type: string
       network_role:
         type: string
       pps_capacity:
index 01add1b..fb301b6 100644 (file)
@@ -110,7 +110,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: FSB1
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: FSB1
               network_role:
                 get_input: port_FSB1_OAM_network_role
               pps_capacity: ''
index c95274d..669fb1c 100644 (file)
@@ -248,7 +248,7 @@ public class PortMirroringEnricher {
         if (requirementAssignment.isPresent()) {
             RequirementAssignment bindingRequirementAssignment = requirementAssignment.get().get(0);
             String node = bindingRequirementAssignment.getNode();
-            connectionPoint.setNfc_type(node);
+            connectionPoint.setNfc_naming_code(node);
         }
     }
 
index c166938..1c54e01 100644 (file)
@@ -6,6 +6,9 @@ import java.util.Objects;
 public class PortMirroringConnectionPointDescription {
   private String nf_type;
   private String nfc_type;
+  private String nf_naming_code;
+  private String nfc_naming_code;
+
   //Keeping below attributes as objects to accomodate for tosca functions for property
   // values like get_input, get_attribute
   private Object network_role;
@@ -15,6 +18,8 @@ public class PortMirroringConnectionPointDescription {
     //Populating empty strings as default values to be populated in tosca
     nf_type = "";
     nfc_type = "";
+    nf_naming_code = "";
+    nfc_naming_code = "";
     network_role = "";
     pps_capacity = "";
   }
@@ -35,6 +40,22 @@ public class PortMirroringConnectionPointDescription {
     this.nfc_type = nfc_type;
   }
 
+  public String getNf_naming_code() {
+    return nf_naming_code;
+  }
+
+  public void setNf_naming_code(String nf_naming_code) {
+    this.nf_naming_code = nf_naming_code;
+  }
+
+  public String getNfc_naming_code() {
+    return nfc_naming_code;
+  }
+
+  public void setNfc_naming_code(String nfc_naming_code) {
+    this.nfc_naming_code = nfc_naming_code;
+  }
+
   public Object getNetwork_role() {
     return network_role;
   }
@@ -54,6 +75,8 @@ public class PortMirroringConnectionPointDescription {
   public boolean isEmpty() {
     return Objects.isNull(nf_type)
         && Objects.isNull(nfc_type)
+        && Objects.isNull(nf_naming_code)
+        && Objects.isNull(nfc_naming_code)
         && Objects.isNull(network_role)
         && Objects.isNull(pps_capacity);
   }
index 1cee498..c4ff5b3 100644 (file)
@@ -127,7 +127,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd02_port_network_role
               pps_capacity: ''
index 9722ffe..e239d4c 100644 (file)
@@ -127,7 +127,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd01_port_network_role
               pps_capacity: ''
index 4d98183..ad711d8 100644 (file)
@@ -127,7 +127,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd01_port_network_role
               pps_capacity: ''
index 23c111c..a1580dc 100644 (file)
@@ -127,7 +127,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_ps02_port_network_role
               pps_capacity: ''
index 4750ccc..eeffe69 100644 (file)
@@ -127,7 +127,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd02_port_network_role
               pps_capacity: ''
index 5c6f4ae..b4a9aa1 100644 (file)
@@ -260,6 +260,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     pcm_2port_2:
@@ -328,7 +330,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: server_pcm
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: server_pcm
               network_role:
                 get_input: port_pcm_2port_1_network_role
               pps_capacity: ''
index 45ebd43..3335e09 100644 (file)
@@ -140,6 +140,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     pd04_port_1:
@@ -161,6 +163,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     pd03_port_1:
index b0a2f16..75693bc 100644 (file)
@@ -197,7 +197,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd02_port_network_role
               pps_capacity: ''
index dea55c7..4c1b28d 100644 (file)
@@ -282,6 +282,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     template_VMInt_OAM_lb_external_VMI:
@@ -319,6 +321,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     pd05_port_0:
index f80a037..65b7203 100644 (file)
@@ -387,7 +387,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd03_port_network_role
               pps_capacity: ''
index 3a69746..e439060 100644 (file)
@@ -298,6 +298,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     pd01_port_4:
@@ -338,6 +340,8 @@ topology_template:
             connection_point:
               nf_type: ''
               nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: ''
               network_role: ''
               pps_capacity: ''
     packet_internal_network:
index 567b020..e9b62d2 100644 (file)
@@ -271,7 +271,9 @@ topology_template:
           properties:
             connection_point:
               nf_type: ''
-              nfc_type: pd_server
+              nfc_type: ''
+              nf_naming_code: ''
+              nfc_naming_code: pd_server
               network_role:
                 get_input: port_pd01_port_2_network_role
               pps_capacity: ''