From de52c6240a7c4b7e0cab5ea4718ac0f4608f2aa2 Mon Sep 17 00:00:00 2001 From: mojahidi Date: Mon, 14 Aug 2017 12:50:45 +0530 Subject: Rename action Block/UnBlock and Update Orch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit StopApplication : Renamed block traffic action to StopApplication. Transition of status in AAI will be stopping on accepting request followed by Stopped for Success and Error for error scenario’s StartApplicaiton: Renamed unblock traffic action to StartApplication. Transition of status in AAI will be starting on accepting request followed by Running for Success and Error for error scenario’s. Refactored to handle actions on basis of ReadOnly,OrchestrationStatus, BuiltIn and OperationalStatus instead of individual actions. Change-Id: Ia7c6b233ac9a0aabeb9a1f7d715629917f6b7b86 Issue-ID:APPC-55 Signed-off-by: mojahidi --- .../src/main/yang/appc-provider-lcm.yang | 44 +++++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'appc-provider/appc-provider-model/src/main/yang') 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 d72b551a8..d46ba8cb4 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 @@ -110,6 +110,8 @@ module appc-provider-lcm { enum "ConfigBackup"; enum "ConfigBackupDelete"; enum "ConfigExport"; + enum "StopApplication"; + enum "StartApplication"; } description "The action to be taken by APP-C, e.g. Restart, Rebuild, Migrate"; } @@ -922,8 +924,46 @@ module appc-provider-lcm { uses common-header; uses status; } - } - + } + rpc stop-application { + description "An operation to Stop Application traffic to a virtual network function"; + input { + uses common-header; + leaf action { + type action; + mandatory true; + } + uses action-identifiers; + leaf payload { + type payload; + mandatory false; + } + } + output { + uses common-header; + uses status; + } + } + + rpc start-application { + description "An operation to Start Application traffic to a virtual network function"; + input { + uses common-header; + leaf action { + type action; + mandatory true; + } + uses action-identifiers; + leaf payload { + type payload; + mandatory false; + } + } + output { + uses common-header; + uses status; + } + } /********************************************************************************** * Additional RPCs added here... **********************************************************************************/ -- cgit 1.2.3-korg