Add Http Response Code in A1 Controller Api
[nonrtric.git] / sdnc-a1-controller / northbound / nonrt-ric-api / model / src / main / yang / NONRT-RIC-API.yang
index 806bdc1..834d12f 100644 (file)
@@ -10,10 +10,10 @@ module A1-ADAPTER-API {
 \r
     revision "2019-10-02" {\r
         description\r
-        "A1 adapter for Frankfurt";\r
+        "A1 adapter";\r
     }\r
 \r
-///Flattend interface using RPC\r
+    ///Flattend interface using RPC\r
 \r
     //Get an array of near-rt-ric IDs,\r
     //Each item in the returned array will be regarded as one near-rt-ric-id.\r
@@ -22,6 +22,9 @@ module A1-ADAPTER-API {
             leaf-list near-rt-ric-id-list {\r
                 type string;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -37,6 +40,9 @@ module A1-ADAPTER-API {
             leaf health-status {\r
                 type boolean;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -53,6 +59,9 @@ module A1-ADAPTER-API {
             leaf-list policy-type-id-list {\r
                 type uint32;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -76,9 +85,6 @@ module A1-ADAPTER-API {
             }\r
         }\r
        output {\r
-            leaf status {\r
-                type string;\r
-            }\r
             leaf code {\r
                 type string;\r
             }\r
@@ -105,6 +111,9 @@ module A1-ADAPTER-API {
             leaf policy-type {\r
                 type string;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -118,6 +127,11 @@ module A1-ADAPTER-API {
                 type uint32;\r
             }\r
         }\r
+        output {\r
+            leaf code {\r
+                type string;\r
+            }\r
+        }\r
     }\r
 \r
     //Get an array of string policy instance ids\r
@@ -136,6 +150,9 @@ module A1-ADAPTER-API {
             leaf-list policy-instance-id-list {\r
                 type string;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -155,6 +172,11 @@ module A1-ADAPTER-API {
                 type string;\r
             }\r
         }\r
+        output {\r
+            leaf code {\r
+                type string;\r
+            }\r
+        }\r
     }\r
 \r
     ///Get a policy instance\r
@@ -174,6 +196,9 @@ module A1-ADAPTER-API {
             leaf policy-instance {\r
                 type string;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 \r
@@ -190,6 +215,11 @@ module A1-ADAPTER-API {
                 type string;\r
             }\r
         }\r
+        output {\r
+            leaf code {\r
+                type string;\r
+            }\r
+        }\r
     }\r
 \r
     //Get the status for a policy instance\r
@@ -209,6 +239,9 @@ module A1-ADAPTER-API {
             leaf status {\r
                 type string;\r
             }\r
+            leaf code {\r
+                type string;\r
+            }\r
         }\r
     }\r
 }
\ No newline at end of file