From 45aba588d7ae2cdaaaf1d561c7120d851e0a1c84 Mon Sep 17 00:00:00 2001 From: "Leigh, Phillip (pl876u)" Date: Tue, 15 Jan 2019 15:19:47 -0500 Subject: Enhance Pomba common model for Pserver/P-interface Issue-ID: LOG-762 Issue-ID: LOG-765 Change-Id: I4b6f785297f39598ef74081229918a2efe395171 Signed-off-by: Leigh, Phillip (pl876u) --- .../org/onap/pomba/common/datatypes/Attribute.java | 7 +++- .../java/org/onap/pomba/common/datatypes/PNF.java | 23 ++++++++++++ src/main/resources/commonModel.html | 42 ++++++++++++++++++---- .../org/onap/pomba/common/datatypes/PNFTests.java | 2 +- 4 files changed, 66 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/main/java/org/onap/pomba/common/datatypes/Attribute.java b/src/main/java/org/onap/pomba/common/datatypes/Attribute.java index a53263e..13e9401 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/Attribute.java +++ b/src/main/java/org/onap/pomba/common/datatypes/Attribute.java @@ -74,7 +74,12 @@ public class Attribute { resourceVersion, name2Source, managementOptions, - frameId + frameId, + ptniiName, + topology, + purpose, + description, + equipmentID } @ApiModelProperty(value = "Name of the attribute") public Name getName() { diff --git a/src/main/java/org/onap/pomba/common/datatypes/PNF.java b/src/main/java/org/onap/pomba/common/datatypes/PNF.java index 1aa6836..6d8b45d 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/PNF.java +++ b/src/main/java/org/onap/pomba/common/datatypes/PNF.java @@ -43,6 +43,12 @@ public class PNF { @Expose @SerializedName("attributeList") private List attributeList = new ArrayList<>(); + @Expose + @SerializedName("networkList") + private List networkList = new ArrayList<>(); + @Expose + @SerializedName("pInterfaceList") + private List pInterfaceList = new ArrayList<>(); public String getName() { return name; @@ -80,4 +86,21 @@ public class PNF { this.modelInvariantUUID = modelInvariantUUID; } + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public List getPInterfaceList() { + return pInterfaceList; + } + + public void setPInterfaceList(List pInterfaceList) { + this.pInterfaceList = pInterfaceList; + } + + } diff --git a/src/main/resources/commonModel.html b/src/main/resources/commonModel.html index 3723c3b..f4b51f6 100644 --- a/src/main/resources/commonModel.html +++ b/src/main/resources/commonModel.html @@ -514,32 +514,32 @@ POMBA Audit Context Builder API - pnfs + vnfs - array[PNF] + array[VNF] optional - List of PNF associated with the service instance + List of VNF associated with the service instance - vnfs + pnfs - array[VNF] + array[PNF] optional - List of VNF associated with the service instance + List of PNF associated with the service instance @@ -891,6 +891,21 @@ POMBA Audit Context Builder API + + networks + + + + array[Network] + + + + + optional + - + + + attributes @@ -900,6 +915,21 @@ POMBA Audit Context Builder API + + optional + - + + + + + pinterfaceList + + + + array[PInterface] + + + optional - diff --git a/src/test/java/org/onap/pomba/common/datatypes/PNFTests.java b/src/test/java/org/onap/pomba/common/datatypes/PNFTests.java index 0f0af29..baea5e3 100644 --- a/src/test/java/org/onap/pomba/common/datatypes/PNFTests.java +++ b/src/test/java/org/onap/pomba/common/datatypes/PNFTests.java @@ -19,7 +19,7 @@ package org.onap.pomba.common.datatypes; import org.junit.Test; -import static org.junit.Assert.assertEquals; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class PNFTests { -- cgit 1.2.3-korg