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=d8704e33d244c605cab584e1eeecb53a419f98ac;hpb=934a146caf5c9d0f735f913375d55b59041b9db5;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 d8704e33..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,97 +19,104 @@ // 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-inet-types { + prefix "inet"; + revision-date "2013-07-15"; + } - import ietf-yang-types { prefix yang; } + import ietf-yang-types { + prefix yang; + } revision "2020-01-22" { description - "A1 adapter"; + "A1 adapter"; } - //Get an array of integer policy type ids - //Each item in the returned array will be regarded as one policy-type-id. - rpc getPolicyTypeIdentities { + rpc putA1Policy { input { leaf near-rt-ric-url { + type inet:uri; + } + leaf body { type string; } } - output { - leaf-list policy-type-id-list { + leaf body { type string; } + leaf http-status { + type int32; + } } } - //Get an array of integer policy ids - //Each item in the returned array will be regarded as one policy-id. - rpc getPolicyIdentities { + rpc getA1Policy { input { leaf near-rt-ric-url { - type string; + type inet:uri; } } - output { - leaf-list policy-id-list { + leaf body { type string; } + leaf http-status { + type int32; + } } } - //Get a policy type - rpc getPolicyType { + rpc getA1PolicyStatus { input { leaf near-rt-ric-url { - type string; - } - leaf policy-type-id { - type string; + type inet:uri; } } output { - leaf policy-type { + leaf body { type string; } + leaf http-status { + type int32; + } } } - //Create a policy - rpc putPolicy { + rpc getA1PolicyType { input { leaf near-rt-ric-url { - type string; - } - leaf policy-id { - type string; - } - leaf policy { - type string; + type inet:uri; } } output { - leaf returned-policy { + leaf body { type string; } + leaf http-status { + type int32; + } } } - //Delete a policy - rpc deletePolicy { + rpc deleteA1Policy { input { leaf near-rt-ric-url { - type string; + type inet:uri; } - leaf policy-id { + } + output { + leaf body { type string; } + leaf http-status { + type int32; + } } } } \ No newline at end of file