summaryrefslogtreecommitdiffstats
path: root/src/constants
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-07-17 15:46:17 +0530
committerTakamune Cho <tc012c@att.com>2018-07-24 14:47:06 +0000
commit9d5e8e703674224e87f972dea22900b20db9df49 (patch)
treea029847298aa3c5a0c3a4b936469e6a282355d38 /src/constants
parent465d29eba2c191e768963a1987819b8f72e9e7c8 (diff)
Removed hard coded values
Moved all the constant values in parameter component to app-Constants file. Issue-ID: APPC-1054 Change-Id: I507cc0a4aa8ddc8d6d42e97129b21a235b96b225 Signed-off-by: Arundathi Patil<arundpil@in.ibm.com>
Diffstat (limited to 'src/constants')
-rw-r--r--src/constants/app-constants.ts191
1 files changed, 142 insertions, 49 deletions
diff --git a/src/constants/app-constants.ts b/src/constants/app-constants.ts
index dc39068..0f44f0f 100644
--- a/src/constants/app-constants.ts
+++ b/src/constants/app-constants.ts
@@ -23,56 +23,149 @@ limitations under the License.
export const appConstants = {
- "errors": {
- "error": "Error",
- "noActionVnfProtocolError": "Select Valid Action, VNF Type, Device Protocol",
- "noActionError": "Select a valid Action",
- "noVnfTypeError": "Select a valid VNF Type",
- "noDeviceProtocolError": "Select a valid Device Protocol",
- "noValidTemplateIdentifierError": "Select a valid Template Identifier"
- },
- "tabs": [
+ "errors": {
+ "error": "Error",
+ "noActionVnfProtocolError": "Select Valid Action, VNF Type, Device Protocol",
+ "noActionError": "Select a valid Action",
+ "noVnfTypeError": "Select a valid VNF Type",
+ "noDeviceProtocolError": "Select a valid Device Protocol",
+ "noValidTemplateIdentifierError": "Select a valid Template Identifier",
+ "noAction&VNFTypeInRDscreenError": "Please enter Action and VNF type in Reference Data screen",
+ "connectionError": "Error in connecting APPC Server"
+ },
+ "tabs": [
+ {
+ type: 'dropdown',
+ name: 'Reference Data',
+ url: 'references',
+ }, {
+ name: 'Template',
+ type: 'dropdown',
+ url: 'templates/myTemplates',
+ }, {
+ name: 'Parameter Definition',
+ type: 'dropdown',
+ url: 'parameterDefinitions/create'
+ }
+ ],
+ "Actions": {
+ "blank": '',
+ "configure": "Configure",
+ "ConfigModify": "ConfigModify",
+ "configBackup": "ConfigBackup",
+ "configRestore": "ConfigRestore",
+ "getRunningConfig": "GetRunningConfig",
+ "healthCheck": "HealthCheck",
+ "startApplication": "StartApplication",
+ "stopApplication": "StopApplication",
+ "quiesceTraffic": "QuiesceTraffic",
+ "resumeTraffic": "ResumeTraffic",
+ "upgradeBackout": "UpgradeBackout",
+ "upgradeBackup": "UpgradeBackup",
+ "upgradePostCheck": "UpgradePostCheck",
+ "upgradePreCheck": "UpgradePreCheck",
+ "upgradeSoftware": "UpgradeSoftware",
+ "openStackActions": "OpenStack Actions",
+ "configScaleOut": "ConfigScaleOut"
+ },
+ "DeviceProtocols": {
+ "blank": '',
+ "ansible": "ANSIBLE",
+ "chef": "CHEF",
+ "netconfXML": "NETCONF-XML",
+ "rest": "REST",
+ "cli": "CLI",
+ "restConf": "RESTCONF"
+ },
+ "ruleTypeConfiguaration": {
+ 'vnf-name': [
+ {
+ 'key-name': 'unique-key-name',
+ 'key-value': 'parent-name'
+ },
+ {
+ 'key-name': 'unique-key-value',
+ 'key-value': 'vnf'
+ },
{
- type: 'dropdown',
- name: 'Reference Data',
- url: 'references',
- }, {
- name: 'Template',
- type: 'dropdown',
- url: 'templates/myTemplates',
- }, {
- name: 'Parameter Definition',
- type: 'dropdown',
- url: 'parameterDefinitions/create'
+ 'key-name': 'field-key-name',
+ 'key-value': 'vnf-name'
}
],
- "Actions" : {
- "blank" : '',
- "configure" : "Configure",
- "ConfigModify" : "ConfigModify",
- "configBackup" : "ConfigBackup",
- "configRestore" : "ConfigRestore",
- "getRunningConfig" : "GetRunningConfig",
- "healthCheck" : "HealthCheck",
- "startApplication" : "StartApplication",
- "stopApplication" : "StopApplication",
- "quiesceTraffic" : "QuiesceTraffic",
- "resumeTraffic" : "ResumeTraffic",
- "upgradeBackout" : "UpgradeBackout",
- "upgradeBackup" : "UpgradeBackup",
- "upgradePostCheck" : "UpgradePostCheck",
- "upgradePreCheck" : "UpgradePreCheck",
- "upgradeSoftware" : "UpgradeSoftware",
- "openStackActions" : "OpenStack Actions",
- "configScaleOut" : "ConfigScaleOut"
- },
- "DeviceProtocols" : {
- "blank" : '',
- "ansible" : "ANSIBLE",
- "chef" : "CHEF",
- "netconfXML" : "NETCONF-XML",
- "rest" : "REST",
- "cli" : "CLI",
- "restConf" : "RESTCONF"
- }
+ 'vm-name-list': [
+ {
+ 'key-name': 'unique-key-name',
+ 'key-value': 'parent-name'
+ },
+ {
+ 'key-name': 'unique-key-value',
+ 'key-value': 'vserver'
+ },
+ {
+ 'key-name': 'field-key-name',
+ 'key-value': 'vserver-name'
+ }
+ ],
+ 'vnfc-name-list': [
+ {
+ 'key-name': 'unique-key-name',
+ 'key-value': 'parent-name'
+ },
+ {
+ 'key-name': 'unique-key-value',
+ 'key-value': 'vnfc'
+ },
+ {
+ 'key-name': 'field-key-name',
+ 'key-value': 'vnfc-name'
+ }
+ ],
+ 'vnf-oam-ipv4-address': [
+ {
+ 'key-name': 'unique-key-name',
+ 'key-value': 'parent-name'
+ },
+ {
+ 'key-name': 'unique-key-value',
+ 'key-value': 'vnf'
+ },
+ {
+ 'key-name': 'field-key-name',
+ 'key-value': 'ipv4-oam-ipaddress'
+ }
+ ],
+ 'vnfc-oam-ipv4-address-list': [
+ {
+ 'key-name': 'unique-key-name',
+ 'key-value': 'parent-name'
+ },
+ {
+ 'key-name': 'unique-key-value',
+ 'key-value': 'vnfc'
+ },
+ {
+ 'key-name': 'field-key-name',
+ 'key-value': 'ipaddress-v4-oam-vip'
+ }
+ ]
+ },
+ "ruleTypeValues": [null, 'vnf-name', 'vm-name-list', 'vnfc-name-list', 'vnf-oam-ipv4-address', 'vnfc-oam-ipv4-address-list'],
+ "typeValues": [null, 'ipv4-address', 'ipv6-address', 'ipv4-prefix', 'ipv6-prefix'],
+ "responseKeyNameValues": ['', 'unique-key-name', 'unique-key-value', 'field-key-name'],
+ "responseKeyValues": ['(none)', 'addressfqdn', 'ipaddress-v4', 'ipaddress-v6'],
+ "requestKeyNameValues": [''],
+ "requestKeyValues": ['', '(none)'],
+ "sourceValues": ['Manual', 'A&AI'],
+ "filterByFieldvalues": [null, 'vm-number', 'vnfc-function-code'],
+ "requiredValues": [null, true, false],
+ "uploadTypes": [{ value: 'External Key File', display: 'KeyFile' },
+ { value: 'Pd File', display: 'Pd File' }
+ ],
+ "optionsToNotificationComponent": {
+ timeOut: 1000,
+ showProgressBar: true,
+ pauseOnHover: true,
+ clickToClose: true,
+ maxLength: 200
+ }
}; \ No newline at end of file