Generalization of controller
[nonrtric.git] / sdnc-a1-controller / northbound / nonrt-ric-api / model / src / main / yang / NONRT-RIC-API.yang
index a9cf825..1933660 100644 (file)
@@ -37,104 +37,86 @@ module A1-ADAPTER-API {
           "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
-    rpc getPolicyTypeIdentities {\r
+    rpc putA1Policy {\r
         input {\r
             leaf near-rt-ric-url {\r
+                type inet:uri;\r
+            }\r
+            leaf body {\r
                 type string;\r
             }\r
         }\r
-\r
         output {\r
-            leaf-list policy-type-id-list {\r
+            leaf body {\r
                 type string;\r
             }\r
+            leaf http-status {\r
+                type int32;\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
-                type string;\r
+                type inet:uri;\r
             }\r
         }\r
-\r
         output {\r
-            leaf-list policy-id-list {\r
+            leaf body {\r
                 type string;\r
             }\r
+            leaf http-status {\r
+                type int32;\r
+            }\r
         }\r
     }\r
 \r
-    // Get a policy type\r
-    rpc getPolicyType {\r
+    rpc getA1PolicyStatus {\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
-            leaf policy-type {\r
+            leaf body {\r
                 type string;\r
             }\r
+            leaf http-status {\r
+                type int32;\r
+            }\r
         }\r
     }\r
 \r
-    // Create a policy\r
-    rpc putPolicy {\r
+    rpc getA1PolicyType {\r
         input {\r
             leaf near-rt-ric-url {\r
-                type string;\r
-            }\r
-            leaf policy-id {\r
-                type string;\r
-            }\r
-            leaf policy-type-id {\r
-                type string;\r
-            }\r
-            leaf policy {\r
-                type string;\r
+                type inet:uri;\r
             }\r
         }\r
         output {\r
-            leaf returned-policy {\r
-                type string;\r
-            }\r
-        }\r
-    }\r
-\r
-    // Delete a policy\r
-    rpc deletePolicy {\r
-        input {\r
-            leaf near-rt-ric-url {\r
+            leaf body {\r
                 type string;\r
             }\r
-            leaf policy-id {\r
-                type string;\r
+            leaf http-status {\r
+                type int32;\r
             }\r
         }\r
     }\r
 \r
-    // Get a policy status\r
-    rpc getPolicyStatus {\r
+    rpc deleteA1Policy {\r
         input {\r
             leaf near-rt-ric-url {\r
-                type string;\r
-            }\r
-            leaf policy-id {\r
-                type string;\r
+                type inet:uri;\r
             }\r
         }\r
         output {\r
-            leaf policy-status {\r
+            leaf body {\r
                 type string;\r
             }\r
+            leaf http-status {\r
+                type int32;\r
+            }\r
         }\r
     }\r
 }
\ No newline at end of file