Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implemented policy get-status
[nonrtric.git]
/
sdnc-a1-controller
/
northbound
/
nonrt-ric-api
/
model
/
src
/
main
/
yang
/
NONRT-RIC-API.yang
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
40005d2
..
a9cf825
100644
(file)
--- 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 {
\r
prefix a1-adapter-api;
\r
\r
\r
prefix a1-adapter-api;
\r
\r
- import ietf-inet-types { prefix "inet"; revision-date "2013-07-15"; }
\r
+ import ietf-inet-types {
\r
+ prefix "inet";
\r
+ revision-date "2013-07-15";
\r
+ }
\r
\r
\r
- import ietf-yang-types { prefix yang; }
\r
+ import ietf-yang-types {
\r
+ prefix yang;
\r
+ }
\r
\r
revision "2020-01-22" {
\r
description
\r
\r
revision "2020-01-22" {
\r
description
\r
- "A1 adapter";
\r
+
"A1 adapter";
\r
}
\r
\r
}
\r
\r
- //Get an array of integer policy type ids
\r
- //Each item in the returned array will be regarded as one policy-type-id.
\r
+ //
Get an array of integer policy type ids
\r
+ //
Each item in the returned array will be regarded as one policy-type-id.
\r
rpc getPolicyTypeIdentities {
\r
input {
\r
leaf near-rt-ric-url {
\r
rpc getPolicyTypeIdentities {
\r
input {
\r
leaf near-rt-ric-url {
\r
@@
-48,8
+53,8
@@
module A1-ADAPTER-API {
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Get an array of integer policy ids
\r
- //Each item in the returned array will be regarded as one policy-id.
\r
+ //
Get an array of integer policy ids
\r
+ //
Each item in the returned array will be regarded as one policy-id.
\r
rpc getPolicyIdentities {
\r
input {
\r
leaf near-rt-ric-url {
\r
rpc getPolicyIdentities {
\r
input {
\r
leaf near-rt-ric-url {
\r
@@
-64,7
+69,7
@@
module A1-ADAPTER-API {
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Get a policy type
\r
+ //
Get a policy type
\r
rpc getPolicyType {
\r
input {
\r
leaf near-rt-ric-url {
\r
rpc getPolicyType {
\r
input {
\r
leaf near-rt-ric-url {
\r
@@
-81,7
+86,7
@@
module A1-ADAPTER-API {
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Create a policy
\r
+ //
Create a policy
\r
rpc putPolicy {
\r
input {
\r
leaf near-rt-ric-url {
\r
rpc putPolicy {
\r
input {
\r
leaf near-rt-ric-url {
\r
@@
-104,7
+109,7
@@
module A1-ADAPTER-API {
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Delete a policy
\r
+ //
Delete a policy
\r
rpc deletePolicy {
\r
input {
\r
leaf near-rt-ric-url {
\r
rpc deletePolicy {
\r
input {
\r
leaf near-rt-ric-url {
\r
@@
-115,4
+120,21
@@
module A1-ADAPTER-API {
}
\r
}
\r
}
\r
}
\r
}
\r
}
\r
+
\r
+ // Get a policy status
\r
+ rpc getPolicyStatus {
\r
+ input {
\r
+ leaf near-rt-ric-url {
\r
+ type string;
\r
+ }
\r
+ leaf policy-id {
\r
+ type string;
\r
+ }
\r
+ }
\r
+ output {
\r
+ leaf policy-status {
\r
+ type string;
\r
+ }
\r
+ }
\r
+ }
\r
}
\ No newline at end of file
}
\ No newline at end of file