\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
- import ietf-yang-types { prefix yang; }\r
+ import ietf-yang-types {\r
+ prefix yang;\r
+ }\r
\r
revision "2020-01-22" {\r
description\r
- "A1 adapter";\r
+ "A1 adapter";\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
}\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
}\r
}\r
\r
- //Get a policy type\r
+ // Get a policy type\r
rpc getPolicyType {\r
input {\r
leaf near-rt-ric-url {\r
}\r
}\r
\r
- //Create a policy\r
+ // Create a policy\r
rpc putPolicy {\r
input {\r
leaf near-rt-ric-url {\r
}\r
}\r
\r
- //Delete a policy\r
+ // Delete a policy\r
rpc deletePolicy {\r
input {\r
leaf near-rt-ric-url {\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