bfg-common 1.6.91 → 1.6.92
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 +4637 -4365
- package/assets/localization/local_en.json +4642 -4369
- package/assets/localization/local_hy.json +4641 -4369
- package/assets/localization/local_kk.json +4640 -4368
- package/assets/localization/local_ru.json +4640 -4368
- package/assets/localization/local_zh.json +4638 -4366
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- 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 +3 -0
- package/components/common/adapterManager/AdapterManagerNew.vue +87 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +39 -32
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- package/components/common/diagramMain/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- package/components/common/diagramMain/modals/Modals.vue +5 -5
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +87 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +9 -9
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +15 -15
- package/components/common/diagramMain/modals/lib/config/portModal.ts +12 -12
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
- package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +33 -119
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +67 -16
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +8 -0
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- 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 +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +46 -46
- package/components/common/monitor/utilization/Utilization.vue +7 -1
- package/components/common/monitor/utilization/lib/utils/index.ts +24 -3
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/Modals.vue +1 -0
- 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/backups/modals/lib/config/restore.ts +1 -0
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/restore/Restore.vue +4 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +184 -253
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/horizontal/New.vue +1 -1
- package/components/common/split/horizontal/Old.vue +1 -1
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/tools/Actions.vue +7 -3
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/options/New.vue +14 -12
- package/components/common/vm/actions/common/select/options/Old.vue +16 -15
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- 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 +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/interfaces.ts +1 -0
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
- package/components/common/monitor/utilization/lib/models/enums.ts +0 -4
|
@@ -41,19 +41,19 @@ export const adapterViewSettingsFunc = (
|
|
|
41
41
|
type: 1,
|
|
42
42
|
rows: [
|
|
43
43
|
{
|
|
44
|
-
name: localization.common.adapter,
|
|
44
|
+
name: localization.common.adapter + ':',
|
|
45
45
|
value: initialData?.adapter?.trim(),
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
name: localization.common.name,
|
|
48
|
+
name: localization.common.name + ':',
|
|
49
49
|
value: initialData?.name,
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
name: localization.common.location,
|
|
52
|
+
name: localization.common.location + ':',
|
|
53
53
|
value: `PCI ${initialData?.pciAddress}`,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
name: localization.common.driver,
|
|
56
|
+
name: localization.common.driver + ':',
|
|
57
57
|
value: initialData?.driver,
|
|
58
58
|
},
|
|
59
59
|
],
|
|
@@ -64,7 +64,7 @@ export const adapterViewSettingsFunc = (
|
|
|
64
64
|
type: 1,
|
|
65
65
|
rows: [
|
|
66
66
|
{
|
|
67
|
-
name: localization.common.status,
|
|
67
|
+
name: localization.common.status + ':',
|
|
68
68
|
value: initialData?.carrier
|
|
69
69
|
? localization.common.connected
|
|
70
70
|
: localization.common.disconnected,
|
|
@@ -72,7 +72,7 @@ export const adapterViewSettingsFunc = (
|
|
|
72
72
|
status: true,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
name: localization.common.actualSpeedDuplex,
|
|
75
|
+
name: localization.common.actualSpeedDuplex + ':',
|
|
76
76
|
value: initialData?.carrier
|
|
77
77
|
? `${getNicSpeed(initialData?.speed || 0, localization)}, ${
|
|
78
78
|
initialData?.duplex
|
|
@@ -80,7 +80,7 @@ export const adapterViewSettingsFunc = (
|
|
|
80
80
|
: localization.common.down,
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
name: localization.common.configuredSpeedDuplex,
|
|
83
|
+
name: localization.common.configuredSpeedDuplex + ':',
|
|
84
84
|
value: initialData?.carrier
|
|
85
85
|
? `${getNicSpeed(initialData?.speed || 0, localization)}, ${
|
|
86
86
|
initialData?.duplex
|
|
@@ -88,7 +88,7 @@ export const adapterViewSettingsFunc = (
|
|
|
88
88
|
: localization.common.autoNegotiate,
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
name: localization.common.networks,
|
|
91
|
+
name: localization.common.networks + ':',
|
|
92
92
|
value:
|
|
93
93
|
initialData?.networks && initialData?.networks?.length > 0
|
|
94
94
|
? initialData?.networks.map((network: string) => network.trim())
|
|
@@ -102,7 +102,7 @@ export const adapterViewSettingsFunc = (
|
|
|
102
102
|
type: 1,
|
|
103
103
|
rows: [
|
|
104
104
|
{
|
|
105
|
-
name: localization.common.status,
|
|
105
|
+
name: localization.common.status + ':',
|
|
106
106
|
value: !initialData?.srIov ? localization.common.notSupported : '--',
|
|
107
107
|
color: initialData?.srIov,
|
|
108
108
|
status: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UI_I_Button } from '~/node_modules/bfg-common/components/common/tools/lib/models/interfaces'
|
|
1
2
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
3
|
import type { UI_I_NavigationItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
3
4
|
|
|
@@ -9,7 +10,7 @@ export const switchMainNavigationFunc = (
|
|
|
9
10
|
text: localization.common.migrateVmKernelAdapter,
|
|
10
11
|
value: 'migrate-vmkernel-adapter',
|
|
11
12
|
testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
12
|
-
development: true
|
|
13
|
+
development: true,
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
text: localization.common.viewSettings,
|
|
@@ -20,6 +21,46 @@ export const switchMainNavigationFunc = (
|
|
|
20
21
|
text: localization.common.remove,
|
|
21
22
|
value: 'switch-remove',
|
|
22
23
|
testId: `${testId}-remove`,
|
|
23
|
-
permission: 'Networks.RemoveSwitch'
|
|
24
|
+
permission: 'Networks.RemoveSwitch',
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
export const switchMainNavigationNewFunc = (
|
|
29
|
+
localization: UI_I_Localization,
|
|
30
|
+
testId: string
|
|
31
|
+
): UI_I_Button[] => [
|
|
32
|
+
{
|
|
33
|
+
text: localization.common.addNetworking,
|
|
34
|
+
value: 'add-networking',
|
|
35
|
+
iconName: 'network',
|
|
36
|
+
testId: `${testId}-add-networking-button`,
|
|
37
|
+
permission:
|
|
38
|
+
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: localization.common.edit,
|
|
42
|
+
value: 'switch-edit',
|
|
43
|
+
iconName: 'edit',
|
|
44
|
+
testId: `${testId}-edit-button`,
|
|
45
|
+
permission: 'Networks.UpdateSwitch',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
text: localization.common.managePhysicalAdapters,
|
|
49
|
+
value: 'switch-manage-physical-adapters',
|
|
50
|
+
iconName: 'settings',
|
|
51
|
+
testId: `${testId}-manage-physical-adapters-button`,
|
|
52
|
+
permission: 'Networks.UpdateSwitch',
|
|
53
|
+
},
|
|
54
|
+
// {
|
|
55
|
+
// text: localization.common.migrateVmKernelAdapter,
|
|
56
|
+
// value: 'migrate-vmkernel-adapter',
|
|
57
|
+
// testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
58
|
+
// development: true,
|
|
59
|
+
// },
|
|
60
|
+
{
|
|
61
|
+
text: localization.common.viewSettings,
|
|
62
|
+
value: 'switch-view-settings',
|
|
63
|
+
iconName: 'password-hide',
|
|
64
|
+
testId: `${testId}-view-settings`,
|
|
24
65
|
},
|
|
25
66
|
]
|
|
@@ -52,4 +52,5 @@ export const {
|
|
|
52
52
|
vmKernelAdapterViewSettingsFunc,
|
|
53
53
|
} = vmKernelAdapterData
|
|
54
54
|
// export const { managePhysicalAdapterTableData } = temporaryData
|
|
55
|
-
export const { switchMainNavigationFunc } =
|
|
55
|
+
export const { switchMainNavigationFunc, switchMainNavigationNewFunc } =
|
|
56
|
+
diagramConfig
|
|
@@ -115,11 +115,11 @@ export const networkViewSettingsFunc = (
|
|
|
115
115
|
type: 1,
|
|
116
116
|
rows: [
|
|
117
117
|
{
|
|
118
|
-
name: localization.common.networkLabel,
|
|
118
|
+
name: localization.common.networkLabel + ':',
|
|
119
119
|
value: initialData.networkLabel,
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
name: localization.common.vlanId,
|
|
122
|
+
name: localization.common.vlanId + ':',
|
|
123
123
|
value: initialData.vlanId,
|
|
124
124
|
},
|
|
125
125
|
],
|
|
@@ -130,7 +130,7 @@ export const networkViewSettingsFunc = (
|
|
|
130
130
|
type: 2,
|
|
131
131
|
rows: [
|
|
132
132
|
{
|
|
133
|
-
name: localization.common.promiscuousMode,
|
|
133
|
+
name: localization.common.promiscuousMode + ':',
|
|
134
134
|
value: promiscuousModeFlag
|
|
135
135
|
? localization.common.accept
|
|
136
136
|
: localization.common.reject,
|
|
@@ -138,7 +138,7 @@ export const networkViewSettingsFunc = (
|
|
|
138
138
|
status: true,
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
|
-
name: localization.common.macAddressChanges,
|
|
141
|
+
name: localization.common.macAddressChanges + ':',
|
|
142
142
|
value: macAddressChanges
|
|
143
143
|
? localization.common.accept
|
|
144
144
|
: localization.common.reject,
|
|
@@ -146,7 +146,7 @@ export const networkViewSettingsFunc = (
|
|
|
146
146
|
status: true,
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
name: localization.common.forgedTransmits,
|
|
149
|
+
name: localization.common.forgedTransmits + ':',
|
|
150
150
|
value: forgedTransmits
|
|
151
151
|
? localization.common.accept
|
|
152
152
|
: localization.common.reject,
|
|
@@ -161,19 +161,19 @@ export const networkViewSettingsFunc = (
|
|
|
161
161
|
type: 2,
|
|
162
162
|
rows: [
|
|
163
163
|
{
|
|
164
|
-
name: localization.common.averageBandwidth,
|
|
164
|
+
name: localization.common.averageBandwidth + ':',
|
|
165
165
|
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
166
166
|
? `${initialData.average_bw} ${localization.common.kbitS}`
|
|
167
167
|
: '--',
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
name: localization.common.peakBandwidth,
|
|
170
|
+
name: localization.common.peakBandwidth + ':',
|
|
171
171
|
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
172
172
|
? `${initialData.peak_bw} ${localization.common.kbitS}`
|
|
173
173
|
: '--',
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
name: localization.common.burstSize,
|
|
176
|
+
name: localization.common.burstSize + ':',
|
|
177
177
|
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
178
178
|
? `${initialData.burst_size} ${localization.common.kb}`
|
|
179
179
|
: '--',
|
|
@@ -186,11 +186,11 @@ export const networkViewSettingsFunc = (
|
|
|
186
186
|
type: 2,
|
|
187
187
|
rows: [
|
|
188
188
|
{
|
|
189
|
-
name: localization.common.loadBalancing,
|
|
189
|
+
name: localization.common.loadBalancing + ':',
|
|
190
190
|
value: loadBalancingValue,
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
name: localization.common.networkFailureDetection,
|
|
193
|
+
name: localization.common.networkFailureDetection + ':',
|
|
194
194
|
value:
|
|
195
195
|
(
|
|
196
196
|
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>[]
|
|
@@ -203,7 +203,7 @@ export const networkViewSettingsFunc = (
|
|
|
203
203
|
: localization.common.beaconProbing,
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
name: localization.common.notifySwitches,
|
|
206
|
+
name: localization.common.notifySwitches + ':',
|
|
207
207
|
value: notifySwitches
|
|
208
208
|
? localization.common.yes
|
|
209
209
|
: localization.common.no,
|
|
@@ -211,21 +211,21 @@ export const networkViewSettingsFunc = (
|
|
|
211
211
|
status: true,
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
name: localization.common.failback,
|
|
214
|
+
name: localization.common.failback + ':',
|
|
215
215
|
value: failback ? localization.common.yes : localization.common.no,
|
|
216
216
|
color: failback,
|
|
217
217
|
status: true,
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
name: localization.networks.activeAdapters,
|
|
220
|
+
name: localization.networks.activeAdapters + ':',
|
|
221
221
|
value: initialData.activeAdapters,
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
|
-
name: localization.common.standbyAdapters,
|
|
224
|
+
name: localization.common.standbyAdapters + ':',
|
|
225
225
|
value: initialData.standbyAdapters,
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
name: localization.common.unusedAdapters,
|
|
228
|
+
name: localization.common.unusedAdapters + ':',
|
|
229
229
|
value: initialData.unusedAdapters,
|
|
230
230
|
},
|
|
231
231
|
],
|
|
@@ -55,19 +55,19 @@ export const portViewSettingsFunc = (
|
|
|
55
55
|
type: 1,
|
|
56
56
|
rows: [
|
|
57
57
|
{
|
|
58
|
-
name: localization.common.networkLabel,
|
|
58
|
+
name: localization.common.networkLabel + ':',
|
|
59
59
|
value: initialData.networkLabel,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
name: localization.common.vlanId,
|
|
62
|
+
name: localization.common.vlanId + ':',
|
|
63
63
|
value: initialData.vlanId,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
name: localization.common.tcpIpStack,
|
|
66
|
+
name: localization.common.tcpIpStack + ':',
|
|
67
67
|
value: localization.common[initialData.tcpIp || 'default'],
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
name: localization.common.enabledServices,
|
|
70
|
+
name: localization.common.enabledServices + ':',
|
|
71
71
|
value: enabledServices,
|
|
72
72
|
},
|
|
73
73
|
],
|
|
@@ -80,7 +80,7 @@ export const portViewSettingsFunc = (
|
|
|
80
80
|
initialData.tcpConfig?.ipv4Settings === '0'
|
|
81
81
|
? [
|
|
82
82
|
{
|
|
83
|
-
name: localization.common.dhcp,
|
|
83
|
+
name: localization.common.dhcp + ':',
|
|
84
84
|
value: localization.common.enabled,
|
|
85
85
|
color: true,
|
|
86
86
|
status: true,
|
|
@@ -88,26 +88,26 @@ export const portViewSettingsFunc = (
|
|
|
88
88
|
]
|
|
89
89
|
: [
|
|
90
90
|
{
|
|
91
|
-
name: localization.common.dhcp,
|
|
91
|
+
name: localization.common.dhcp + ':',
|
|
92
92
|
value: localization.common.disabled,
|
|
93
93
|
color: false,
|
|
94
94
|
status: true,
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
name: localization.common.ipv4address,
|
|
97
|
+
name: localization.common.ipv4address + ':',
|
|
98
98
|
value: initialData.tcpConfig?.ipv4Address,
|
|
99
99
|
// (${localization.static})
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
name: localization.common.subnetMask,
|
|
102
|
+
name: localization.common.subnetMask + ':',
|
|
103
103
|
value: initialData.tcpConfig?.subnetMask,
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
name: localization.common.defaultGateway,
|
|
106
|
+
name: localization.common.defaultGateway + ':',
|
|
107
107
|
value: initialData.tcpConfig?.defaultGateway?.value,
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
name: localization.common.dnsServerAddresses,
|
|
110
|
+
name: localization.common.dnsServerAddresses + ':',
|
|
111
111
|
value: ['--'],
|
|
112
112
|
},
|
|
113
113
|
],
|
|
@@ -143,11 +143,11 @@ export const portViewSettingsFunc = (
|
|
|
143
143
|
type: 1,
|
|
144
144
|
rows: [
|
|
145
145
|
{
|
|
146
|
-
name: localization.common.macAddress,
|
|
146
|
+
name: localization.common.macAddress + ':',
|
|
147
147
|
// value: '02:00:2f:fb:9a:6b',
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
name: localization.common.mtu,
|
|
150
|
+
name: localization.common.mtu + ':',
|
|
151
151
|
value: initialData.mtu,
|
|
152
152
|
},
|
|
153
153
|
],
|
|
@@ -13,11 +13,11 @@ export const vCenterViewSettingsFunc = (
|
|
|
13
13
|
type: 1,
|
|
14
14
|
rows: [
|
|
15
15
|
{
|
|
16
|
-
name: localization.common.macAddress,
|
|
16
|
+
name: localization.common.macAddress + ':',
|
|
17
17
|
value: initialData.macAddress,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
name: localization.common.adapterType,
|
|
20
|
+
name: localization.common.adapterType + ':',
|
|
21
21
|
value: initialData.adapter,
|
|
22
22
|
},
|
|
23
23
|
],
|
|
@@ -18,7 +18,7 @@ export const vmKernelAdapterViewSettingsFunc = (
|
|
|
18
18
|
type: 0,
|
|
19
19
|
rows: [
|
|
20
20
|
{ name: localization.common.networkLabel, value: '' },
|
|
21
|
-
{ name: localization.common.vlanId, value: `${localization.common.
|
|
21
|
+
{ name: localization.common.vlanId, value: `${localization.common.none2} (0)` },
|
|
22
22
|
{ name: localization.common.tcpIpStack, value: 'Default' },
|
|
23
23
|
{ name: localization.common.enabledServices },
|
|
24
24
|
],
|
|
@@ -2,12 +2,42 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import type { UI_I_EditSettingsErrorMessage } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const validationMessagesArrayFunc = (
|
|
5
|
-
|
|
5
|
+
keyArray: (keyof UI_I_EditSettingsErrorMessage)[],
|
|
6
6
|
errorMessages: UI_I_EditSettingsErrorMessage
|
|
7
7
|
) =>
|
|
8
|
-
|
|
9
|
-
.map(
|
|
10
|
-
|
|
8
|
+
keyArray
|
|
9
|
+
.map(
|
|
10
|
+
(key: keyof UI_I_EditSettingsErrorMessage): string | undefined =>
|
|
11
|
+
errorMessages[key]
|
|
12
|
+
)
|
|
13
|
+
.filter((message: string | undefined): boolean => message !== '')
|
|
14
|
+
|
|
15
|
+
export const validationMessagesArrayNewFunc = (
|
|
16
|
+
keyArray: (keyof UI_I_EditSettingsErrorMessage)[],
|
|
17
|
+
errorMessages: UI_I_EditSettingsErrorMessage
|
|
18
|
+
) =>
|
|
19
|
+
keyArray
|
|
20
|
+
.map(
|
|
21
|
+
(
|
|
22
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
23
|
+
):
|
|
24
|
+
| {
|
|
25
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
26
|
+
message: string | undefined
|
|
27
|
+
}
|
|
28
|
+
| undefined =>
|
|
29
|
+
errorMessages[key] ? { key, message: errorMessages[key] } : undefined
|
|
30
|
+
)
|
|
31
|
+
.filter(
|
|
32
|
+
(
|
|
33
|
+
messageObject:
|
|
34
|
+
| {
|
|
35
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
36
|
+
message: string | undefined
|
|
37
|
+
}
|
|
38
|
+
| undefined
|
|
39
|
+
): boolean => !!messageObject
|
|
40
|
+
)
|
|
11
41
|
|
|
12
42
|
export const getNicSpeed = (
|
|
13
43
|
speedInitial: number = 0,
|
package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<component
|
|
4
|
+
:is="currentComponent"
|
|
5
|
+
:switch-name="props.switchName"
|
|
6
|
+
:is-dark-mode="props.isDarkMode"
|
|
7
|
+
:adapters="props.adapters"
|
|
8
|
+
:free-adapters="props.freeAdapters"
|
|
9
|
+
:added-adapters="addedAdapters"
|
|
10
|
+
:adapter-status="props.adapterStatus"
|
|
11
|
+
:is-show-no-connected-active-adapters-modal="
|
|
12
|
+
isShowNoConnectedActiveAdaptersModal
|
|
13
|
+
"
|
|
14
|
+
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
|
15
|
+
:is-manage-adapters-modal-loading="props.isManageAdaptersModalLoading"
|
|
16
|
+
@get-free-adapters="onGetFreeAdapters"
|
|
17
|
+
@change-added-adapters="onChangeAddedAdapters"
|
|
18
|
+
@change-adapter-status="onChangeAdapterStatus"
|
|
19
|
+
@hide-no-connected-active-adapters-modal="
|
|
20
|
+
onHideNoConnectedActiveAdaptersModal
|
|
21
|
+
"
|
|
22
|
+
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
|
23
|
+
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
|
24
|
+
@send-manage-adapter="onSendManageAdapter"
|
|
25
|
+
@hide="onHideManagePhysicalAdaptersModal"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import type { UI_I_ItemsWithTotalCounts } from '~/lib/models/interfaces'
|
|
32
|
+
import type {
|
|
33
|
+
UI_I_Adapter,
|
|
34
|
+
UI_I_AdapterStatus,
|
|
35
|
+
UI_I_SwitchAdapterItem,
|
|
36
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
37
|
+
|
|
38
|
+
const props = withDefaults(
|
|
39
|
+
defineProps<{
|
|
40
|
+
switchName?: string
|
|
41
|
+
freeAdapters: UI_I_Adapter[]
|
|
42
|
+
adapterStatus?: UI_I_AdapterStatus
|
|
43
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
44
|
+
initialAdapterStatus: UI_I_AdapterStatus
|
|
45
|
+
isDarkMode?: boolean
|
|
46
|
+
isManageAdaptersModalLoading?: boolean
|
|
47
|
+
}>(),
|
|
48
|
+
{
|
|
49
|
+
switchName: '',
|
|
50
|
+
adapterStatus: () => ({
|
|
51
|
+
active: [],
|
|
52
|
+
standby: [],
|
|
53
|
+
unused: [],
|
|
54
|
+
}),
|
|
55
|
+
isDarkMode: false,
|
|
56
|
+
isManageAdaptersModalLoading: false,
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
const emits = defineEmits<{
|
|
61
|
+
(event: 'hide'): void
|
|
62
|
+
(event: 'get-free-adapters', showModal: () => void): void
|
|
63
|
+
(event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
|
|
64
|
+
(
|
|
65
|
+
event: 'send-manage-physical-adapters-data',
|
|
66
|
+
adapterStatus: UI_I_AdapterStatus,
|
|
67
|
+
switchName: string,
|
|
68
|
+
hideModal: () => void
|
|
69
|
+
): void
|
|
70
|
+
}>()
|
|
71
|
+
|
|
72
|
+
const { $store }: any = useNuxtApp()
|
|
73
|
+
|
|
74
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
75
|
+
|
|
76
|
+
const currentComponent = computed(() =>
|
|
77
|
+
isNewView.value
|
|
78
|
+
? defineAsyncComponent(() => import('./ManagePhysicalAdaptersNew.vue'))
|
|
79
|
+
: defineAsyncComponent(() => import('./ManagePhysicalAdaptersOld.vue'))
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
const addedAdapters = ref<string[]>([])
|
|
83
|
+
|
|
84
|
+
const onChangeAddedAdapters = (addedAdaptersNew: string[]) => {
|
|
85
|
+
addedAdapters.value = addedAdaptersNew
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const onChangeAdapterStatus = (adapterStatusNew: UI_I_AdapterStatus) => {
|
|
89
|
+
emits('change-adapter-status', adapterStatusNew)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const isShowNoConnectedActiveAdaptersModal = ref(false)
|
|
93
|
+
const isShowNoActiveAdaptersModal = ref(false)
|
|
94
|
+
|
|
95
|
+
const showNoConnectedActiveAdaptersModal = () => {
|
|
96
|
+
isShowNoConnectedActiveAdaptersModal.value = true
|
|
97
|
+
}
|
|
98
|
+
const onHideNoConnectedActiveAdaptersModal = () => {
|
|
99
|
+
isShowNoConnectedActiveAdaptersModal.value = false
|
|
100
|
+
}
|
|
101
|
+
const showNoActiveAdaptersModal = () => {
|
|
102
|
+
isShowNoActiveAdaptersModal.value = true
|
|
103
|
+
}
|
|
104
|
+
const onHideNoActiveAdaptersModal = () => {
|
|
105
|
+
isShowNoActiveAdaptersModal.value = false
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const onSendManagePhysicalAdaptersData = (
|
|
109
|
+
adapterStatus: UI_I_AdapterStatus,
|
|
110
|
+
switchName: string,
|
|
111
|
+
hideModal: () => void
|
|
112
|
+
) => {
|
|
113
|
+
emits(
|
|
114
|
+
'send-manage-physical-adapters-data',
|
|
115
|
+
adapterStatus,
|
|
116
|
+
switchName,
|
|
117
|
+
hideModal
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const onConfirmNoActiveAdaptersModal = () => {
|
|
122
|
+
onSendManagePhysicalAdaptersData(
|
|
123
|
+
props.adapterStatus,
|
|
124
|
+
props.switchName,
|
|
125
|
+
onHideManagePhysicalAdaptersModal
|
|
126
|
+
)
|
|
127
|
+
onHideNoConnectedActiveAdaptersModal()
|
|
128
|
+
onHideNoActiveAdaptersModal()
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const onSendManageAdapter = () => {
|
|
132
|
+
if (props.adapterStatus.active.length === 0) {
|
|
133
|
+
showNoActiveAdaptersModal()
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const activeAndConnectedAdapters = props.adapterStatus.active.filter(
|
|
138
|
+
(adapterName: string) =>
|
|
139
|
+
props.adapters.items.find(
|
|
140
|
+
(ad: UI_I_SwitchAdapterItem) => ad.name === adapterName
|
|
141
|
+
)?.carrier
|
|
142
|
+
)
|
|
143
|
+
if (activeAndConnectedAdapters.length === 0) {
|
|
144
|
+
showNoConnectedActiveAdaptersModal()
|
|
145
|
+
return
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
onSendManagePhysicalAdaptersData(
|
|
149
|
+
props.adapterStatus,
|
|
150
|
+
props.switchName,
|
|
151
|
+
onHideManagePhysicalAdaptersModal
|
|
152
|
+
)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const onGetFreeAdapters = (showModal: () => void) => {
|
|
156
|
+
emits('get-free-adapters', showModal)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const onHideManagePhysicalAdaptersModal = (): void => {
|
|
160
|
+
addedAdapters.value = []
|
|
161
|
+
emits('change-adapter-status', props.initialAdapterStatus)
|
|
162
|
+
emits('hide')
|
|
163
|
+
}
|
|
164
|
+
</script>
|