IBM602-PC0F1E3C\Arundathi | f7b02a1 | 2018-07-10 17:16:08 +0530 | [diff] [blame] | 1 | /* |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 IBM Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | ============LICENSE_END============================================ |
| 21 | */ |
| 22 | |
| 23 | |
| 24 | |
| 25 | export const appConstants = { |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 26 | "errors": { |
| 27 | "error": "Error", |
| 28 | "noActionVnfProtocolError": "Select Valid Action, VNF Type, Device Protocol", |
| 29 | "noActionError": "Select a valid Action", |
| 30 | "noVnfTypeError": "Select a valid VNF Type", |
| 31 | "noDeviceProtocolError": "Select a valid Device Protocol", |
| 32 | "noValidTemplateIdentifierError": "Select a valid Template Identifier", |
| 33 | "noAction&VNFTypeInRDscreenError": "Please enter Action and VNF type in Reference Data screen", |
Arundathi Patil | c33fda5 | 2018-08-01 16:19:07 +0530 | [diff] [blame] | 34 | "connectionError": "Error in connecting to APPC Server", |
Arundathi Patil | b339514 | 2018-08-08 14:57:40 +0530 | [diff] [blame] | 35 | "multipleFileUploadError" : "Cannot upload multiple files on the entry", |
| 36 | "notTxtFileError" : "Uploaded file is not a TXT file", |
| 37 | "notYAMLFileError" : "Uploaded file is not a YAML file" |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 38 | }, |
| 39 | "tabs": [ |
| 40 | { |
| 41 | type: 'dropdown', |
| 42 | name: 'Reference Data', |
| 43 | url: 'references', |
| 44 | }, { |
| 45 | name: 'Template', |
| 46 | type: 'dropdown', |
| 47 | url: 'templates/myTemplates', |
| 48 | }, { |
| 49 | name: 'Parameter Definition', |
| 50 | type: 'dropdown', |
| 51 | url: 'parameterDefinitions/create' |
| 52 | } |
| 53 | ], |
| 54 | "Actions": { |
| 55 | "blank": '', |
| 56 | "configure": "Configure", |
| 57 | "ConfigModify": "ConfigModify", |
| 58 | "configBackup": "ConfigBackup", |
| 59 | "configRestore": "ConfigRestore", |
| 60 | "getRunningConfig": "GetRunningConfig", |
| 61 | "healthCheck": "HealthCheck", |
| 62 | "startApplication": "StartApplication", |
| 63 | "stopApplication": "StopApplication", |
| 64 | "quiesceTraffic": "QuiesceTraffic", |
| 65 | "resumeTraffic": "ResumeTraffic", |
Lukasz Rajewski | 1fe55d3 | 2018-08-28 15:18:35 +0200 | [diff] [blame] | 66 | "distributeTraffic": "DistributeTraffic", |
Lukasz Rajewski | c63fafc | 2019-03-16 18:18:14 +0100 | [diff] [blame] | 67 | "distributeTrafficCheck": "DistributeTrafficCheck", |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 68 | "upgradeBackout": "UpgradeBackout", |
| 69 | "upgradeBackup": "UpgradeBackup", |
| 70 | "upgradePostCheck": "UpgradePostCheck", |
| 71 | "upgradePreCheck": "UpgradePreCheck", |
| 72 | "upgradeSoftware": "UpgradeSoftware", |
| 73 | "openStackActions": "OpenStack Actions", |
| 74 | "configScaleOut": "ConfigScaleOut" |
| 75 | }, |
| 76 | "DeviceProtocols": { |
| 77 | "blank": '', |
| 78 | "ansible": "ANSIBLE", |
| 79 | "chef": "CHEF", |
| 80 | "netconfXML": "NETCONF-XML", |
| 81 | "rest": "REST", |
| 82 | "cli": "CLI", |
Arundathi Patil | c33fda5 | 2018-08-01 16:19:07 +0530 | [diff] [blame] | 83 | "restConf": "RESTCONF", |
| 84 | "openStack": "OpenStack" |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 85 | }, |
| 86 | "ruleTypeConfiguaration": { |
| 87 | 'vnf-name': [ |
IBM602-PC0F1E3C\Arundathi | f7b02a1 | 2018-07-10 17:16:08 +0530 | [diff] [blame] | 88 | { |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 89 | 'key-name': 'unique-key-name', |
| 90 | 'key-value': 'parent-name' |
| 91 | }, |
| 92 | { |
| 93 | 'key-name': 'unique-key-value', |
| 94 | 'key-value': 'vnf' |
| 95 | }, |
| 96 | { |
| 97 | 'key-name': 'field-key-name', |
| 98 | 'key-value': 'vnf-name' |
IBM602-PC0F1E3C\Arundathi | f7b02a1 | 2018-07-10 17:16:08 +0530 | [diff] [blame] | 99 | } |
| 100 | ], |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 101 | 'vm-name-list': [ |
| 102 | { |
| 103 | 'key-name': 'unique-key-name', |
| 104 | 'key-value': 'parent-name' |
| 105 | }, |
| 106 | { |
| 107 | 'key-name': 'unique-key-value', |
| 108 | 'key-value': 'vserver' |
| 109 | }, |
| 110 | { |
| 111 | 'key-name': 'field-key-name', |
| 112 | 'key-value': 'vserver-name' |
| 113 | } |
| 114 | ], |
| 115 | 'vnfc-name-list': [ |
| 116 | { |
| 117 | 'key-name': 'unique-key-name', |
| 118 | 'key-value': 'parent-name' |
| 119 | }, |
| 120 | { |
| 121 | 'key-name': 'unique-key-value', |
| 122 | 'key-value': 'vnfc' |
| 123 | }, |
| 124 | { |
| 125 | 'key-name': 'field-key-name', |
| 126 | 'key-value': 'vnfc-name' |
| 127 | } |
| 128 | ], |
| 129 | 'vnf-oam-ipv4-address': [ |
| 130 | { |
| 131 | 'key-name': 'unique-key-name', |
| 132 | 'key-value': 'parent-name' |
| 133 | }, |
| 134 | { |
| 135 | 'key-name': 'unique-key-value', |
| 136 | 'key-value': 'vnf' |
| 137 | }, |
| 138 | { |
| 139 | 'key-name': 'field-key-name', |
| 140 | 'key-value': 'ipv4-oam-ipaddress' |
| 141 | } |
| 142 | ], |
| 143 | 'vnfc-oam-ipv4-address-list': [ |
| 144 | { |
| 145 | 'key-name': 'unique-key-name', |
| 146 | 'key-value': 'parent-name' |
| 147 | }, |
| 148 | { |
| 149 | 'key-name': 'unique-key-value', |
| 150 | 'key-value': 'vnfc' |
| 151 | }, |
| 152 | { |
| 153 | 'key-name': 'field-key-name', |
| 154 | 'key-value': 'ipaddress-v4-oam-vip' |
| 155 | } |
| 156 | ] |
| 157 | }, |
| 158 | "ruleTypeValues": [null, 'vnf-name', 'vm-name-list', 'vnfc-name-list', 'vnf-oam-ipv4-address', 'vnfc-oam-ipv4-address-list'], |
| 159 | "typeValues": [null, 'ipv4-address', 'ipv6-address', 'ipv4-prefix', 'ipv6-prefix'], |
| 160 | "responseKeyNameValues": ['', 'unique-key-name', 'unique-key-value', 'field-key-name'], |
| 161 | "responseKeyValues": ['(none)', 'addressfqdn', 'ipaddress-v4', 'ipaddress-v6'], |
| 162 | "requestKeyNameValues": [''], |
| 163 | "requestKeyValues": ['', '(none)'], |
| 164 | "sourceValues": ['Manual', 'A&AI'], |
| 165 | "filterByFieldvalues": [null, 'vm-number', 'vnfc-function-code'], |
| 166 | "requiredValues": [null, true, false], |
| 167 | "uploadTypes": [{ value: 'External Key File', display: 'KeyFile' }, |
| 168 | { value: 'Pd File', display: 'Pd File' } |
| 169 | ], |
| 170 | "optionsToNotificationComponent": { |
| 171 | timeOut: 1000, |
| 172 | showProgressBar: true, |
| 173 | pauseOnHover: true, |
| 174 | clickToClose: true, |
| 175 | maxLength: 200 |
Arundathi Patil | 2066d64 | 2018-07-30 15:16:54 +0530 | [diff] [blame] | 176 | }, |
| 177 | "messages" : { |
| 178 | "retrievalSuccessMessage" : 'Retrieved artifact successfully', |
| 179 | "retrievalFailureMessage" : 'There is no artifact saved in APPC for the selected action', |
| 180 | "saveSuccessMessage" : 'Successfully uploaded the ', |
| 181 | "saveFailureMessage" : 'Error in saving the ', |
| 182 | "artifactRetrivalsuccessMessage" : 'Retrieved artifact successfully', |
| 183 | "artifactRetrivalfailureMessage" : 'There is no artifact saved in APPC for the selected action!', |
| 184 | "artifactUploadAction" : 'uploadArtifact', |
Arundathi Patil | c33fda5 | 2018-08-01 16:19:07 +0530 | [diff] [blame] | 185 | "artifactgetAction" : 'getArtifact', |
| 186 | "datafetched" : 'data fetched ', |
| 187 | "vmDataUploadSuccess" : 'Vm capabilities data uploaded successfully', |
| 188 | "emptyVmUpload" : 'Empty Vm capabilities file uploaded', |
| 189 | "incorrectVmUpload" : 'Incorrect VM capabilities file uploaded', |
| 190 | "artifactSaveError" : 'unable to save the artifact', |
| 191 | "referenceDataUplaodSuccess" : 'successfully uploaded the Reference Data', |
| 192 | "referenceDataUplaodFailure" : 'Error while saving Reference Data', |
| 193 | "incorrectFileFormat" : 'Incorrect file format' |
Arundathi Patil | 2066d64 | 2018-07-30 15:16:54 +0530 | [diff] [blame] | 194 | }, |
| 195 | "errorCode" : { |
| 196 | "401" : '401', |
| 197 | "400" : '400' |
| 198 | }, |
| 199 | "notifications" : { |
| 200 | "titles" : { |
| 201 | "information" : 'Information', |
| 202 | "success" : 'Success', |
Arundathi Patil | c33fda5 | 2018-08-01 16:19:07 +0530 | [diff] [blame] | 203 | "error" : 'Error', |
| 204 | "status" : 'Status' |
Arundathi Patil | 2066d64 | 2018-07-30 15:16:54 +0530 | [diff] [blame] | 205 | } |
Arundathi Patil | c33fda5 | 2018-08-01 16:19:07 +0530 | [diff] [blame] | 206 | }, |
| 207 | "groupAnotationValue" : { |
| 208 | "blank" : '', |
| 209 | "pair" : 'Pair' |
| 210 | }, |
| 211 | "groupAnotationType" : { |
| 212 | "blank" : '', |
| 213 | "firstVnfcName" : 'first-vnfc-name', |
| 214 | "fixedValue" : 'fixed-value', |
| 215 | "relativeValue" : 'relative-value', |
| 216 | "existingGroupName" : 'existing-group-name' |
| 217 | }, |
| 218 | "deviceTemplates" : { |
| 219 | "blank" : '', |
| 220 | "y" : 'Y', |
| 221 | "n": 'N' |
| 222 | }, |
| 223 | "sourceTypeColl" : { |
| 224 | "blank" : '', |
| 225 | "vnfType" : 'vnfType', |
| 226 | "vnfcType" : 'vnfcType' |
Arundathi Patil | 9d5e8e7 | 2018-07-17 15:46:17 +0530 | [diff] [blame] | 227 | } |
IBM602-PC0F1E3C\Arundathi | f7b02a1 | 2018-07-10 17:16:08 +0530 | [diff] [blame] | 228 | }; |