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=986e201763badcfd03f361624098370b494be235;hb=eec4647d457ca8c2ebecc86485127bd529919533;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..986e2017 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"; @@ -10,18 +29,21 @@ module A1-ADAPTER-API { revision "2019-10-02" { description - "A1 adapter for Frankfurt"; + "A1 adapter"; } -///Flattend interface using RPC + //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. + //Get an array of near-rt-ric IDs, + //Each item in the returned array will be regarded as one near-rt-ric-id. rpc getNearRT-RICs { output { leaf-list near-rt-ric-id-list { type string; } + leaf code { + type string; + } } } @@ -37,11 +59,14 @@ module A1-ADAPTER-API { leaf health-status { type boolean; } - } + leaf code { + type string; + } + } } - //Get a comma separated list of integer policy type ids - //Each item in the returned list will be regarded as one policy-type-id. + //Get an array of integer policy type ids + //Each item in the returned array will be regarded as one policy-type-id. rpc getPolicyTypes { input { leaf near-rt-ric-id { @@ -53,6 +78,9 @@ module A1-ADAPTER-API { leaf-list policy-type-id-list { type uint32; } + leaf code { + type string; + } } } @@ -76,9 +104,6 @@ module A1-ADAPTER-API { } } output { - leaf status { - type string; - } leaf code { type string; } @@ -105,6 +130,9 @@ module A1-ADAPTER-API { leaf policy-type { type string; } + leaf code { + type string; + } } } @@ -118,10 +146,15 @@ module A1-ADAPTER-API { type uint32; } } + output { + leaf code { + type string; + } + } } - //Get a comma separeated list of string policy instance ids - //Each item in the returned list will be regarded as one policy-instance-id. + //Get an array of string policy instance ids + //Each item in the returned array will be regarded as one policy-instance-id. rpc getPolicyInstances { input { leaf near-rt-ric-id { @@ -136,6 +169,9 @@ module A1-ADAPTER-API { leaf-list policy-instance-id-list { type string; } + leaf code { + type string; + } } } @@ -155,8 +191,13 @@ module A1-ADAPTER-API { type string; } } + output { + leaf code { + type string; + } + } } - + ///Get a policy instance rpc getPolicyInstance { input { @@ -174,9 +215,12 @@ module A1-ADAPTER-API { leaf policy-instance { type string; } + leaf code { + type string; + } } } - + //Delete a policy instance rpc deletePolicyInstance { input { @@ -190,6 +234,11 @@ module A1-ADAPTER-API { type string; } } + output { + leaf code { + type string; + } + } } //Get the status for a policy instance @@ -209,6 +258,9 @@ module A1-ADAPTER-API { leaf status { type string; } + leaf code { + type string; + } } } } \ No newline at end of file