From 3982f4f67314ec37fd9b22ae54049958af777c1b Mon Sep 17 00:00:00 2001 From: jimmydot Date: Sun, 7 May 2017 14:58:24 -0400 Subject: [VID-6] Initial rebase push Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346 Signed-off-by: jimmydot --- .../app/vid/scripts/constants/vidConfiguration.js | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100755 vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js new file mode 100755 index 000000000..8fdfd3fcb --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js @@ -0,0 +1,99 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +appDS2.constant("VIDCONFIGURATION", (function() { + /* + * VNF_STATUS_CHECK_ENABLED: Determines whether VID will check the VNF valid status combination list, before allowing VNF updates. + * Set to false, to disable the check. + */ + var VNF_STATUS_CHECK_ENABLED = false; + /* + * List of valid VNF status combinations + */ + var vnfValidStatusList = [ + { + "provStatus": "preprov", + "orchestrationStatus": "pending-create", + "inMaint": false, + "operationalStatus": null + }, + { + "provStatus": "preprov", + "orchestrationStatus": "created", + "inMaint": false, + "operationalStatus": null + }, + { + "provStatus": "preprov", + "orchestrationStatus": "active", + "inMaint": false, + "operationalStatus": null + }, + { + "provStatus": "nvtprov", + "orchestrationStatus": "active", + "inMaint": false, + "operationalStatus": null + }, + { + "provStatus": "prov", + "orchestrationStatus": "active", + "inMaint": false, + "operationalStatus": "out-of-service-path" + } + ]; + /* + * The model status VID uses to query SDC for a list of models. The possible values are: + * DISTRIBUTION_NOT_APPROVED, + * DISTRIBUTION_APPROVED, + * DISTRIBUTED, + * DISTRIBUTION_REJECTED, + * ALL, + * In the production env, this should always be set to DISTRIBUTED + */ + var ASDC_MODEL_STATUS = "DISTRIBUTED"; + /* + * Max number of times that VID will poll MSO for a given request status + */ + var MSO_MAX_POLLS = 10; + /* + * Number of msecs that VID will wait between MSO polls. + */ + var MSO_POLLING_INTERVAL_MSECS = 10000; + /* + * List of all service model invariant UUIDs that need macro instantiation. + * Example: + * MACRO_SERVICES : ["3cf30cbb-5fe7-4fb3-b049-559a4997b221", "b135a703-bab5-4295-a37f-580a4f2d0961"] + * + */ + var COMPONENT_LIST_NAMED_QUERY_ID = "0367193e-c785-4d5f-9cb8-7bc89dc9ddb7"; + var MACRO_SERVICES = []; + return { + ASDC_MODEL_STATUS : ASDC_MODEL_STATUS, + MSO_MAX_POLLS : MSO_MAX_POLLS, + MSO_POLLING_INTERVAL_MSECS : MSO_POLLING_INTERVAL_MSECS, + VNF_STATUS_CHECK_ENABLED : VNF_STATUS_CHECK_ENABLED, + VNF_VALID_STATUS_LIST : vnfValidStatusList, + MACRO_SERVICES : MACRO_SERVICES, + COMPONENT_LIST_NAMED_QUERY_ID : COMPONENT_LIST_NAMED_QUERY_ID + }; +})()) -- cgit 1.2.3-korg