summaryrefslogtreecommitdiffstats
path: root/src/constants/app-constants.ts
blob: 2baa1d74fdf6e6384a04c2cfb7559eeba31a8fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/*
============LICENSE_START==========================================
===================================================================
Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
===================================================================

Unless otherwise specified, all software contained herein is licensed
under the Apache License, Version 2.0 (the License);
you may not use this software 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============================================
*/



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",
        "noAction&VNFTypeInRDscreenError": "Please enter Action and VNF type in Reference Data screen",
        "connectionError": "Error in connecting to APPC Server",
        "multipleFileUploadError" : "Cannot upload multiple files on the entry"
    },
    "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",
        "openStack": "OpenStack"
    },
    "ruleTypeConfiguaration": {
        'vnf-name': [
            {
                'key-name': 'unique-key-name',
                'key-value': 'parent-name'
            },
            {
                'key-name': 'unique-key-value',
                'key-value': 'vnf'
            },
            {
                'key-name': 'field-key-name',
                'key-value': 'vnf-name'
            }
        ],
        '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
    },
    "messages" : {
        "retrievalSuccessMessage" : 'Retrieved artifact successfully',
        "retrievalFailureMessage" : 'There is no artifact saved in APPC for the selected action',
        "saveSuccessMessage" : 'Successfully uploaded the ',
        "saveFailureMessage" : 'Error in saving the ',
        "artifactRetrivalsuccessMessage" : 'Retrieved artifact successfully',
        "artifactRetrivalfailureMessage" : 'There is no artifact saved in APPC for the selected action!',
        "artifactUploadAction" : 'uploadArtifact',
        "artifactgetAction" : 'getArtifact',
        "datafetched" : 'data fetched ',
        "vmDataUploadSuccess" : 'Vm capabilities data uploaded successfully',
        "emptyVmUpload" : 'Empty Vm capabilities file uploaded',
        "incorrectVmUpload" : 'Incorrect VM capabilities file uploaded',
        "artifactSaveError" : 'unable to save the artifact',
        "referenceDataUplaodSuccess" : 'successfully uploaded the Reference Data',
        "referenceDataUplaodFailure" : 'Error while saving Reference Data',
        "incorrectFileFormat" : 'Incorrect file format'
    },
    "errorCode" : {
        "401" : '401',
        "400" : '400'
    },
    "notifications" : {
        "titles" : {
            "information" : 'Information',
            "success" : 'Success',
            "error" : 'Error',
            "status" : 'Status'
        }
    },
    "groupAnotationValue" : {
        "blank" : '',
        "pair" : 'Pair'
    },
    "groupAnotationType" : {
        "blank" : '',
        "firstVnfcName" : 'first-vnfc-name',
        "fixedValue" : 'fixed-value',
        "relativeValue" : 'relative-value',
        "existingGroupName" : 'existing-group-name'
    },
    "deviceTemplates" : {
        "blank" : '',
        "y" : 'Y',
        "n": 'N'
    },
    "sourceTypeColl" : {
        "blank" : '',
        "vnfType" : 'vnfType',
        "vnfcType" : 'vnfcType'
    }
};