From 3c0def26b386b2bc48ec7b6c0f53064bd270ce63 Mon Sep 17 00:00:00 2001 From: Tomek Osinski Date: Wed, 12 Sep 2018 15:10:08 +0200 Subject: 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 --- .../src/main/yang/appc-provider-lcm.yang | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'appc-provider/appc-provider-model/src/main') 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; + } + } + /********************************************************************************** -- cgit 1.2.3-korg