2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
23 appDS2.constant("VIDCONFIGURATION", (function() {
\r
25 * VNF_STATUS_CHECK_ENABLED: Determines whether VID will check the VNF valid status combination list, before allowing VNF updates.
\r
26 * Set to false, to disable the check.
\r
28 var VNF_STATUS_CHECK_ENABLED = false;
\r
30 * List of valid VNF status combinations
\r
32 var vnfValidStatusList = [
\r
34 "provStatus": "preprov",
\r
35 "orchestrationStatus": "pending-create",
\r
37 "operationalStatus": null
\r
40 "provStatus": "preprov",
\r
41 "orchestrationStatus": "created",
\r
43 "operationalStatus": null
\r
46 "provStatus": "preprov",
\r
47 "orchestrationStatus": "active",
\r
49 "operationalStatus": null
\r
52 "provStatus": "nvtprov",
\r
53 "orchestrationStatus": "active",
\r
55 "operationalStatus": null
\r
58 "provStatus": "prov",
\r
59 "orchestrationStatus": "active",
\r
61 "operationalStatus": "out-of-service-path"
\r
65 * The model status VID uses to query SDC for a list of models. The possible values are:
\r
66 * DISTRIBUTION_NOT_APPROVED,
\r
67 * DISTRIBUTION_APPROVED,
\r
69 * DISTRIBUTION_REJECTED,
\r
71 * In the production env, this should always be set to DISTRIBUTED
\r
73 var ASDC_MODEL_STATUS = "DISTRIBUTED";
\r
75 * Max number of times that VID will poll MSO for a given request status
\r
77 var MSO_MAX_POLLS = 10;
\r
79 * Number of msecs that VID will wait between MSO polls.
\r
81 var MSO_POLLING_INTERVAL_MSECS = 10000;
\r
83 * List of all service model invariant UUIDs that need macro instantiation.
\r
85 * MACRO_SERVICES : ["3cf30cbb-5fe7-4fb3-b049-559a4997b221", "b135a703-bab5-4295-a37f-580a4f2d0961"]
\r
88 var COMPONENT_LIST_NAMED_QUERY_ID = "0367193e-c785-4d5f-9cb8-7bc89dc9ddb7";
\r
89 var MACRO_SERVICES = [];
\r
91 ASDC_MODEL_STATUS : ASDC_MODEL_STATUS,
\r
92 MSO_MAX_POLLS : MSO_MAX_POLLS,
\r
93 MSO_POLLING_INTERVAL_MSECS : MSO_POLLING_INTERVAL_MSECS,
\r
94 VNF_STATUS_CHECK_ENABLED : VNF_STATUS_CHECK_ENABLED,
\r
95 VNF_VALID_STATUS_LIST : vnfValidStatusList,
\r
96 MACRO_SERVICES : MACRO_SERVICES,
\r
97 COMPONENT_LIST_NAMED_QUERY_ID : COMPONENT_LIST_NAMED_QUERY_ID
\r