1 module A1-ADAPTER-API {
\r
3 namespace "org:onap:sdnc:northbound:a1-adapter";
\r
5 prefix a1-adapter-api;
\r
7 import ietf-inet-types { prefix "inet"; revision-date "2013-07-15"; }
\r
9 import ietf-yang-types { prefix yang; }
\r
11 revision "2019-10-02" {
\r
16 ///Flattend interface using RPC
\r
18 //Get an array of near-rt-ric IDs,
\r
19 //Each item in the returned array will be regarded as one near-rt-ric-id.
\r
20 rpc getNearRT-RICs {
\r
22 leaf-list near-rt-ric-id-list {
\r
31 //Get health status for a Near-RT-RIC. true - health ok, false - health is not ok.
\r
32 rpc getHealthCheck {
\r
34 leaf near-rt-ric-id {
\r
40 leaf health-status {
\r
49 //Get an array of integer policy type ids
\r
50 //Each item in the returned array will be regarded as one policy-type-id.
\r
51 rpc getPolicyTypes {
\r
53 leaf near-rt-ric-id {
\r
59 leaf-list policy-type-id-list {
\r
68 //Create a policy type
\r
69 rpc createPolicyType {
\r
71 leaf near-rt-ric-id {
\r
74 leaf policy-type-id {
\r
97 leaf near-rt-ric-id {
\r
100 leaf policy-type-id {
\r
120 //Delete a policy type
\r
121 rpc deletePolicyType {
\r
123 leaf near-rt-ric-id {
\r
126 leaf policy-type-id {
\r
137 //Get an array of string policy instance ids
\r
138 //Each item in the returned array will be regarded as one policy-instance-id.
\r
139 rpc getPolicyInstances {
\r
141 leaf near-rt-ric-id {
\r
144 leaf policy-type-id {
\r
150 leaf-list policy-instance-id-list {
\r
159 //Create a policy instance
\r
160 rpc createPolicyInstance {
\r
162 leaf near-rt-ric-id {
\r
165 leaf policy-type-id {
\r
168 leaf policy-instance-id {
\r
171 leaf policy-instance {
\r
182 ///Get a policy instance
\r
183 rpc getPolicyInstance {
\r
185 leaf near-rt-ric-id {
\r
188 leaf policy-type-id {
\r
191 leaf policy-instance-id {
\r
196 leaf policy-instance {
\r
205 //Delete a policy instance
\r
206 rpc deletePolicyInstance {
\r
208 leaf near-rt-ric-id {
\r
211 leaf policy-type-id {
\r
214 leaf policy-instance-id {
\r
225 //Get the status for a policy instance
\r
228 leaf near-rt-ric-id {
\r
231 leaf policy-type-id {
\r
234 leaf policy-instance-id {
\r