X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sdnc-a1-controller%2Fnorthbound%2Fnonrt-ric-api%2Fmodel%2Fsrc%2Fmain%2Fyang%2FNONRT-RIC-API.yang;h=40005d21cd607f5cf8e6a19505d9318026b4769f;hb=f3461cb776023b950d62edd25eca148b6d354c9c;hp=b6a2869c5151bec443f0d28dd9655dca3b58db0a;hpb=b6fe5a1bbad372357f6b441e1657dd8bbe48dc1a;p=nonrtric.git diff --git a/sdnc-a1-controller/northbound/nonrt-ric-api/model/src/main/yang/NONRT-RIC-API.yang b/sdnc-a1-controller/northbound/nonrt-ric-api/model/src/main/yang/NONRT-RIC-API.yang index b6a2869c..40005d21 100644 --- a/sdnc-a1-controller/northbound/nonrt-ric-api/model/src/main/yang/NONRT-RIC-API.yang +++ b/sdnc-a1-controller/northbound/nonrt-ric-api/model/src/main/yang/NONRT-RIC-API.yang @@ -1,3 +1,22 @@ +//- +// ============LICENSE_START======================================================= +// Copyright (C) 2019 Nordix Foundation. +// ================================================================================ +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 +// ============LICENSE_END========================================================= +// module A1-ADAPTER-API { namespace "org:onap:sdnc:northbound:a1-adapter"; @@ -8,78 +27,38 @@ module A1-ADAPTER-API { import ietf-yang-types { prefix yang; } - revision "2019-10-02" { + revision "2020-01-22" { description - "A1 adapter for Frankfurt"; + "A1 adapter"; } -///Flattend interface using RPC - - //Get a comma separated list of near-rt rics, e.g. domain-name1:port1,domainname2:port2 - //Each item in the returned list will be regarded as one near-rt-ric-id. - rpc getNearRT-RICs { - output { - leaf-list near-rt-ric-id-list { - type string; - } - } - } - - //Get health status for a Near-RT-RIC. true - health ok, false - health is not ok. - rpc getHealthCheck { - input { - leaf near-rt-ric-id { - type string; - } - } - - output { - leaf health-status { - type boolean; - } - } - } - - //Get a comma separated list of integer policy type ids - //Each item in the returned list will be regarded as one policy-type-id. - rpc getPolicyTypes { + //Get an array of integer policy type ids + //Each item in the returned array will be regarded as one policy-type-id. + rpc getPolicyTypeIdentities { input { - leaf near-rt-ric-id { + leaf near-rt-ric-url { type string; } } output { leaf-list policy-type-id-list { - type uint32; + type string; } } } - //Create a policy type - rpc createPolicyType { + //Get an array of integer policy ids + //Each item in the returned array will be regarded as one policy-id. + rpc getPolicyIdentities { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf description { - type string; - } - leaf name { - type string; - } - leaf policy-type { + leaf near-rt-ric-url { type string; } } - output { - leaf status { - type string; - } - leaf code { + + output { + leaf-list policy-id-list { type string; } } @@ -88,125 +67,50 @@ module A1-ADAPTER-API { //Get a policy type rpc getPolicyType { input { - leaf near-rt-ric-id { + leaf near-rt-ric-url { type string; } leaf policy-type-id { - type uint32; + type string; } } output { - leaf description { - type string; - } - leaf name { - type string; - } leaf policy-type { type string; } } } - //Delete a policy type - rpc deletePolicyType { - input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - } - } - - //Get a comma separeated list of string policy instance ids - //Each item in the returned list will be regarded as one policy-instance-id. - rpc getPolicyInstances { + //Create a policy + rpc putPolicy { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - } - - output { - leaf-list policy-instance-id-list { + leaf near-rt-ric-url { type string; } - } - } - - //Create a policy instance - rpc createPolicyInstance { - input { - leaf near-rt-ric-id { + leaf policy-id { type string; } leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { type string; } - leaf policy-instance { - type string; - } - } - } - - ///Get a policy instance - rpc getPolicyInstance { - input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { + leaf policy { type string; } } output { - leaf policy-instance { - type string; - } - } - } - - //Delete a policy instance - rpc deletePolicyInstance { - input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { + leaf returned-policy { type string; } } } - //Get the status for a policy instance - rpc getStatus { + //Delete a policy + rpc deletePolicy { input { - leaf near-rt-ric-id { + leaf near-rt-ric-url { type string; } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { - type string; - } - } - output { - leaf status { + leaf policy-id { type string; } }