bfg-common 1.3.216 → 1.3.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/localization/local_be.json +2 -1
- package/assets/localization/local_en.json +4 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/atoms/alert/Alert.vue +95 -95
- package/components/atoms/alert/Notification.vue +170 -170
- package/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +526 -526
- package/components/atoms/tooltip/Signpost.vue +225 -225
- package/components/common/diagramMain/lib/models/interfaces.ts +6 -11
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +8 -11
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +2 -9
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +6 -139
- package/components/common/diagramMain/modals/lib/config/index.ts +0 -4
- package/components/common/diagramMain/modals/lib/config/initial.ts +0 -154
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +92 -165
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/recursionTree/RecursionTree.vue +203 -203
- package/components/common/vm/actions/add/Add.vue +575 -575
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +269 -269
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +693 -693
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +294 -294
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
- package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
- package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
- package/components/common/weekSelect/WeekSelect.vue +112 -112
- package/components/common/weekSelect/lib/config/options.ts +10 -10
- package/components/common/wizards/network/add/Add.vue +17 -1
- package/components/common/wizards/network/add/validations/physicalAdapter.ts +70 -0
- package/composables/productNameLocal.ts +22 -22
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- package/lib/utils/sendTask.ts +72 -72
- package/minify.js +146 -146
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
{{ localization.override }}
|
|
31
31
|
</label>
|
|
32
32
|
</div>
|
|
33
|
-
<div
|
|
33
|
+
<div class="flex-property-value-group">
|
|
34
34
|
<div class="select">
|
|
35
35
|
<select
|
|
36
36
|
id="traffic-shaping-select"
|
|
@@ -47,23 +47,6 @@
|
|
|
47
47
|
</select>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
|
-
<div v-else class="flex-property-value-group">
|
|
51
|
-
<div class="select">
|
|
52
|
-
<select
|
|
53
|
-
id="traffic-shaping-select"
|
|
54
|
-
v-model.number="fieldsValues.status.selected"
|
|
55
|
-
:disabled="!fieldsValues.status.checked"
|
|
56
|
-
name="selectName"
|
|
57
|
-
>
|
|
58
|
-
<option :label="localization.enabled" value="1">
|
|
59
|
-
{{ localization.enabled }}
|
|
60
|
-
</option>
|
|
61
|
-
<option :label="localization.disabled" value="0">
|
|
62
|
-
{{ localization.disabled }}
|
|
63
|
-
</option>
|
|
64
|
-
</select>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
50
|
</div>
|
|
68
51
|
</div>
|
|
69
52
|
</div>
|
|
@@ -93,10 +76,7 @@
|
|
|
93
76
|
{{ localization.override }}
|
|
94
77
|
</label>
|
|
95
78
|
</div>
|
|
96
|
-
<div
|
|
97
|
-
v-if="!props.isSwitch"
|
|
98
|
-
class="property-value-group tooltip-field-container"
|
|
99
|
-
>
|
|
79
|
+
<div class="property-value-group tooltip-field-container">
|
|
100
80
|
<atoms-tooltip-error
|
|
101
81
|
:has-error="!!props.errorMessages.average"
|
|
102
82
|
>
|
|
@@ -127,40 +107,6 @@
|
|
|
127
107
|
</template>
|
|
128
108
|
</atoms-tooltip-error>
|
|
129
109
|
</div>
|
|
130
|
-
<div
|
|
131
|
-
v-else
|
|
132
|
-
class="property-value-group tooltip-field-container"
|
|
133
|
-
>
|
|
134
|
-
<atoms-tooltip-error
|
|
135
|
-
:has-error="!!props.errorMessages.average"
|
|
136
|
-
>
|
|
137
|
-
<template #elem>
|
|
138
|
-
<input
|
|
139
|
-
id="average"
|
|
140
|
-
v-model="fieldsValues.average"
|
|
141
|
-
type="number"
|
|
142
|
-
:disabled="
|
|
143
|
-
!fieldsValues.status.checked ||
|
|
144
|
-
fieldsValues.status.selected === 0
|
|
145
|
-
"
|
|
146
|
-
name="average"
|
|
147
|
-
:class="[
|
|
148
|
-
'tooltip-field',
|
|
149
|
-
{
|
|
150
|
-
'danger-not-valid':
|
|
151
|
-
fieldsValues.status.checked &&
|
|
152
|
-
fieldsValues.status.selected !== 0 &&
|
|
153
|
-
props.errorMessages.average,
|
|
154
|
-
},
|
|
155
|
-
]"
|
|
156
|
-
@click.stop
|
|
157
|
-
/>
|
|
158
|
-
</template>
|
|
159
|
-
<template #content>
|
|
160
|
-
{{ props.errorMessages.average }}
|
|
161
|
-
</template>
|
|
162
|
-
</atoms-tooltip-error>
|
|
163
|
-
</div>
|
|
164
110
|
</div>
|
|
165
111
|
</div>
|
|
166
112
|
</div>
|
|
@@ -190,10 +136,7 @@
|
|
|
190
136
|
{{ localization.override }}
|
|
191
137
|
</label>
|
|
192
138
|
</div>
|
|
193
|
-
<div
|
|
194
|
-
v-if="!props.isSwitch"
|
|
195
|
-
class="property-value-group tooltip-field-container"
|
|
196
|
-
>
|
|
139
|
+
<div class="property-value-group tooltip-field-container">
|
|
197
140
|
<atoms-tooltip-error
|
|
198
141
|
:has-error="!!props.errorMessages.peak"
|
|
199
142
|
>
|
|
@@ -224,40 +167,6 @@
|
|
|
224
167
|
</template>
|
|
225
168
|
</atoms-tooltip-error>
|
|
226
169
|
</div>
|
|
227
|
-
<div
|
|
228
|
-
v-else
|
|
229
|
-
class="property-value-group tooltip-field-container"
|
|
230
|
-
>
|
|
231
|
-
<atoms-tooltip-error
|
|
232
|
-
:has-error="!!props.errorMessages.peak"
|
|
233
|
-
>
|
|
234
|
-
<template #elem>
|
|
235
|
-
<input
|
|
236
|
-
id="peak"
|
|
237
|
-
v-model="fieldsValues.peak"
|
|
238
|
-
type="number"
|
|
239
|
-
:disabled="
|
|
240
|
-
!fieldsValues.status.checked ||
|
|
241
|
-
fieldsValues.status.selected === 0
|
|
242
|
-
"
|
|
243
|
-
name="peak"
|
|
244
|
-
:class="[
|
|
245
|
-
'tooltip-field',
|
|
246
|
-
{
|
|
247
|
-
'danger-not-valid':
|
|
248
|
-
fieldsValues.status.checked &&
|
|
249
|
-
fieldsValues.status.selected !== 0 &&
|
|
250
|
-
props.errorMessages.peak,
|
|
251
|
-
},
|
|
252
|
-
]"
|
|
253
|
-
@click.stop
|
|
254
|
-
/>
|
|
255
|
-
</template>
|
|
256
|
-
<template #content>
|
|
257
|
-
{{ props.errorMessages.peak }}
|
|
258
|
-
</template>
|
|
259
|
-
</atoms-tooltip-error>
|
|
260
|
-
</div>
|
|
261
170
|
</div>
|
|
262
171
|
</div>
|
|
263
172
|
</div>
|
|
@@ -287,10 +196,7 @@
|
|
|
287
196
|
{{ localization.override }}
|
|
288
197
|
</label>
|
|
289
198
|
</div>
|
|
290
|
-
<div
|
|
291
|
-
v-if="!props.isSwitch"
|
|
292
|
-
class="property-value-group tooltip-field-container"
|
|
293
|
-
>
|
|
199
|
+
<div class="property-value-group tooltip-field-container">
|
|
294
200
|
<atoms-tooltip-error
|
|
295
201
|
:has-error="!!props.errorMessages.burstSize"
|
|
296
202
|
>
|
|
@@ -321,40 +227,6 @@
|
|
|
321
227
|
</template>
|
|
322
228
|
</atoms-tooltip-error>
|
|
323
229
|
</div>
|
|
324
|
-
<div
|
|
325
|
-
v-else
|
|
326
|
-
class="property-value-group tooltip-field-container"
|
|
327
|
-
>
|
|
328
|
-
<atoms-tooltip-error
|
|
329
|
-
:has-error="!!props.errorMessages.burstSize"
|
|
330
|
-
>
|
|
331
|
-
<template #elem>
|
|
332
|
-
<input
|
|
333
|
-
id="burst-size"
|
|
334
|
-
v-model="fieldsValues.burstSize"
|
|
335
|
-
type="number"
|
|
336
|
-
:disabled="
|
|
337
|
-
!fieldsValues.status.checked ||
|
|
338
|
-
fieldsValues.status.selected === 0
|
|
339
|
-
"
|
|
340
|
-
name="burst-size"
|
|
341
|
-
:class="[
|
|
342
|
-
'tooltip-field',
|
|
343
|
-
{
|
|
344
|
-
'danger-not-valid':
|
|
345
|
-
fieldsValues.status.checked &&
|
|
346
|
-
fieldsValues.status.selected !== 0 &&
|
|
347
|
-
props.errorMessages.burstSize,
|
|
348
|
-
},
|
|
349
|
-
]"
|
|
350
|
-
@click.stop
|
|
351
|
-
/>
|
|
352
|
-
</template>
|
|
353
|
-
<template #content>
|
|
354
|
-
{{ props.errorMessages.burstSize }}
|
|
355
|
-
</template>
|
|
356
|
-
</atoms-tooltip-error>
|
|
357
|
-
</div>
|
|
358
230
|
</div>
|
|
359
231
|
</div>
|
|
360
232
|
</div>
|
|
@@ -374,10 +246,7 @@ import {
|
|
|
374
246
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
375
247
|
import { UI_T_TrafficShapingFieldName } from '~/components/common/diagramMain/lib/models/types'
|
|
376
248
|
import { validationMessagesArrayFunc } from '~/components/common/diagramMain/modals/lib/utils'
|
|
377
|
-
import {
|
|
378
|
-
trafficShapingFieldsInitialFunc,
|
|
379
|
-
trafficShapingNetworkFieldsInitialFunc,
|
|
380
|
-
} from '~/components/common/diagramMain/modals/lib/config'
|
|
249
|
+
import { trafficShapingFieldsInitialFunc } from '~/components/common/diagramMain/modals/lib/config'
|
|
381
250
|
|
|
382
251
|
// Props from up
|
|
383
252
|
const props = withDefaults(
|
|
@@ -410,9 +279,7 @@ const isShowErrorMessage = computed<boolean>(
|
|
|
410
279
|
)
|
|
411
280
|
|
|
412
281
|
const fieldsValues = ref<UI_I_TrafficShapingFields>(
|
|
413
|
-
props.isSwitch
|
|
414
|
-
? trafficShapingFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
415
|
-
: trafficShapingNetworkFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
282
|
+
trafficShapingFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
416
283
|
)
|
|
417
284
|
|
|
418
285
|
// Validation
|
|
@@ -16,7 +16,6 @@ export const {
|
|
|
16
16
|
} = portModalConfig
|
|
17
17
|
export const {
|
|
18
18
|
teamingAndFailoverTemplateMakerFunc,
|
|
19
|
-
teamingAndFailoverNetworkTemplateMakerFunc,
|
|
20
19
|
networkViewSettingsModalTabsFunc,
|
|
21
20
|
networkEditSettingsTabsFunc,
|
|
22
21
|
networkViewSettingsFunc,
|
|
@@ -31,11 +30,8 @@ export const { vCenterViewSettingsFunc, vCenterPopupFieldsFunc } =
|
|
|
31
30
|
vCenterModalConfig
|
|
32
31
|
export const {
|
|
33
32
|
trafficShapingFieldsInitialFunc,
|
|
34
|
-
trafficShapingNetworkFieldsInitialFunc,
|
|
35
33
|
securityFieldsInitialFunc,
|
|
36
|
-
securityNetworkFieldsInitialFunc,
|
|
37
34
|
teamingFailoverFieldsInitialFunc,
|
|
38
|
-
teamingFailoverNetworkFieldsInitialFunc,
|
|
39
35
|
ipvFourSettingsFields,
|
|
40
36
|
} = initialConfig
|
|
41
37
|
export const {
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
UI_I_ModalsInitialData,
|
|
7
7
|
UI_I_NetworkSummaryPortletListItem,
|
|
8
8
|
UI_I_OverrideValue,
|
|
9
|
-
UI_I_TrafficShapingSpeeds,
|
|
10
9
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
11
10
|
|
|
12
11
|
export const teamingFailoverFieldsInitialFunc = (
|
|
@@ -72,69 +71,6 @@ export const teamingFailoverFieldsInitialFunc = (
|
|
|
72
71
|
return teaming
|
|
73
72
|
}
|
|
74
73
|
|
|
75
|
-
export const teamingFailoverNetworkFieldsInitialFunc = (
|
|
76
|
-
isSwitch: boolean,
|
|
77
|
-
initialData?: UI_I_ModalsInitialData
|
|
78
|
-
): UI_I_TeamingFailoverFields => {
|
|
79
|
-
const teaming = {
|
|
80
|
-
loadBalancing: {
|
|
81
|
-
checked: isSwitch,
|
|
82
|
-
selected: 'balance-tcp',
|
|
83
|
-
},
|
|
84
|
-
networkFailureDetection: {
|
|
85
|
-
checked: isSwitch,
|
|
86
|
-
selected: 'carier',
|
|
87
|
-
},
|
|
88
|
-
notifySwitches: {
|
|
89
|
-
checked: isSwitch,
|
|
90
|
-
selected: 'yes',
|
|
91
|
-
},
|
|
92
|
-
failback: {
|
|
93
|
-
checked: isSwitch,
|
|
94
|
-
selected: 'yes',
|
|
95
|
-
},
|
|
96
|
-
failoverOrder: {
|
|
97
|
-
checked: isSwitch,
|
|
98
|
-
},
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
initialData &&
|
|
102
|
-
initialData.nicTeamingPolicy?.forEach(
|
|
103
|
-
(sec: UI_I_NetworkSummaryPortletListItem) => {
|
|
104
|
-
switch (sec.id) {
|
|
105
|
-
case 'mode':
|
|
106
|
-
teaming.loadBalancing = {
|
|
107
|
-
checked: isSwitch || sec.initialValue.override,
|
|
108
|
-
selected: sec.initialValue.value as string,
|
|
109
|
-
}
|
|
110
|
-
return true
|
|
111
|
-
case 'link_detect':
|
|
112
|
-
teaming.networkFailureDetection = {
|
|
113
|
-
checked: isSwitch || sec.initialValue.override,
|
|
114
|
-
selected: sec.initialValue.value as string,
|
|
115
|
-
}
|
|
116
|
-
return true
|
|
117
|
-
case 'notify_switches':
|
|
118
|
-
teaming.notifySwitches = {
|
|
119
|
-
checked: isSwitch || sec.initialValue.override,
|
|
120
|
-
selected: sec.initialValue.value as string,
|
|
121
|
-
}
|
|
122
|
-
return true
|
|
123
|
-
case 'failback':
|
|
124
|
-
teaming.failback = {
|
|
125
|
-
checked: isSwitch || sec.initialValue.override,
|
|
126
|
-
selected: sec.initialValue.value as string,
|
|
127
|
-
}
|
|
128
|
-
return true
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
teaming.failoverOrder.checked = initialData?.nics_override || false
|
|
134
|
-
|
|
135
|
-
return teaming
|
|
136
|
-
}
|
|
137
|
-
|
|
138
74
|
export const securityFieldsInitialFunc = (
|
|
139
75
|
isSwitch: boolean,
|
|
140
76
|
initialData?: UI_I_ModalsInitialData
|
|
@@ -183,53 +119,6 @@ export const securityFieldsInitialFunc = (
|
|
|
183
119
|
return security
|
|
184
120
|
}
|
|
185
121
|
|
|
186
|
-
export const securityNetworkFieldsInitialFunc = (
|
|
187
|
-
isSwitch: boolean,
|
|
188
|
-
initialData?: UI_I_ModalsInitialData
|
|
189
|
-
): UI_I_SecurityFields => {
|
|
190
|
-
const security: UI_I_SecurityFields = {
|
|
191
|
-
promiscuousMode: {
|
|
192
|
-
checked: isSwitch,
|
|
193
|
-
selected: '0',
|
|
194
|
-
},
|
|
195
|
-
macAddressChanges: {
|
|
196
|
-
checked: isSwitch,
|
|
197
|
-
selected: '0',
|
|
198
|
-
},
|
|
199
|
-
forgedTransmits: {
|
|
200
|
-
checked: isSwitch,
|
|
201
|
-
selected: '0',
|
|
202
|
-
},
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
initialData &&
|
|
206
|
-
initialData.securityPolicy?.forEach(
|
|
207
|
-
(sec: UI_I_NetworkSummaryPortletListItem) => {
|
|
208
|
-
switch (sec.id) {
|
|
209
|
-
case 'promiscuous_mode':
|
|
210
|
-
security.promiscuousMode = {
|
|
211
|
-
checked: isSwitch || sec.initialValue.override,
|
|
212
|
-
selected: sec.initialValue.value as string,
|
|
213
|
-
}
|
|
214
|
-
return true
|
|
215
|
-
case 'mac_change':
|
|
216
|
-
security.macAddressChanges = {
|
|
217
|
-
checked: isSwitch || sec.initialValue.override,
|
|
218
|
-
selected: sec.initialValue.value as string,
|
|
219
|
-
}
|
|
220
|
-
return true
|
|
221
|
-
case 'forged_transmits':
|
|
222
|
-
security.forgedTransmits = {
|
|
223
|
-
checked: isSwitch || sec.initialValue.override,
|
|
224
|
-
selected: sec.initialValue.value as string,
|
|
225
|
-
}
|
|
226
|
-
return true
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
)
|
|
230
|
-
|
|
231
|
-
return security
|
|
232
|
-
}
|
|
233
122
|
export const trafficShapingFieldsInitialFunc = (
|
|
234
123
|
isSwitch: boolean,
|
|
235
124
|
initialData: UI_I_ModalsInitialData
|
|
@@ -273,49 +162,6 @@ export const trafficShapingFieldsInitialFunc = (
|
|
|
273
162
|
return trafficShaping
|
|
274
163
|
}
|
|
275
164
|
|
|
276
|
-
export const trafficShapingNetworkFieldsInitialFunc = (
|
|
277
|
-
isSwitch: boolean,
|
|
278
|
-
initialData: UI_I_ModalsInitialData
|
|
279
|
-
): UI_I_TrafficShapingFields => {
|
|
280
|
-
const trafficShapingInitialValue = initialData?.shapingPolicy?.find(
|
|
281
|
-
(sec: UI_I_NetworkSummaryPortletListItem) => sec.id === 'shaping_enabled'
|
|
282
|
-
)?.initialValue as UI_I_OverrideValue
|
|
283
|
-
|
|
284
|
-
let trafficShaping: UI_I_TrafficShapingFields = {
|
|
285
|
-
status: {
|
|
286
|
-
checked: isSwitch,
|
|
287
|
-
selected: '1',
|
|
288
|
-
},
|
|
289
|
-
average: 100000,
|
|
290
|
-
peak: 100000,
|
|
291
|
-
burstSize: 102400,
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
initialData &&
|
|
295
|
-
initialData.shapingPolicy?.forEach(
|
|
296
|
-
(sec: UI_I_NetworkSummaryPortletListItem) => {
|
|
297
|
-
switch (sec.id) {
|
|
298
|
-
case 'shaping_enabled':
|
|
299
|
-
trafficShaping.status = {
|
|
300
|
-
checked: isSwitch || trafficShapingInitialValue?.override,
|
|
301
|
-
selected: trafficShapingInitialValue?.value ? '1' : '0',
|
|
302
|
-
}
|
|
303
|
-
return true
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
)
|
|
307
|
-
|
|
308
|
-
initialData &&
|
|
309
|
-
(trafficShaping = {
|
|
310
|
-
...trafficShaping,
|
|
311
|
-
average: initialData?.average_bw || 0,
|
|
312
|
-
peak: initialData?.average_bw || 0,
|
|
313
|
-
burstSize: initialData?.average_bw || 0,
|
|
314
|
-
})
|
|
315
|
-
|
|
316
|
-
return trafficShaping
|
|
317
|
-
}
|
|
318
|
-
|
|
319
165
|
export const ipvFourSettingsFields: UI_I_IpvFourSettingsFields = {
|
|
320
166
|
ipv4Settings: '1',
|
|
321
167
|
ipv4Address: '10.10.101.16',
|