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
13 "A1 adapter for Frankfurt";
\r
16 ///Flattend interface using RPC
\r
18 //Get a comma separated list of near-rt rics, e.g. domain-name1:port1,domainname2:port2
\r
19 //Each item in the returned list will be regarded as one near-rt-ric-id.
\r
20 rpc getNearRT-RICs {
\r
22 leaf-list near-rt-ric-id-list {
\r
28 //Get health status for a Near-RT-RIC. true - health ok, false - health is not ok.
\r
29 rpc getHealthCheck {
\r
31 leaf near-rt-ric-id {
\r
37 leaf health-status {
\r
43 //Get a comma separated list of integer policy type ids
\r
44 //Each item in the returned list will be regarded as one policy-type-id.
\r
45 rpc getPolicyTypes {
\r
47 leaf near-rt-ric-id {
\r
53 leaf-list policy-type-id-list {
\r
59 //Create a policy type
\r
60 rpc createPolicyType {
\r
62 leaf near-rt-ric-id {
\r
65 leaf policy-type-id {
\r
91 leaf near-rt-ric-id {
\r
94 leaf policy-type-id {
\r
111 //Delete a policy type
\r
112 rpc deletePolicyType {
\r
114 leaf near-rt-ric-id {
\r
117 leaf policy-type-id {
\r
123 //Get a comma separeated list of string policy instance ids
\r
124 //Each item in the returned list will be regarded as one policy-instance-id.
\r
125 rpc getPolicyInstances {
\r
127 leaf near-rt-ric-id {
\r
130 leaf policy-type-id {
\r
136 leaf-list policy-instance-id-list {
\r
142 //Create a policy instance
\r
143 rpc createPolicyInstance {
\r
145 leaf near-rt-ric-id {
\r
148 leaf policy-type-id {
\r
151 leaf policy-instance-id {
\r
154 leaf policy-instance {
\r
160 ///Get a policy instance
\r
161 rpc getPolicyInstance {
\r
163 leaf near-rt-ric-id {
\r
166 leaf policy-type-id {
\r
169 leaf policy-instance-id {
\r
174 leaf policy-instance {
\r
180 //Delete a policy instance
\r
181 rpc deletePolicyInstance {
\r
183 leaf near-rt-ric-id {
\r
186 leaf policy-type-id {
\r
189 leaf policy-instance-id {
\r
195 //Get the status for a policy instance
\r
198 leaf near-rt-ric-id {
\r
201 leaf policy-type-id {
\r
204 leaf policy-instance-id {
\r