From 54095a2c9bb90f777579b32ec7052c26bb3168c5 Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Fri, 27 May 2022 11:08:34 +0200 Subject: [PATCH] Uplift from ONAP. Support for custom A1 adapters. Signed-off-by: PatrikBuhr Issue-ID: NONRTRIC-743 Change-Id: I1729693a66edb7c83d71c0ebf780843de3fb1b7d --- config/application.yaml | 6 +++--- config/application_configuration.json | 23 ++++++++++++++++++++--- onap/oran | 2 +- pom.xml | 8 +------- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/config/application.yaml b/config/application.yaml index 54f47e0..7628624 100644 --- a/config/application.yaml +++ b/config/application.yaml @@ -42,7 +42,7 @@ logging: org.springframework.data: ERROR org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR org.onap.ccsdk.oran.a1policymanagementservice: INFO - # org.onap.ccsdk.oran.a1policymanagementservice.tasks: TRACE + # org.onap.ccsdk.oran.a1policymanagementservice.tasks: TRACE file: name: /var/log/policy-agent/application.log server: @@ -74,8 +74,8 @@ app: http.proxy-type: HTTP # path where the service can store data vardata-directory: /var/policy-management-service - # the config-file-schema-path referres to a location in the jar file. If this property is empty or missing, - # no schema validation will be executed. + # the config-file-schema-path referres to a location in the jar file. If this property is empty or missing, + # no schema validation will be executed. config-file-schema-path: /application_configuration_schema.json # A file containing an authorization token, which shall be inserted in each HTTP header (authorization). # If the file name is empty, no authorization token is sent. diff --git a/config/application_configuration.json b/config/application_configuration.json index 6187c86..29d5923 100644 --- a/config/application_configuration.json +++ b/config/application_configuration.json @@ -1,6 +1,6 @@ { "description": "Application configuration", - "config": { + "config": { "controller": [ { "name": "controller1", @@ -13,12 +13,29 @@ { "name": "ric1", "baseUrl": "http://ric1:8085/", - "controller": "controller1", "managedElementIds": [ "kista_1", "kista_2" ] + }, + { + "name": "ric2", + "baseUrl": "http://localhost:8081/", + "customAdapterClass": "org.onap.ccsdk.oran.a1policymanagementservice.clients.StdA1ClientVersion2$Factory", + "managedElementIds": [ + "kista_3", + "kista_4" + ] + }, + { + "name": "ric3", + "baseUrl": "http://ric1:8085/", + "controller": "controller1", + "managedElementIds": [ + "kista_5", + "kista_6" + ] } ] } -} +} \ No newline at end of file diff --git a/onap/oran b/onap/oran index e9ddfb1..feed7a7 160000 --- a/onap/oran +++ b/onap/oran @@ -1 +1 @@ -Subproject commit e9ddfb1e0e0b256986d24aa02129e2e3850bb480 +Subproject commit feed7a7eb0405135c014713887536595651ab83a diff --git a/pom.xml b/pom.xml index 905a56c..01f1f76 100644 --- a/pom.xml +++ b/pom.xml @@ -115,12 +115,6 @@ javax.xml.bind jaxb-api - - org.immutables - value - ${immutable.version} - provided - org.immutables gson @@ -374,4 +368,4 @@ JIRA https://jira.o-ran-sc.org/ - + \ No newline at end of file -- 2.16.6