bfg-common 1.5.339 → 1.5.341
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 +10 -29
- package/assets/localization/local_en.json +10 -29
- package/assets/localization/local_hy.json +10 -29
- package/assets/localization/local_kk.json +10 -29
- package/assets/localization/local_ru.json +10 -29
- package/assets/localization/local_zh.json +10 -29
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/package.json +2 -2
@@ -1,175 +1,175 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="wizard-content__container">
|
3
|
-
<div class="wizard-content">
|
4
|
-
<form id="teaming-failover">
|
5
|
-
<section class="form-block">
|
6
|
-
<template
|
7
|
-
v-for="(item, key) in teamingAndFailoverTemplate"
|
8
|
-
:key="item.key"
|
9
|
-
>
|
10
|
-
<div class="horizontal-flex-container">
|
11
|
-
<span class="flex-property-label-group large">
|
12
|
-
{{ localization.common[item.key] }}
|
13
|
-
</span>
|
14
|
-
|
15
|
-
<div class="flex-property-value-group overridable-dropdown">
|
16
|
-
<div class="horizontal-flex-container no-margin">
|
17
|
-
<div class="flex-property-value-group">
|
18
|
-
<div class="horizontal-flex-container">
|
19
|
-
<div
|
20
|
-
v-if="!props.isSwitch"
|
21
|
-
class="flex-property-label-group small checkbox-inline"
|
22
|
-
>
|
23
|
-
<input
|
24
|
-
:id="`teaming-failover-input-${item.key}`"
|
25
|
-
v-model="fieldsValues[item.key].checked"
|
26
|
-
:data-id="`${item.testId}-teaming-failover-input`"
|
27
|
-
type="checkbox"
|
28
|
-
/>
|
29
|
-
<label
|
30
|
-
:for="`teaming-failover-input-${item.key}`"
|
31
|
-
class="normal-weight"
|
32
|
-
>
|
33
|
-
{{ localization.common.override }}
|
34
|
-
</label>
|
35
|
-
</div>
|
36
|
-
<div class="flex-property-value-group">
|
37
|
-
<div class="select">
|
38
|
-
<select
|
39
|
-
:id="`teaming-failover-select-${key}`"
|
40
|
-
v-model="fieldsValues[item.key].selected"
|
41
|
-
:data-id="`${item.testId}-teaming-failover-select`"
|
42
|
-
:disabled="!fieldsValues[item.key].checked"
|
43
|
-
name="selectName"
|
44
|
-
>
|
45
|
-
<template
|
46
|
-
v-for="(option, index) in item.options"
|
47
|
-
:key="index"
|
48
|
-
>
|
49
|
-
<option :value="option.value">
|
50
|
-
{{ option.text }}
|
51
|
-
</option>
|
52
|
-
</template>
|
53
|
-
</select>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
</template>
|
62
|
-
</section>
|
63
|
-
<div class="form-block">
|
64
|
-
<label> {{ localization.common.failoverOrder }} </label>
|
65
|
-
</div>
|
66
|
-
</form>
|
67
|
-
<div v-if="!props.isSwitch" class="horizontal-flex-container">
|
68
|
-
<div class="flex-property-label-group small checkbox-inline">
|
69
|
-
<input
|
70
|
-
id="failover-order"
|
71
|
-
v-model="fieldsValues.failoverOrder.checked"
|
72
|
-
data-id="failover-order-input"
|
73
|
-
type="checkbox"
|
74
|
-
/>
|
75
|
-
<label for="failover-order" class="normal-weight">
|
76
|
-
{{ localization.common.override }}
|
77
|
-
</label>
|
78
|
-
</div>
|
79
|
-
</div>
|
80
|
-
<common-adapter-manager
|
81
|
-
test-id="teaming-failover"
|
82
|
-
:is-active="fieldsValues.failoverOrder.checked"
|
83
|
-
:adapters="props.adapters"
|
84
|
-
:initial-data="props.initialData"
|
85
|
-
:adapter-status="props.adapterStatus"
|
86
|
-
:is-dark-mode="props.isDarkMode"
|
87
|
-
@change-adapter-status="onChangeAdapterStatus"
|
88
|
-
/>
|
89
|
-
<div class="select-adapter-info">
|
90
|
-
<span>
|
91
|
-
{{ localization.common.selectActiveAndStandbyAdapters }}
|
92
|
-
</span>
|
93
|
-
</div>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
</template>
|
97
|
-
|
98
|
-
<script setup lang="ts">
|
99
|
-
import type {
|
100
|
-
UI_I_Localization,
|
101
|
-
UI_I_ItemsWithTotalCounts,
|
102
|
-
} from '~/lib/models/interfaces'
|
103
|
-
import type {
|
104
|
-
UI_I_TeamingFailoverFields,
|
105
|
-
UI_I_SwitchAdapterItem,
|
106
|
-
UI_I_ModalsInitialData,
|
107
|
-
UI_I_TeamingAndFailoverTemplate,
|
108
|
-
UI_I_AdapterStatus,
|
109
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
110
|
-
import {
|
111
|
-
teamingFailoverFieldsInitialFunc,
|
112
|
-
teamingAndFailoverTemplateMakerFunc,
|
113
|
-
} from '~/components/common/diagramMain/modals/lib/config'
|
114
|
-
|
115
|
-
// Props from up
|
116
|
-
const props = withDefaults(
|
117
|
-
defineProps<{
|
118
|
-
initialData?: UI_I_ModalsInitialData
|
119
|
-
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
120
|
-
adapterStatus: UI_I_AdapterStatus
|
121
|
-
isSwitch: boolean
|
122
|
-
isDarkMode?: boolean
|
123
|
-
}>(),
|
124
|
-
{
|
125
|
-
initialData: () => ({}),
|
126
|
-
isSwitch: false,
|
127
|
-
isDarkMode: false,
|
128
|
-
}
|
129
|
-
)
|
130
|
-
|
131
|
-
// UI_I_Localization
|
132
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
133
|
-
|
134
|
-
// Making fields template
|
135
|
-
const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
|
136
|
-
() => teamingAndFailoverTemplateMakerFunc(localization.value)
|
137
|
-
)
|
138
|
-
// Temporary data for this component
|
139
|
-
const fieldsValues = ref<UI_I_TeamingFailoverFields>(
|
140
|
-
teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
|
141
|
-
)
|
142
|
-
|
143
|
-
const emits = defineEmits<{
|
144
|
-
(
|
145
|
-
event: 'change-edit-teaming-failover-data',
|
146
|
-
teamingFailoverData: UI_I_TeamingFailoverFields
|
147
|
-
): void
|
148
|
-
(event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
|
149
|
-
}>()
|
150
|
-
|
151
|
-
const onChangeData = (data: UI_I_TeamingFailoverFields) =>
|
152
|
-
emits('change-edit-teaming-failover-data', data)
|
153
|
-
|
154
|
-
const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
|
155
|
-
emits('change-adapter-status', adapterStatus)
|
156
|
-
|
157
|
-
watch(
|
158
|
-
fieldsValues,
|
159
|
-
(newFieldsValues: UI_I_TeamingFailoverFields) => {
|
160
|
-
onChangeData(newFieldsValues)
|
161
|
-
},
|
162
|
-
{ deep: true, immediate: true }
|
163
|
-
)
|
164
|
-
|
165
|
-
onMounted(() => {
|
166
|
-
onChangeData(fieldsValues.value)
|
167
|
-
})
|
168
|
-
</script>
|
169
|
-
<style lang="scss" scoped>
|
170
|
-
:deep(.diagram-action__edit) {
|
171
|
-
.table-fixed-height {
|
172
|
-
max-height: 227px;
|
173
|
-
}
|
174
|
-
}
|
175
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="wizard-content__container">
|
3
|
+
<div class="wizard-content">
|
4
|
+
<form id="teaming-failover">
|
5
|
+
<section class="form-block">
|
6
|
+
<template
|
7
|
+
v-for="(item, key) in teamingAndFailoverTemplate"
|
8
|
+
:key="item.key"
|
9
|
+
>
|
10
|
+
<div class="horizontal-flex-container">
|
11
|
+
<span class="flex-property-label-group large">
|
12
|
+
{{ localization.common[item.key] }}
|
13
|
+
</span>
|
14
|
+
|
15
|
+
<div class="flex-property-value-group overridable-dropdown">
|
16
|
+
<div class="horizontal-flex-container no-margin">
|
17
|
+
<div class="flex-property-value-group">
|
18
|
+
<div class="horizontal-flex-container">
|
19
|
+
<div
|
20
|
+
v-if="!props.isSwitch"
|
21
|
+
class="flex-property-label-group small checkbox-inline"
|
22
|
+
>
|
23
|
+
<input
|
24
|
+
:id="`teaming-failover-input-${item.key}`"
|
25
|
+
v-model="fieldsValues[item.key].checked"
|
26
|
+
:data-id="`${item.testId}-teaming-failover-input`"
|
27
|
+
type="checkbox"
|
28
|
+
/>
|
29
|
+
<label
|
30
|
+
:for="`teaming-failover-input-${item.key}`"
|
31
|
+
class="normal-weight"
|
32
|
+
>
|
33
|
+
{{ localization.common.override }}
|
34
|
+
</label>
|
35
|
+
</div>
|
36
|
+
<div class="flex-property-value-group">
|
37
|
+
<div class="select">
|
38
|
+
<select
|
39
|
+
:id="`teaming-failover-select-${key}`"
|
40
|
+
v-model="fieldsValues[item.key].selected"
|
41
|
+
:data-id="`${item.testId}-teaming-failover-select`"
|
42
|
+
:disabled="!fieldsValues[item.key].checked"
|
43
|
+
name="selectName"
|
44
|
+
>
|
45
|
+
<template
|
46
|
+
v-for="(option, index) in item.options"
|
47
|
+
:key="index"
|
48
|
+
>
|
49
|
+
<option :value="option.value">
|
50
|
+
{{ option.text }}
|
51
|
+
</option>
|
52
|
+
</template>
|
53
|
+
</select>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
</template>
|
62
|
+
</section>
|
63
|
+
<div class="form-block">
|
64
|
+
<label> {{ localization.common.failoverOrder }} </label>
|
65
|
+
</div>
|
66
|
+
</form>
|
67
|
+
<div v-if="!props.isSwitch" class="horizontal-flex-container">
|
68
|
+
<div class="flex-property-label-group small checkbox-inline">
|
69
|
+
<input
|
70
|
+
id="failover-order"
|
71
|
+
v-model="fieldsValues.failoverOrder.checked"
|
72
|
+
data-id="failover-order-input"
|
73
|
+
type="checkbox"
|
74
|
+
/>
|
75
|
+
<label for="failover-order" class="normal-weight">
|
76
|
+
{{ localization.common.override }}
|
77
|
+
</label>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
<common-adapter-manager
|
81
|
+
test-id="teaming-failover"
|
82
|
+
:is-active="fieldsValues.failoverOrder.checked"
|
83
|
+
:adapters="props.adapters"
|
84
|
+
:initial-data="props.initialData"
|
85
|
+
:adapter-status="props.adapterStatus"
|
86
|
+
:is-dark-mode="props.isDarkMode"
|
87
|
+
@change-adapter-status="onChangeAdapterStatus"
|
88
|
+
/>
|
89
|
+
<div class="select-adapter-info">
|
90
|
+
<span>
|
91
|
+
{{ localization.common.selectActiveAndStandbyAdapters }}
|
92
|
+
</span>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</template>
|
97
|
+
|
98
|
+
<script setup lang="ts">
|
99
|
+
import type {
|
100
|
+
UI_I_Localization,
|
101
|
+
UI_I_ItemsWithTotalCounts,
|
102
|
+
} from '~/lib/models/interfaces'
|
103
|
+
import type {
|
104
|
+
UI_I_TeamingFailoverFields,
|
105
|
+
UI_I_SwitchAdapterItem,
|
106
|
+
UI_I_ModalsInitialData,
|
107
|
+
UI_I_TeamingAndFailoverTemplate,
|
108
|
+
UI_I_AdapterStatus,
|
109
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
110
|
+
import {
|
111
|
+
teamingFailoverFieldsInitialFunc,
|
112
|
+
teamingAndFailoverTemplateMakerFunc,
|
113
|
+
} from '~/components/common/diagramMain/modals/lib/config'
|
114
|
+
|
115
|
+
// Props from up
|
116
|
+
const props = withDefaults(
|
117
|
+
defineProps<{
|
118
|
+
initialData?: UI_I_ModalsInitialData
|
119
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
120
|
+
adapterStatus: UI_I_AdapterStatus
|
121
|
+
isSwitch: boolean
|
122
|
+
isDarkMode?: boolean
|
123
|
+
}>(),
|
124
|
+
{
|
125
|
+
initialData: () => ({}),
|
126
|
+
isSwitch: false,
|
127
|
+
isDarkMode: false,
|
128
|
+
}
|
129
|
+
)
|
130
|
+
|
131
|
+
// UI_I_Localization
|
132
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
133
|
+
|
134
|
+
// Making fields template
|
135
|
+
const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
|
136
|
+
() => teamingAndFailoverTemplateMakerFunc(localization.value)
|
137
|
+
)
|
138
|
+
// Temporary data for this component
|
139
|
+
const fieldsValues = ref<UI_I_TeamingFailoverFields>(
|
140
|
+
teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
|
141
|
+
)
|
142
|
+
|
143
|
+
const emits = defineEmits<{
|
144
|
+
(
|
145
|
+
event: 'change-edit-teaming-failover-data',
|
146
|
+
teamingFailoverData: UI_I_TeamingFailoverFields
|
147
|
+
): void
|
148
|
+
(event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
|
149
|
+
}>()
|
150
|
+
|
151
|
+
const onChangeData = (data: UI_I_TeamingFailoverFields) =>
|
152
|
+
emits('change-edit-teaming-failover-data', data)
|
153
|
+
|
154
|
+
const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
|
155
|
+
emits('change-adapter-status', adapterStatus)
|
156
|
+
|
157
|
+
watch(
|
158
|
+
fieldsValues,
|
159
|
+
(newFieldsValues: UI_I_TeamingFailoverFields) => {
|
160
|
+
onChangeData(newFieldsValues)
|
161
|
+
},
|
162
|
+
{ deep: true, immediate: true }
|
163
|
+
)
|
164
|
+
|
165
|
+
onMounted(() => {
|
166
|
+
onChangeData(fieldsValues.value)
|
167
|
+
})
|
168
|
+
</script>
|
169
|
+
<style lang="scss" scoped>
|
170
|
+
:deep(.diagram-action__edit) {
|
171
|
+
.table-fixed-height {
|
172
|
+
max-height: 227px;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
</style>
|