Adding DistributeTrafficCheck LCM API
[appc.git] / appc-provider / appc-provider-model / src / main / yang / appc-provider-lcm.yang
index 2e369fa..2b8521a 100644 (file)
@@ -6,7 +6,7 @@
  * ================================================================================
  * Copyright (C) 2017 Amdocs
  * ================================================================================
- * Modifications Copyright (C) 2018 Orange
+ * Modifications Copyright (C) 2018-2019 Orange
  * =============================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -124,7 +124,7 @@ module appc-provider-lcm {
             enum "AttachVolume";
             enum "DetachVolume";
             enum "DistributeTraffic";
-            
+            enum "DistributeTrafficCheck";
         }
         description "The action to be taken by APP-C, e.g. Restart, Rebuild, Migrate";
     }
@@ -1340,6 +1340,28 @@ module appc-provider-lcm {
         }
     }
 
+    /**********************************************************************************
+     * Define the distribute traffic check service
+     **********************************************************************************/
+    rpc distribute-traffic-check {
+        description "An operation to check conditions and the result of DistributeTraffic.";
+        input {
+            uses common-header;
+            leaf action {
+                type action;
+                mandatory true;
+            }
+            uses action-identifiers;
+            leaf payload {
+                type payload;
+                mandatory true;
+            }
+        }
+        output {
+            uses common-header;
+            uses status;
+        }
+    }
 
 
  /**********************************************************************************