diff options
Diffstat (limited to 'prh-app-server/src/main/java')
2 files changed, 5 insertions, 0 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/AppConfig.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/AppConfig.java index 2a7661a9..21495740 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/AppConfig.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/AppConfig.java @@ -117,6 +117,9 @@ public class AppConfig extends PrhAppConfig { @Value("${dmaap.dmaapUpdateProducerConfiguration.dmaapContentType:}") public String updateProducerDmaapContentType; + @Value("${aai.aaiClientConfiguration.pnfUrl:}") + public String pnfUrl; + @Value("${aai.aaiClientConfiguration.aaiHost:}") public String aaiHost; @@ -222,6 +225,7 @@ public class AppConfig extends PrhAppConfig { return null; } return new ImmutableAaiClientConfiguration.Builder() + .pnfUrl(Optional.ofNullable(pnfUrl).filter(isEmpty.negate()).orElse(aaiClientConfiguration.pnfUrl())) .aaiHost(Optional.ofNullable(aaiHost).filter(isEmpty.negate()).orElse(aaiClientConfiguration.aaiHost())) .aaiPort( Optional.ofNullable(aaiPort).filter(p -> !p.toString().isEmpty()) diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/CloudConfigParser.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/CloudConfigParser.java index 2360c075..ec01ff50 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/CloudConfigParser.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/configuration/CloudConfigParser.java @@ -81,6 +81,7 @@ class CloudConfigParser { AaiClientConfiguration getAaiClientConfig() { return new ImmutableAaiClientConfiguration.Builder() + .pnfUrl(jsonObject.get("aai.aaiClientConfiguration.pnfUrl").getAsString()) .aaiHost(jsonObject.get("aai.aaiClientConfiguration.aaiHost").getAsString()) .aaiPort(jsonObject.get("aai.aaiClientConfiguration.aaiHostPortNumber").getAsInt()) .aaiUserName(jsonObject.get("aai.aaiClientConfiguration.aaiUserName").getAsString()) |