diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2020-02-28 08:26:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-28 08:26:00 +0000 |
commit | a9e3132226baa83fdf1c5f05ddd30017b6d1b3f9 (patch) | |
tree | d1a913d541f58d110984cb8c8f20963a458d1e59 /common | |
parent | 193879d40aaf11af615ff4daffbf4c17caaa6227 (diff) | |
parent | ca5b7107f23562bf81267292a47d7fb2f30ebaf9 (diff) |
Merge "SW UP building block and workflow"
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java | 2 | ||||
-rw-r--r-- | common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java b/common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java index 8bc709b276..2698bc347f 100644 --- a/common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java +++ b/common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java @@ -38,4 +38,6 @@ public interface AAIRestClientI { Optional<Pnf> getPnfByName(String pnfId); void createPnf(String pnfId, Pnf pnf); + + void updatePnf(String pnfId, Pnf pnf); } diff --git a/common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java b/common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java index 03e2eaea1f..f2f96ca905 100644 --- a/common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java +++ b/common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java @@ -92,4 +92,9 @@ public class AAIRestClientImpl implements AAIRestClientI { new AAIResourcesClient().createIfNotExists(AAIUriFactory.createResourceUri(AAIObjectType.PNF, pnfId), Optional.of(pnf)); } + + @Override + public void updatePnf(String pnfId, Pnf pnf) { + new AAIResourcesClient().update(AAIUriFactory.createResourceUri(AAIObjectType.PNF, pnfId), pnf); + } } |