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=34c0a72d85a201731e5d8fe6dad7a6046153e500;hb=348cb8528bdf879354de640b3249bc40db934505;hp=986e201763badcfd03f361624098370b494be235;hpb=3185681c9af47e8ff5b235d8d6c51f8f06fd5bce;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 986e2017..34c0a72d 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 @@ -19,247 +19,103 @@ // module A1-ADAPTER-API { - namespace "org:onap:sdnc:northbound:a1-adapter"; + namespace "org:o_ran_sc:nonrtric:sdnc_a1:northbound:a1-adapter"; prefix a1-adapter-api; - import ietf-inet-types { prefix "inet"; revision-date "2013-07-15"; } - - import ietf-yang-types { prefix yang; } - - revision "2019-10-02" { - description - "A1 adapter"; + import ietf-inet-types { + prefix "inet"; + revision-date "2013-07-15"; } - //Flattend interface using RPC - - //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; - } - } + import ietf-yang-types { + prefix yang; } - //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; - } - leaf code { - type string; - } - } - } - - //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 { - type string; - } - } - - output { - leaf-list policy-type-id-list { - type uint32; - } - leaf code { - type string; - } - } + revision "2020-01-22" { + description + "A1 adapter"; } - //Create a policy type - rpc createPolicyType { + rpc putA1Policy { 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 { - type string; - } - } - output { - leaf code { - type string; + leaf near-rt-ric-url { + type inet:uri; } - } - } - - //Get a policy type - rpc getPolicyType { - input { - leaf near-rt-ric-id { + leaf body { type string; } - leaf policy-type-id { - type uint32; - } } output { - leaf description { - type string; - } - leaf name { - type string; - } - leaf policy-type { + leaf body { type string; } - leaf code { - type string; + leaf http-status { + type int32; } } } - //Delete a policy type - rpc deletePolicyType { + rpc getA1Policy { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; + leaf near-rt-ric-url { + type inet:uri; } } output { - leaf code { + leaf body { type string; } - } - } - - //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 { - type string; - } - leaf policy-type-id { - type uint32; - } - } - - output { - leaf-list policy-instance-id-list { - type string; - } - leaf code { - type string; + leaf http-status { + type int32; } } } - //Create a policy instance - rpc createPolicyInstance { + rpc getA1PolicyStatus { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { - type string; - } - leaf policy-instance { - type string; + leaf near-rt-ric-url { + type inet:uri; } } output { - leaf code { + leaf body { 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 { - type string; - } - } - output { - leaf policy-instance { - type string; - } - leaf code { - type string; + leaf http-status { + type int32; } } } - //Delete a policy instance - rpc deletePolicyInstance { + rpc getA1PolicyType { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { - type string; + leaf near-rt-ric-url { + type inet:uri; } } output { - leaf code { + leaf body { type string; } + leaf http-status { + type int32; + } } } - //Get the status for a policy instance - rpc getStatus { + rpc deleteA1Policy { input { - leaf near-rt-ric-id { - type string; - } - leaf policy-type-id { - type uint32; - } - leaf policy-instance-id { - type string; + leaf near-rt-ric-url { + type inet:uri; } } output { - leaf status { + leaf body { type string; } - leaf code { - type string; + leaf http-status { + type int32; } } }