bfg-common 1.6.72 → 1.6.74
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 +22 -282
- package/assets/localization/local_en.json +41 -302
- package/assets/localization/local_hy.json +25 -285
- package/assets/localization/local_kk.json +23 -283
- package/assets/localization/local_ru.json +34 -294
- package/assets/localization/local_zh.json +22 -282
- package/assets/scss/clarity/local_ar.json +12 -12
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/normalize.scss +0 -3
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/certificate/CertificateInfo.vue +1 -7
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +85 -169
- package/components/common/diagramMain/DiagramMain.vue +10 -40
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/{switchProperties/SwitchPropertiesOld.vue → SwitchProperties.vue} +89 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
- package/components/common/diagramMain/modals/lib/config/index.ts +1 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/modals/Rename.vue +1 -3
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/tools/Actions.vue +3 -7
- package/components/common/tools/lib/models/interfaces.ts +0 -1
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/Old.vue +0 -1
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/_vmfsVersion/lib/config/versionOptions.ts +2 -2
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +2 -2
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -1,186 +1,177 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
:class="[
|
|
4
4
|
'physical-adapters h-full',
|
|
5
5
|
{
|
|
6
6
|
'has-no-selected': !props.hasSelectedAdapter,
|
|
7
7
|
},
|
|
8
8
|
]"
|
|
9
|
+
>
|
|
10
|
+
<common-split-vertical
|
|
11
|
+
:bottom-panel-min-height="80"
|
|
12
|
+
:top-panel-min-height="110"
|
|
13
|
+
:top-panel-h="60"
|
|
14
|
+
parent-element-selector=".physical-adapters"
|
|
9
15
|
>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
<template #firstPanel>
|
|
17
|
+
<div class="physical-adapters__wrapper h-full flex flex-col">
|
|
18
|
+
<h2 class="physical-adapters-title">
|
|
19
|
+
{{ localization.common.physicalAdapters }}
|
|
20
|
+
</h2>
|
|
21
|
+
<!-- <common-configure-physical-adapters-buttons-->
|
|
22
|
+
<!-- v-show="!props.switchAdaptersLoading"-->
|
|
23
|
+
<!-- :has-selected-adapter="props.hasSelectedAdapter"-->
|
|
24
|
+
<!-- @show-add-networking-modal="onShowAddNetworkingModal"-->
|
|
25
|
+
<!-- @show-edit-modal="onShowEditModal"-->
|
|
26
|
+
<!-- @global-refresh-adapters="emits('global-refresh-adapters')"-->
|
|
27
|
+
<!-- />-->
|
|
28
|
+
<common-configure-physical-adapters-table-view
|
|
29
|
+
v-model="selectedRow"
|
|
30
|
+
:is-loading="props.switchAdaptersLoading"
|
|
31
|
+
:adapters="props.adapters"
|
|
32
|
+
:has-selected-adapter="props.hasSelectedAdapter"
|
|
33
|
+
@add="onShowAddNetworkingModal"
|
|
34
|
+
@refresh="emits('global-refresh-adapters')"
|
|
35
|
+
@edit="onShowEditModal"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<template #secondPanel>
|
|
41
|
+
<div
|
|
42
|
+
class="physical-adapters__bottom-wrapper flex flex-col h-full overflow-auto"
|
|
15
43
|
>
|
|
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
|
-
</common-split-vertical>
|
|
71
|
-
<common-wizards-network-add
|
|
72
|
-
v-if="isShowAddNetworkingModal"
|
|
73
|
-
:show="isShowAddNetworkingModal"
|
|
74
|
-
:adapters="props.adapters"
|
|
75
|
-
:standard-switches-initial="props.standardSwitches"
|
|
76
|
-
:free-adapters="props.freeAdapters"
|
|
77
|
-
:is-dark-mode="props.isDarkMode"
|
|
78
|
-
:is-networking-loading="props.isNetworkingLoading"
|
|
79
|
-
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
80
|
-
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
81
|
-
:diagrams-data="props.diagramData"
|
|
82
|
-
:tcp-stacks="props.tcpStacks"
|
|
83
|
-
:host-name="props.hostName"
|
|
84
|
-
:project="props.project"
|
|
85
|
-
@check-network-label="onCheckNetworkLabel"
|
|
86
|
-
@get-existing-standard-switches="emits('get-existing-switches')"
|
|
87
|
-
@get-tcp-stacks="onGetTcpStacks"
|
|
88
|
-
@get-free-adapters="onGetFreeAdapters"
|
|
89
|
-
@send-add-networking-data="onSendNetworkData"
|
|
90
|
-
@add-networking-data-validate="onValidateBeforeSending"
|
|
91
|
-
@hide="onHideAddNetworkingModal"
|
|
92
|
-
/>
|
|
93
|
-
|
|
94
|
-
<common-configure-physical-adapters-modals-edit
|
|
95
|
-
v-if="isShowEditModal"
|
|
96
|
-
v-model:config-speed="configSpeed"
|
|
97
|
-
v-model:status="sriovStatus"
|
|
98
|
-
v-model:number-of-functions="numberOfFunctions"
|
|
99
|
-
:selected-adapter="selectedAdapter"
|
|
100
|
-
:has-speed="hasSpeed"
|
|
101
|
-
@hide="onHideEditModal"
|
|
102
|
-
@send-edit-data="onSendEditData"
|
|
103
|
-
/>
|
|
104
|
-
</div>
|
|
44
|
+
<template v-if="props.hasSelectedAdapter">
|
|
45
|
+
<h4 v-if="viewSettingsFields" class="selected-adapter-info">
|
|
46
|
+
{{ localization.common.physicalNetworkAdapter }}:
|
|
47
|
+
{{ viewSettingsFields[0].rows[1].value }}
|
|
48
|
+
</h4>
|
|
49
|
+
<common-diagram-main-modals-view-settings-info
|
|
50
|
+
:v-if="!!viewSettingsFields"
|
|
51
|
+
:show="!!viewSettingsFields"
|
|
52
|
+
:selected-tab="0"
|
|
53
|
+
:modal-tabs="props.tabs"
|
|
54
|
+
:full-mode="false"
|
|
55
|
+
:view-settings-fields="viewSettingsFields"
|
|
56
|
+
:with-collapse="true"
|
|
57
|
+
:view-name="localization.common.physicalAdapter2"
|
|
58
|
+
height="10px"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
|
|
62
|
+
<common-configure-physical-adapters-empty-block v-else />
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
</common-split-vertical>
|
|
66
|
+
<common-wizards-network-add
|
|
67
|
+
v-if="isShowAddNetworkingModal"
|
|
68
|
+
:show="isShowAddNetworkingModal"
|
|
69
|
+
:adapters="props.adapters"
|
|
70
|
+
:standard-switches-initial="props.standardSwitches"
|
|
71
|
+
:free-adapters="props.freeAdapters"
|
|
72
|
+
:is-dark-mode="props.isDarkMode"
|
|
73
|
+
:is-networking-loading="props.isNetworkingLoading"
|
|
74
|
+
:diagrams-data="props.diagramData"
|
|
75
|
+
:tcp-stacks="props.tcpStacks"
|
|
76
|
+
:host-name="props.hostName"
|
|
77
|
+
:project="props.project"
|
|
78
|
+
@check-network-label="onCheckNetworkLabel"
|
|
79
|
+
@get-existing-standard-switches="emits('get-existing-switches')"
|
|
80
|
+
@get-tcp-stacks="onGetTcpStacks"
|
|
81
|
+
@get-free-adapters="onGetFreeAdapters"
|
|
82
|
+
@send-add-networking-data="onSendNetworkData"
|
|
83
|
+
@add-networking-data-validate="onValidateBeforeSending"
|
|
84
|
+
@hide="onHideAddNetworkingModal"
|
|
85
|
+
/>
|
|
86
|
+
|
|
87
|
+
<common-configure-physical-adapters-modals-edit
|
|
88
|
+
v-if="isShowEditModal"
|
|
89
|
+
v-model:config-speed="configSpeed"
|
|
90
|
+
v-model:status="sriovStatus"
|
|
91
|
+
v-model:number-of-functions="numberOfFunctions"
|
|
92
|
+
:selected-adapter="selectedAdapter"
|
|
93
|
+
:has-speed="hasSpeed"
|
|
94
|
+
@hide="onHideEditModal"
|
|
95
|
+
@send-edit-data="onSendEditData"
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
105
98
|
</template>
|
|
106
99
|
|
|
107
100
|
<script setup lang="ts">
|
|
108
101
|
import type { UI_T_Project } from '~/lib/models/types'
|
|
109
102
|
import type {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
UI_I_Localization,
|
|
104
|
+
UI_I_ArbitraryObject,
|
|
105
|
+
UI_I_ItemsWithTotalCounts,
|
|
113
106
|
} from '~/lib/models/interfaces'
|
|
114
107
|
import type {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
UI_I_Adapter,
|
|
109
|
+
UI_I_SwitchAdapterItem,
|
|
110
|
+
UI_I_DiagramData,
|
|
111
|
+
API_UI_I_SwitchItem,
|
|
119
112
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
120
113
|
import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
121
114
|
import type {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
UI_I_Switch,
|
|
116
|
+
UI_I_AddNetworkingSecondOrThirdSchemeDataSend,
|
|
117
|
+
UI_I_AddNetworkingZeroOrFirstSchemeDataSend,
|
|
118
|
+
UI_I_AddNetworkingFourthOrFifthSchemeDataSend,
|
|
119
|
+
UI_I_TCPStack,
|
|
127
120
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
128
121
|
import { adapterViewSettingsFunc } from '~/components/common/configure/physicalAdapters/tableView/lib/config/settings'
|
|
129
122
|
import type {
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
UI_I_ViewSettingsFields,
|
|
124
|
+
UI_I_ViewSettingsModalTabs,
|
|
132
125
|
} from '~/components/common/configure/physicalAdapters/tableView/lib/models/interfaces'
|
|
133
126
|
|
|
134
127
|
const props = defineProps<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
tabs: UI_I_ViewSettingsModalTabs[]
|
|
148
|
-
hasSelectedAdapter: boolean
|
|
128
|
+
hostName: string
|
|
129
|
+
project: UI_T_Project
|
|
130
|
+
isDarkMode: boolean
|
|
131
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
132
|
+
switchAdaptersLoading: boolean
|
|
133
|
+
isNetworkingLoading?: boolean
|
|
134
|
+
tcpStacks: UI_I_TCPStack[]
|
|
135
|
+
diagramData: UI_I_DiagramData[]
|
|
136
|
+
standardSwitches: UI_I_Switch[]
|
|
137
|
+
freeAdapters: UI_I_Adapter[]
|
|
138
|
+
tabs: UI_I_ViewSettingsModalTabs[]
|
|
139
|
+
hasSelectedAdapter: boolean
|
|
149
140
|
}>()
|
|
150
141
|
|
|
151
142
|
const emits = defineEmits<{
|
|
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
|
-
|
|
143
|
+
(event: 'get-tcp-stacks'): void
|
|
144
|
+
(event: 'global-refresh-adapters'): void
|
|
145
|
+
(event: 'get-virtual-switches'): void
|
|
146
|
+
(event: 'get-existing-switches'): void
|
|
147
|
+
(event: 'get-switch-adapters'): void
|
|
148
|
+
(event: 'send-dit-data'): void
|
|
149
|
+
(
|
|
150
|
+
event: 'check-network-label',
|
|
151
|
+
label: string,
|
|
152
|
+
sendMessage: (message: string) => void
|
|
153
|
+
): void
|
|
154
|
+
(event: 'get-free-adapters', showModal: () => void): void
|
|
155
|
+
(
|
|
156
|
+
event: 'send-networking-data',
|
|
157
|
+
data:
|
|
158
|
+
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
159
|
+
| UI_I_AddNetworkingZeroOrFirstSchemeDataSend
|
|
160
|
+
| UI_I_AddNetworkingFourthOrFifthSchemeDataSend
|
|
161
|
+
| API_UI_I_SwitchItem,
|
|
162
|
+
type: string,
|
|
163
|
+
hideModal: () => void
|
|
164
|
+
): void
|
|
165
|
+
(
|
|
166
|
+
event: 'send-validation',
|
|
167
|
+
data:
|
|
168
|
+
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
169
|
+
| UI_I_AddNetworkingZeroOrFirstSchemeDataSend
|
|
170
|
+
| UI_I_AddNetworkingFourthOrFifthSchemeDataSend
|
|
171
|
+
| API_UI_I_SwitchItem,
|
|
172
|
+
type: string,
|
|
173
|
+
setValidation: (err_arg: UI_I_ArbitraryObject<string>) => void
|
|
174
|
+
): void
|
|
184
175
|
}>()
|
|
185
176
|
|
|
186
177
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -190,108 +181,104 @@ const selectedRow = defineModel<UI_T_SelectedRow>()
|
|
|
190
181
|
const idFromAction = ref<number>()
|
|
191
182
|
|
|
192
183
|
const hasSelectedAdapterFromAction = computed<boolean>(
|
|
193
|
-
|
|
184
|
+
() => typeof idFromAction.value === 'number'
|
|
194
185
|
)
|
|
195
186
|
|
|
196
187
|
const selectedAdapter = computed<UI_I_SwitchAdapterItem | null>(() => {
|
|
197
|
-
|
|
188
|
+
if (!props.adapters.items) return null
|
|
198
189
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
190
|
+
if (hasSelectedAdapterFromAction.value) {
|
|
191
|
+
return props.adapters.items[idFromAction.value as number]
|
|
192
|
+
}
|
|
202
193
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
if (props.hasSelectedAdapter) {
|
|
195
|
+
return props.adapters.items[selectedRow.value as number]
|
|
196
|
+
}
|
|
206
197
|
})
|
|
207
198
|
|
|
208
199
|
const viewSettingsFields = computed<UI_I_ViewSettingsFields[] | false>(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
200
|
+
() =>
|
|
201
|
+
selectedAdapter.value &&
|
|
202
|
+
adapterViewSettingsFunc(localization.value, selectedAdapter.value)
|
|
212
203
|
)
|
|
213
204
|
|
|
214
205
|
const isShowAddNetworkingModal = ref<boolean>(false)
|
|
215
206
|
const onShowAddNetworkingModal = async (): Promise<void> => {
|
|
216
|
-
|
|
217
|
-
|
|
207
|
+
isShowAddNetworkingModal.value = true
|
|
208
|
+
emits('get-virtual-switches')
|
|
218
209
|
}
|
|
219
210
|
|
|
220
211
|
const onHideAddNetworkingModal = (): void => {
|
|
221
|
-
|
|
212
|
+
isShowAddNetworkingModal.value = false
|
|
222
213
|
}
|
|
223
214
|
|
|
224
215
|
const onGetTcpStacks = async (): Promise<void> => {
|
|
225
|
-
|
|
216
|
+
emits('get-tcp-stacks')
|
|
226
217
|
}
|
|
227
218
|
|
|
228
219
|
const onCheckNetworkLabel = async (
|
|
229
|
-
|
|
230
|
-
|
|
220
|
+
label: string,
|
|
221
|
+
sendMessage: (message: string) => void
|
|
231
222
|
): Promise<void> => {
|
|
232
|
-
|
|
223
|
+
emits('check-network-label', label, sendMessage)
|
|
233
224
|
}
|
|
234
225
|
|
|
235
226
|
const onGetFreeAdapters = async (showModal: () => void): Promise<void> => {
|
|
236
|
-
|
|
227
|
+
emits('get-free-adapters', showModal)
|
|
237
228
|
}
|
|
238
229
|
|
|
239
230
|
const onSendNetworkData = async (
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
231
|
+
data:
|
|
232
|
+
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
233
|
+
| UI_I_AddNetworkingZeroOrFirstSchemeDataSend
|
|
234
|
+
| UI_I_AddNetworkingFourthOrFifthSchemeDataSend
|
|
235
|
+
| API_UI_I_SwitchItem,
|
|
236
|
+
type: string,
|
|
237
|
+
hideModal: () => void
|
|
247
238
|
): Promise<void> => {
|
|
248
|
-
|
|
239
|
+
emits('send-networking-data', data, type, hideModal)
|
|
249
240
|
}
|
|
250
241
|
|
|
251
242
|
const onValidateBeforeSending = async (
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
243
|
+
data:
|
|
244
|
+
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
245
|
+
| UI_I_AddNetworkingZeroOrFirstSchemeDataSend
|
|
246
|
+
| UI_I_AddNetworkingFourthOrFifthSchemeDataSend
|
|
247
|
+
| API_UI_I_SwitchItem,
|
|
248
|
+
type: string,
|
|
249
|
+
setValidation: (err_arg: UI_I_ArbitraryObject<string>) => void
|
|
259
250
|
): Promise<void> => {
|
|
260
|
-
|
|
251
|
+
emits('send-validation', data, type, setValidation)
|
|
261
252
|
}
|
|
262
253
|
|
|
263
254
|
const isShowEditModal = ref<boolean>(false)
|
|
264
255
|
|
|
265
256
|
const onShowEditModal = (id: number): void => {
|
|
266
|
-
|
|
267
|
-
|
|
257
|
+
idFromAction.value = id
|
|
258
|
+
isShowEditModal.value = true
|
|
268
259
|
}
|
|
269
260
|
|
|
270
261
|
const onHideEditModal = (): void => {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
configSpeed.value = 'auto'
|
|
275
|
-
sriovStatus.value = false
|
|
276
|
-
numberOfFunctions.value = 0
|
|
262
|
+
isShowEditModal.value = false
|
|
263
|
+
idFromAction.value = undefined
|
|
277
264
|
}
|
|
278
265
|
|
|
279
266
|
const hasSpeed = computed<boolean>(() =>
|
|
280
|
-
|
|
267
|
+
selectedAdapter.value ? Number(selectedAdapter.value.speed) >= 0 : false
|
|
281
268
|
)
|
|
282
269
|
|
|
283
270
|
const configSpeed = ref<string>('auto')
|
|
284
271
|
const sriovStatus = ref<boolean>(false)
|
|
285
|
-
const numberOfFunctions = ref<number>(
|
|
272
|
+
const numberOfFunctions = ref<number>(0)
|
|
286
273
|
|
|
287
274
|
const onSendEditData = (): void => {
|
|
288
|
-
|
|
275
|
+
onHideEditModal()
|
|
289
276
|
|
|
290
|
-
|
|
277
|
+
emits('send-dit-data')
|
|
291
278
|
}
|
|
292
279
|
|
|
293
280
|
onBeforeMount(async () => {
|
|
294
|
-
|
|
281
|
+
emits('get-switch-adapters')
|
|
295
282
|
})
|
|
296
283
|
</script>
|
|
297
284
|
|
|
@@ -342,7 +329,7 @@ onBeforeMount(async () => {
|
|
|
342
329
|
background: var(--table-bg);
|
|
343
330
|
box-shadow: 0px 1px 4px 0px #00000014;
|
|
344
331
|
border-radius: 8px;
|
|
345
|
-
min-height:
|
|
332
|
+
min-height: 216px;
|
|
346
333
|
|
|
347
334
|
.info-container {
|
|
348
335
|
background: var(--table-bg);
|
|
@@ -362,14 +349,6 @@ onBeforeMount(async () => {
|
|
|
362
349
|
.physical-adapters__bottom-wrapper {
|
|
363
350
|
height: calc(100% - 16px);
|
|
364
351
|
overflow: hidden;
|
|
365
|
-
|
|
366
|
-
:deep(.no-items-found-title) {
|
|
367
|
-
font-weight: 400;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
&:not(.has-selected-adapter) {
|
|
371
|
-
padding: 0 16px;
|
|
372
|
-
}
|
|
373
352
|
}
|
|
374
353
|
|
|
375
354
|
.physical-adapters.has-no-selected {
|
|
@@ -383,10 +362,4 @@ onBeforeMount(async () => {
|
|
|
383
362
|
}
|
|
384
363
|
}
|
|
385
364
|
}
|
|
386
|
-
|
|
387
|
-
.physical-adapters__wrapper {
|
|
388
|
-
:deep(.ui-main-no-items-found) {
|
|
389
|
-
transform: translate(-50%, calc(-50% - 27.5px));
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
365
|
</style>
|
|
@@ -58,8 +58,6 @@
|
|
|
58
58
|
:free-adapters="props.freeAdapters"
|
|
59
59
|
:is-dark-mode="props.isDarkMode"
|
|
60
60
|
:is-networking-loading="props.isNetworkingLoading"
|
|
61
|
-
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
62
|
-
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
63
61
|
:diagrams-data="props.diagramData"
|
|
64
62
|
:tcp-stacks="props.tcpStacks"
|
|
65
63
|
:host-name="props.hostName"
|
|
@@ -111,7 +109,9 @@ import type {
|
|
|
111
109
|
UI_I_AddNetworkingFourthOrFifthSchemeDataSend,
|
|
112
110
|
UI_I_TCPStack,
|
|
113
111
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
114
|
-
import {
|
|
112
|
+
import {
|
|
113
|
+
adapterViewSettingsFunc,
|
|
114
|
+
} from '~/components/common/configure/physicalAdapters/tableView/lib/config/settings'
|
|
115
115
|
import type {
|
|
116
116
|
UI_I_ViewSettingsFields,
|
|
117
117
|
UI_I_ViewSettingsModalTabs,
|
|
@@ -123,9 +123,7 @@ const props = defineProps<{
|
|
|
123
123
|
isDarkMode: boolean
|
|
124
124
|
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
125
125
|
switchAdaptersLoading: boolean
|
|
126
|
-
isNetworkingLoading
|
|
127
|
-
isGetExistingSwitchesLoading: boolean
|
|
128
|
-
isGetTcpStackLoading: boolean
|
|
126
|
+
isNetworkingLoading?: boolean
|
|
129
127
|
tcpStacks: UI_I_TCPStack[]
|
|
130
128
|
diagramData: UI_I_DiagramData[]
|
|
131
129
|
standardSwitches: UI_I_Switch[]
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
v-model:config-speed="configSpeed"
|
|
5
5
|
v-model:status="sriovStatus"
|
|
6
6
|
v-model:number-of-functions="numberOfFunctions"
|
|
7
|
-
v-model:errors="errors"
|
|
8
7
|
:selected-adapter="props.selectedAdapter"
|
|
9
8
|
:has-speed="props.hasSpeed"
|
|
10
9
|
:configured-speed-options="configuredSpeedOptions"
|
|
11
10
|
:sr-options="srOptions"
|
|
12
11
|
@hide="emits('hide')"
|
|
13
|
-
@send-edit-data="
|
|
12
|
+
@send-edit-data="emits('send-edit-data')"
|
|
14
13
|
/>
|
|
15
14
|
</template>
|
|
16
15
|
|
|
@@ -21,13 +20,11 @@ import type { UI_I_SwitchAdapterItem } from '~/components/common/diagramMain/lib
|
|
|
21
20
|
import type {
|
|
22
21
|
UI_I_ConfiguredSpeedOption,
|
|
23
22
|
UI_I_SrOption,
|
|
24
|
-
UI_I_SrOptionError,
|
|
25
23
|
} from '~/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces'
|
|
26
24
|
import {
|
|
27
25
|
configuredSpeedOptionsFunc,
|
|
28
26
|
srOptionsFunc,
|
|
29
27
|
} from '~/components/common/configure/physicalAdapters/modals/edit/lib/config/config'
|
|
30
|
-
import { vfNumberValidationFunc } from '~/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations'
|
|
31
28
|
|
|
32
29
|
const { $store }: any = useNuxtApp()
|
|
33
30
|
|
|
@@ -63,11 +60,6 @@ const srOptions = computed<(UI_I_SrOption | UI_I_OptionItem)[]>(() =>
|
|
|
63
60
|
srOptionsFunc(localization.value, isNewView.value)
|
|
64
61
|
)
|
|
65
62
|
|
|
66
|
-
const errors = ref<UI_I_SrOptionError>({
|
|
67
|
-
alert: '',
|
|
68
|
-
field: '',
|
|
69
|
-
})
|
|
70
|
-
|
|
71
63
|
watch(
|
|
72
64
|
configuredSpeedOptions,
|
|
73
65
|
(newValue: (UI_I_ConfiguredSpeedOption | UI_I_OptionItem)[]) => {
|
|
@@ -75,23 +67,6 @@ watch(
|
|
|
75
67
|
},
|
|
76
68
|
{ deep: true, immediate: true }
|
|
77
69
|
)
|
|
78
|
-
|
|
79
|
-
const onSendData = (): void => {
|
|
80
|
-
const alertMessage = vfNumberValidationFunc(
|
|
81
|
-
numberOfFunctions.value,
|
|
82
|
-
localization.value,
|
|
83
|
-
true
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
if (alertMessage) {
|
|
87
|
-
errors.value.alert = alertMessage
|
|
88
|
-
return
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
errors.value.alert = ''
|
|
92
|
-
|
|
93
|
-
emits('send-edit-data')
|
|
94
|
-
}
|
|
95
70
|
</script>
|
|
96
71
|
|
|
97
72
|
<style scoped lang="scss">
|