aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/pipes
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2019-03-16 18:18:14 +0100
committerLukasz Rajewski <lukasz.rajewski@orange.com>2019-03-16 18:18:14 +0100
commitc63fafc2383afc4422b4af458639316eaf63c0fe (patch)
treef03abcaf959c0bc5f544e3c9d11c622620d92a78 /src/app/pipes
parent9444b331a86ad1ce1c756103e7b475a12ba78e04 (diff)
Added DistributeTrafficCheck LCM command support
Proposed change adds support for new LCM API dedicated for traffic distribution pre- or post-checks that should assist DistributeTraffic LCM. Few small bugs fixed when multiple ansible server has been added and DistributeTraffic changes were not counted properly. Change-Id: I5606a2dd73e8f051f9a69a02bf7c51770f173263 Issue-ID: APPC-1470 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Diffstat (limited to 'src/app/pipes')
-rw-r--r--src/app/pipes/vm-filtering.pipe.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/pipes/vm-filtering.pipe.ts b/src/app/pipes/vm-filtering.pipe.ts
index eef39cf..6da7840 100644
--- a/src/app/pipes/vm-filtering.pipe.ts
+++ b/src/app/pipes/vm-filtering.pipe.ts
@@ -27,7 +27,7 @@ export class VmFilteringPipe implements PipeTransform {
let filterValue
if(action == 'ConfigScaleOut'){
filterValue= templateId
- } else if(action == 'Configure' || action == 'ConfigModify'){
+ } else if(action == 'Configure' || action == 'ConfigModify' || action == 'DistributeTraffic' || action == 'DistributeTrafficCheck'){
filterValue= newVnfc
}
if (action == 'ConfigScaleOut') {
@@ -38,7 +38,7 @@ export class VmFilteringPipe implements PipeTransform {
return x;
- } else if( action == 'Configure' || action == 'ConfigModify'){
+ } else if( action == 'Configure' || action == 'ConfigModify' || action == 'DistributeTraffic' || action == 'DistributeTrafficCheck'){
let x = value.filter(obj => {
//return value
return ( obj['vnfcType-id'] == filterValue || obj['vnfcType-id'] == undefined);