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;fp=sdnc-a1-controller%2Fnorthbound%2Fnonrt-ric-api%2Fmodel%2Fsrc%2Fmain%2Fyang%2FNONRT-RIC-API.yang;h=a9cf825d8e7f89b0c48d91c425e51e66093e4fd9;hb=deb5bb7b792ba3ac90e4c622cd804c83e4647b92;hp=40005d21cd607f5cf8e6a19505d9318026b4769f;hpb=be2000ec2d21151b42cb559ef881695eb32e35e9;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 40005d21..a9cf825d 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 @@ -23,17 +23,22 @@ module A1-ADAPTER-API { 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. + // Get an array of integer policy type ids + // Each item in the returned array will be regarded as one policy-type-id. rpc getPolicyTypeIdentities { input { leaf near-rt-ric-url { @@ -48,8 +53,8 @@ module A1-ADAPTER-API { } } - //Get an array of integer policy ids - //Each item in the returned array will be regarded as one policy-id. + // Get an array of integer policy ids + // Each item in the returned array will be regarded as one policy-id. rpc getPolicyIdentities { input { leaf near-rt-ric-url { @@ -64,7 +69,7 @@ module A1-ADAPTER-API { } } - //Get a policy type + // Get a policy type rpc getPolicyType { input { leaf near-rt-ric-url { @@ -81,7 +86,7 @@ module A1-ADAPTER-API { } } - //Create a policy + // Create a policy rpc putPolicy { input { leaf near-rt-ric-url { @@ -104,7 +109,7 @@ module A1-ADAPTER-API { } } - //Delete a policy + // Delete a policy rpc deletePolicy { input { leaf near-rt-ric-url { @@ -115,4 +120,21 @@ module A1-ADAPTER-API { } } } + + // Get a policy status + rpc getPolicyStatus { + input { + leaf near-rt-ric-url { + type string; + } + leaf policy-id { + type string; + } + } + output { + leaf policy-status { + type string; + } + } + } } \ No newline at end of file