diff options
author | Ofir Sonsino <os0695@intl.att.com> | 2018-08-06 13:34:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-06 13:34:49 +0000 |
commit | d4da64c40ed711a0557d46cbeedd0f9533471119 (patch) | |
tree | 4719c3260ae274250c408be8653a116640f1225b /vid-app-common/src/main/webapp/app/vid/scripts/constants | |
parent | c53f8f4cbec4376f5f66f1acb076157e352bb62f (diff) | |
parent | d350d5ac25c8df2846e4f0d9082cb4d364a17a83 (diff) |
Merge "UI Feature flagging support"
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/constants')
3 files changed, 36 insertions, 11 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js index b08b2b16..e3edf830 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js @@ -29,6 +29,7 @@ appDS2 CLOUD_REGION_ID : "cloudRegionID", COMPONENT_STATUS : "ComponentStatus", CREATE_COMPONENT : "createComponent", + IFRAME_DIALOG : "iframeDialog", DELETE_RESUME_COMPONENT : "deleteResumeComponent", DELETE:"Delete", RESUME:"Resume", @@ -46,6 +47,7 @@ appDS2 MODEL_VERSION_1 : "1", MSO_CREATE_REQ : "createInstance", MSO_DELETE_REQ : "deleteInstance", + MSO_DELETE_CONFIGURATION_REQ : 'deleteConfiguration', MSO_CHANGE_CONFIG_STATUS_REQ: "changeConfigurationStatus", MSO_CHANGE_PORT_STATUS_REQ: "changePortStatus", MSO_CREATE_ENVIRONMENT: "createEnvironmentInstance", @@ -81,7 +83,6 @@ appDS2 VNF_TYPE : "vnfType", VOLUME_GROUP : "volumeGroup", IS_PERMITTED: "is-permitted", - RESUME_STATUS: "PendingActivation", PNF : "pnf", // IDs CIDR_MASK_1 : "255.255.255.000", @@ -123,6 +124,8 @@ appDS2 AAI_GET_TENANTS : "aai_get_tenants/", AAI_SUB_DETAILS_PATH : "aai_sub_details/", AAI_GET_VERSION_BY_INVARIANT_ID:"aai_get_version_by_invariant_id/", + AAI_GET_PORT_MIRRORING_CONFIGS_DATA : "aai_getPortMirroringConfigsData", + AAI_GET_PORT_MIRRORING_SOURCE_PORTS : "aai_getPortMirroringSourcePorts", SEARCH_SERVICE_INSTANCES:"search_service_instances", AAI_GET_VNF_DATA_PATH: "aai_get_vnf_data/", AAI_GET_VNF_BY_CUSTOMERID_AND_SERVICETYPE: "get_vnf_data_by_globalid_and_service_type/", @@ -130,6 +133,7 @@ appDS2 AAI_SUB_VIEWEDIT_PATH : "aai_sub_viewedit", AAI_GET_VNF_INFO : "aai_get_vnf_information", AAI_GET_PNF_INSTANCE: "aai_get_service_instance_pnfs", + AAI_GET_CR_INSTANCE: "aai_get_network_collection_details", AAI_GET_VNF_INSTANCES_LIST: "aai_get_vnf_instances", AAI_GET_PNF_INSTANCES_LIST: "aai_get_pnf_instances", AAI_GET_BY_URI: "aai_get_by_uri/", @@ -146,6 +150,7 @@ appDS2 WORKFLOW: "workflow", GET_TIME_SLOTS:"get_time_slots", SUBMIT_VNF_CHANGE_TIMESLOTS:"submit_vnf_change_timeslots", + AAI_GET_INSTANCE_GROUPS_BY_VNF_INSTANCE_ID_PATH: 'aai_get_instance_groups_by_vnf_instance_id', FORWARD_SLASH : "/", GET_SYSTEM_PROP_VNF_PROV_STATUS_PATH : "get_system_prop_vnf_prov_status", @@ -174,14 +179,18 @@ appDS2 SERVICES_PATH : "rest/models/services/", SERVICETYPE_SUB_PATH : "&serviceType=", SERVICEINSTANCEID_SUB_PATH : "&serviceInstanceId=", + MODELVERSIONID_SUB_PATH : "&aaiModelVersionId=", SERVICEMODELS_INSTANCES_SERVICES_PATH : "serviceModels.htm#/instances/services", SERVICEMODELS_MODELS_SERVICES_PATH : "serviceModels.htm#/models/services", SUBDETAILS_SELECTEDSUBSCRIBER : "#subdetails?selectedSubscriber=", SUBSCRIBERNAME_SUB_PATH : "&subscriberName=", WELCOME_PATH : "welcome.htm", IS_PERMITTED_SUB_PATH: "&isPermitted=", + SERVICE_POPUP_IFRAME_URL: "app/ui/#/servicePopup?serviceModelId=", + SUB_INTERFACE_POPUP_IFRAME_URL: "app/ui/#/vlan?", + VERIFY_SERVICE_URL: "rest/models/services/verifyService", - //Test Environment Urls: + //Test Environment Urls: OPERATIONAL_ENVIRONMENT_CREATE : "operationalEnvironment/create", OPERATIONAL_ENVIRONMENT_DEACTIVATE : "operationalEnvironment/deactivate?operationalEnvironment=", OPERATIONAL_ENVIRONMENT_ACTIVATE : "operationalEnvironment/activate?operationalEnvironment=", @@ -196,7 +205,7 @@ appDS2 INSTANTIATE_URL : "app/vid/scripts/view-models/instantiate.htm", SERVICE_MODELS : "app/vid/scripts/view-models/serviceModels.htm", - + ACTIVATE_SERVICE_STATUSES: ['created', 'pendingdelete', 'pending-delete', 'assigned'], FULL_NAME_MAP : { "model-invariant-id" : "Model ID", @@ -223,7 +232,18 @@ appDS2 update: "update", replace: "replace", vnfScaleOut: "VNF Scale Out" - } + }, + + FEATURE_FLAGS:{ + FLAG_ASYNC_INSTANTIATION : "FLAG_ASYNC_INSTANTIATION", + FLAG_VLAN_TAGGING_VIEW_EDIT: "FLAG_VLAN_TAGGING_VIEW_EDIT", + FLAG_NETWORK_TO_ASYNC_INSTANTIATION : "FLAG_NETWORK_TO_ASYNC_INSTANTIATION", + FLAG_REGION_ID_FROM_REMOTE : "FLAG_REGION_ID_FROM_REMOTE", + FLAG_ADD_MSO_TESTAPI_FIELD : "FLAG_ADD_MSO_TESTAPI_FIELD", + FLAG_COLLECTION_RESOURCE_SUPPORT : "FLAG_COLLECTION_RESOURCE_SUPPORT", + FLAG_SHOW_ASSIGNMENTS: "FLAG_SHOW_ASSIGNMENTS", + FLAG_SHOW_VERIFY_SERVICE: "FLAG_SHOW_VERIFY_SERVICE" + } }; -})()) +})()); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js index fc051d02..544a8114 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js @@ -119,6 +119,8 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { VF_MODULES: "vfModules",
VF_MODULE_ID: "vf-module-id",
VF_MODULE_NAME: "vf-module-name",
+ VF_MODULE_MODEL_CUSTOMIZATION_ID: "vf-module-model-customization-id",
+ VF_MODULE_MODEL_VERSION_ID: "vf-module-model-version-id",
VID: "VID",
VNF_ID: "vnf-id",
VNF_NAME: "vnf-name",
@@ -140,10 +142,9 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { CONFIGURATION_NAME: "configuration-name",
CONFIGURATION_TYPE: "configuration-type",
CONFIGURATION_ID: "configuration-id",
- PORT: "l-interface",
- PORT_ID: "interface-id",
- PORT_NAME: "interface-name",
- PORT_MIRRORED: "is-port-mirrored"
+ PORT_ID: "interfaceId",
+ PORT_NAME: "interfaceName",
+ PORT_MIRRORED: "isPortMirrored"
};
var KEY = {
@@ -270,6 +271,7 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { AAI_ACTIVE: "Active",
AAI_INACTIVE: "Inactive",
AAI_CREATED: "Created",
+ AAI_DELETE: "Deleted",
AAI_ENABLED: "Enabled",
AAI_DISABLED: "Disabled"
};
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 index 84cb5ad7..f71213bf 100755 --- 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 @@ -85,11 +85,11 @@ appDS2.constant("VIDCONFIGURATION", (function() { /*
* Max number of times that VID will poll MSO for a given request status
*/
- var MSO_MAX_POLLS = 10;
+ var MSO_MAX_POLLS = 1440;
/*
* Number of msecs that VID will wait between MSO polls.
*/
- var MSO_POLLING_INTERVAL_MSECS = 10000;
+ var MSO_POLLING_INTERVAL_MSECS = 200;
var SCHEDULER_POLLING_INTERVAL_MSECS = 10000;
@@ -109,6 +109,8 @@ appDS2.constant("VIDCONFIGURATION", (function() { var SCALE_OUT_CONTROLLERS = ["", "SDNC", "APPC"];
+ var SDNC_SHOW_ASSIGNMENTS_URL = "https://sdnc.api.simpledemo.onap.org:8448/configAdapter/index#/resource_manager/<SERVICE_INSTANCE_ID>";
+
return {
ASDC_MODEL_STATUS : ASDC_MODEL_STATUS,
MSO_MAX_POLLS : MSO_MAX_POLLS,
@@ -122,6 +124,7 @@ appDS2.constant("VIDCONFIGURATION", (function() { COMPONENT_LIST_NAMED_QUERY_ID : COMPONENT_LIST_NAMED_QUERY_ID,
SCHEDULER_CALLBACK_URL: SCHEDULER_CALLBACK_URL,
SCHEDULER_PORTAL_URL: SCHEDULER_PORTAL_URL,
+ SDNC_SHOW_ASSIGNMENTS_URL: SDNC_SHOW_ASSIGNMENTS_URL,
SCALE_OUT_CONTROLLERS: SCALE_OUT_CONTROLLERS
};
})())
|