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 {
\r
28 revision-date "2013-07-15";
\r
31 import ietf-yang-types {
\r
35 revision "2020-01-22" {
\r
40 // Get an array of integer policy type ids
\r
41 // Each item in the returned array will be regarded as one policy-type-id.
\r
42 rpc getPolicyTypeIdentities {
\r
44 leaf near-rt-ric-url {
\r
50 leaf-list policy-type-id-list {
\r
56 // Get an array of integer policy ids
\r
57 // Each item in the returned array will be regarded as one policy-id.
\r
58 rpc getPolicyIdentities {
\r
60 leaf near-rt-ric-url {
\r
66 leaf-list policy-id-list {
\r
72 // Get a policy type
\r
75 leaf near-rt-ric-url {
\r
78 leaf policy-type-id {
\r
92 leaf near-rt-ric-url {
\r
98 leaf policy-type-id {
\r
106 leaf returned-policy {
\r
115 leaf near-rt-ric-url {
\r
124 // Get a policy status
\r
125 rpc getPolicyStatus {
\r
127 leaf near-rt-ric-url {
\r
135 leaf policy-status {
\r