summaryrefslogtreecommitdiffstats
path: root/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
diff options
context:
space:
mode:
authorTomek Osinski <tomasz.osinski2@orange.com>2018-09-12 15:10:08 +0200
committerTakamune Cho <tc012c@att.com>2018-09-17 20:16:32 +0000
commit3c0def26b386b2bc48ec7b6c0f53064bd270ce63 (patch)
tree6adbae9ba6fd9771991ffc30a5d6b040b88e312a /appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
parentd90ba5c3b7237131a47ad835ab19f42110166a73 (diff)
Adding DistributeTraffic LCM API
This commit contains code modifications for APPC to support DistributeTraffic LCM API. Tests has been implemented for new service. Change-Id: I853120eced93928268074cf89dd62fb89fea9ff8 Issue-ID: APPC-1169 Signed-off-by: Tomek Osinski <tomasz.osinski2@orange.com>
Diffstat (limited to 'appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang')
-rw-r--r--appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang26
1 files changed, 26 insertions, 0 deletions
diff --git a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
index 423a1e8b3..2e369fae3 100644
--- a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
+++ b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
@@ -5,6 +5,8 @@
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * ================================================================================
+ * Modifications Copyright (C) 2018 Orange
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -121,6 +123,7 @@ module appc-provider-lcm {
enum "Reboot";
enum "AttachVolume";
enum "DetachVolume";
+ enum "DistributeTraffic";
}
description "The action to be taken by APP-C, e.g. Restart, Rebuild, Migrate";
@@ -1314,6 +1317,29 @@ module appc-provider-lcm {
}
}
+ /**********************************************************************************
+ * Define the traffic distribution service
+ **********************************************************************************/
+ rpc distribute-traffic {
+ description "An operation to distribute traffic between VMs";
+ 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;
+ }
+ }
+
/**********************************************************************************