aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-08-01 19:32:05 +0300
committerEylon Malin <eylon.malin@intl.att.com>2019-08-01 19:32:05 +0300
commit6126ea252a460c22e89bc8ad5ab68ec62e45fbe5 (patch)
treeaec0e7ea938ccabd02cad98b54a77312d2a17fd6 /vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js
parent95ea3bac38467090417056254ef6e4b3165e27d7 (diff)
handling cloud owner and lcp region in create port mirroring configuration
Issue-ID: VID-482 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Id7aed0f44927b27b69287f513d24552cf2afc003
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js
index 26adcf43b..84413f890 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js
@@ -37,6 +37,14 @@ var DataService = function($log, DataService) {
setCloudRegionTenantList : function(cloudRegionTenantList) {
_this.cloudRegionTenantList = cloudRegionTenantList;
},
+ getCloudOwnerAndLcpCloudRegionFromOptionId : function (cloudRegionOptionId) {
+ var cloudRegionTenantList = this.getCloudRegionTenantList();
+ var cloudRegionTenant = _.find(cloudRegionTenantList, {"cloudRegionOptionId": cloudRegionOptionId});
+ return {
+ cloudOwner: cloudRegionTenant.cloudOwner,
+ cloudRegionId: cloudRegionTenant.cloudRegionId
+ }
+ },
getGlobalCustomerId : function() {
return _this.globalCustomerId;
},