2 // ============LICENSE_START=======================================================
\r
3 // Copyright (C) 2019 Nordix Foundation.
\r
4 // ================================================================================
\r
5 // Licensed under the Apache License, Version 2.0 (the "License");
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://www.apache.org/licenses/LICENSE-2.0
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an "AS IS" BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
17 // SPDX-License-Identifier: Apache-2.0
\r
18 // ============LICENSE_END=========================================================
\r
20 module A1-ADAPTER-API {
\r
22 namespace "org:onap:sdnc:northbound:a1-adapter";
\r
24 prefix a1-adapter-api;
\r
26 import ietf-inet-types { prefix "inet"; revision-date "2013-07-15"; }
\r
28 import ietf-yang-types { prefix yang; }
\r
30 revision "2019-10-02" {
\r
35 //Flattend interface using RPC
\r
37 //Get an array of near-rt-ric IDs,
\r
38 //Each item in the returned array will be regarded as one near-rt-ric-id.
\r
39 rpc getNearRT-RICs {
\r
41 leaf-list near-rt-ric-id-list {
\r
50 //Get health status for a Near-RT-RIC. true - health ok, false - health is not ok.
\r
51 rpc getHealthCheck {
\r
53 leaf near-rt-ric-id {
\r
59 leaf health-status {
\r
68 //Get an array of integer policy type ids
\r
69 //Each item in the returned array will be regarded as one policy-type-id.
\r
70 rpc getPolicyTypes {
\r
72 leaf near-rt-ric-id {
\r
78 leaf-list policy-type-id-list {
\r
87 //Create a policy type
\r
88 rpc createPolicyType {
\r
90 leaf near-rt-ric-id {
\r
93 leaf policy-type-id {
\r
113 //Get a policy type
\r
114 rpc getPolicyType {
\r
116 leaf near-rt-ric-id {
\r
119 leaf policy-type-id {
\r
139 //Delete a policy type
\r
140 rpc deletePolicyType {
\r
142 leaf near-rt-ric-id {
\r
145 leaf policy-type-id {
\r
156 //Get an array of string policy instance ids
\r
157 //Each item in the returned array will be regarded as one policy-instance-id.
\r
158 rpc getPolicyInstances {
\r
160 leaf near-rt-ric-id {
\r
163 leaf policy-type-id {
\r
169 leaf-list policy-instance-id-list {
\r
178 //Create a policy instance
\r
179 rpc createPolicyInstance {
\r
181 leaf near-rt-ric-id {
\r
184 leaf policy-type-id {
\r
187 leaf policy-instance-id {
\r
190 leaf policy-instance {
\r
201 ///Get a policy instance
\r
202 rpc getPolicyInstance {
\r
204 leaf near-rt-ric-id {
\r
207 leaf policy-type-id {
\r
210 leaf policy-instance-id {
\r
215 leaf policy-instance {
\r
224 //Delete a policy instance
\r
225 rpc deletePolicyInstance {
\r
227 leaf near-rt-ric-id {
\r
230 leaf policy-type-id {
\r
233 leaf policy-instance-id {
\r
244 //Get the status for a policy instance
\r
247 leaf near-rt-ric-id {
\r
250 leaf policy-type-id {
\r
253 leaf policy-instance-id {
\r