Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add https support in A1 controller
[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
d8704e3
..
34c0a72
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
@@
-19,97
+19,104
@@
//
\r
module A1-ADAPTER-API {
\r
\r
//
\r
module A1-ADAPTER-API {
\r
\r
- namespace "org:o
nap:sdnc
:northbound:a1-adapter";
\r
+ namespace "org:o
_ran_sc:nonrtric:sdnc_a1
:northbound:a1-adapter";
\r
\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
- rpc getPolicyTypeIdentities {
\r
+ rpc putA1Policy {
\r
input {
\r
leaf near-rt-ric-url {
\r
input {
\r
leaf near-rt-ric-url {
\r
+ type inet:uri;
\r
+ }
\r
+ leaf body {
\r
type string;
\r
}
\r
}
\r
type string;
\r
}
\r
}
\r
-
\r
output {
\r
output {
\r
- leaf
-list policy-type-id-list
{
\r
+ leaf
body
{
\r
type string;
\r
}
\r
type string;
\r
}
\r
+ leaf http-status {
\r
+ type int32;
\r
+ }
\r
}
\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
- rpc getPolicyIdentities {
\r
+ rpc getA1Policy {
\r
input {
\r
leaf near-rt-ric-url {
\r
input {
\r
leaf near-rt-ric-url {
\r
- type
string
;
\r
+ type
inet:uri
;
\r
}
\r
}
\r
}
\r
}
\r
-
\r
output {
\r
output {
\r
- leaf
-list policy-id-list
{
\r
+ leaf
body
{
\r
type string;
\r
}
\r
type string;
\r
}
\r
+ leaf http-status {
\r
+ type int32;
\r
+ }
\r
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Get a policy type
\r
- rpc getPolicyType {
\r
+ rpc getA1PolicyStatus {
\r
input {
\r
leaf near-rt-ric-url {
\r
input {
\r
leaf near-rt-ric-url {
\r
- type string;
\r
- }
\r
- leaf policy-type-id {
\r
- type string;
\r
+ type inet:uri;
\r
}
\r
}
\r
output {
\r
}
\r
}
\r
output {
\r
- leaf
policy-type
{
\r
+ leaf
body
{
\r
type string;
\r
}
\r
type string;
\r
}
\r
+ leaf http-status {
\r
+ type int32;
\r
+ }
\r
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Create a policy
\r
- rpc putPolicy {
\r
+ rpc getA1PolicyType {
\r
input {
\r
leaf near-rt-ric-url {
\r
input {
\r
leaf near-rt-ric-url {
\r
- type string;
\r
- }
\r
- leaf policy-id {
\r
- type string;
\r
- }
\r
- leaf policy {
\r
- type string;
\r
+ type inet:uri;
\r
}
\r
}
\r
output {
\r
}
\r
}
\r
output {
\r
- leaf
returned-polic
y {
\r
+ leaf
bod
y {
\r
type string;
\r
}
\r
type string;
\r
}
\r
+ leaf http-status {
\r
+ type int32;
\r
+ }
\r
}
\r
}
\r
\r
}
\r
}
\r
\r
- //Delete a policy
\r
- rpc deletePolicy {
\r
+ rpc deleteA1Policy {
\r
input {
\r
leaf near-rt-ric-url {
\r
input {
\r
leaf near-rt-ric-url {
\r
- type
string
;
\r
+ type
inet:uri
;
\r
}
\r
}
\r
- leaf policy-id {
\r
+ }
\r
+ output {
\r
+ leaf body {
\r
type string;
\r
}
\r
type string;
\r
}
\r
+ leaf http-status {
\r
+ type int32;
\r
+ }
\r
}
\r
}
\r
}
\ No newline at end of file
}
\r
}
\r
}
\ No newline at end of file