bfg-common 1.6.77 → 1.6.78
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 +4461 -4213
- package/assets/localization/local_en.json +4466 -4217
- package/assets/localization/local_hy.json +4465 -4217
- package/assets/localization/local_kk.json +4464 -4216
- package/assets/localization/local_ru.json +4464 -4216
- package/assets/localization/local_zh.json +4462 -4214
- 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/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +37 -38
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- 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/actions/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +187 -186
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/certificate/Certificate.vue +6 -16
- package/components/common/certificate/{Info/Old.vue → CertificateInfo.vue} +34 -6
- package/components/common/certificate/{tools/Tools.vue → Tools.vue} +23 -18
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -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 +12 -5
- 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/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- 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/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/interfaces.ts +760 -760
- 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/ManagePhysicalAdaptersModal.vue +331 -331
- package/components/common/diagramMain/modals/Modals.vue +483 -479
- 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 +147 -147
- 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/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- 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/modals/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- 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/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- 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 +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/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/certificate/Info/Info.vue +0 -61
- package/components/common/certificate/Info/new/New.vue +0 -285
- package/components/common/certificate/Info/new/lib/config/index.ts +0 -59
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +0 -3
- package/components/common/certificate/Info/new/lib/utils/index.ts +0 -10
- package/components/common/certificate/Old.vue +0 -27
- package/components/common/certificate/new/New.vue +0 -30
- package/components/common/certificate/new/Skeleton.vue +0 -155
- package/components/common/certificate/tools/New.vue +0 -48
- package/components/common/certificate/tools/Old.vue +0 -39
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +0 -20
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
|
@@ -1,405 +1,405 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type {
|
|
3
|
-
UI_I_ModalsInitialData,
|
|
4
|
-
UI_I_NetworkSummaryPortletListItem,
|
|
5
|
-
UI_I_OverrideValue,
|
|
6
|
-
UI_I_TeamingAndFailoverTemplate,
|
|
7
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
8
|
-
import {
|
|
9
|
-
UI_E_IYNOption,
|
|
10
|
-
UI_E_IBSTLoadBalancingMode,
|
|
11
|
-
UI_E_ICBLinkDetectionMode,
|
|
12
|
-
} from '~/components/common/diagramMain/lib/models/enums'
|
|
13
|
-
|
|
14
|
-
export const networkViewSettingsModalTabsFunc = (
|
|
15
|
-
localization: UI_I_Localization
|
|
16
|
-
) => [
|
|
17
|
-
{
|
|
18
|
-
text: localization.common.all,
|
|
19
|
-
value: 0,
|
|
20
|
-
testId: 'network-view-settings-all',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
text: localization.common.properties,
|
|
24
|
-
value: 1,
|
|
25
|
-
testId: 'network-view-settings-properties',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
text: localization.common.policies,
|
|
29
|
-
value: 2,
|
|
30
|
-
testId: 'network-view-settings-policies',
|
|
31
|
-
},
|
|
32
|
-
]
|
|
33
|
-
|
|
34
|
-
const findInitialValue = (
|
|
35
|
-
source: UI_I_NetworkSummaryPortletListItem[] | undefined,
|
|
36
|
-
id: string
|
|
37
|
-
): UI_I_OverrideValue =>
|
|
38
|
-
source?.find(
|
|
39
|
-
(sourceItem: UI_I_NetworkSummaryPortletListItem) => sourceItem.id === id
|
|
40
|
-
)?.initialValue as UI_I_OverrideValue
|
|
41
|
-
|
|
42
|
-
export const networkViewSettingsFunc = (
|
|
43
|
-
localization: UI_I_Localization,
|
|
44
|
-
initialData: UI_I_ModalsInitialData
|
|
45
|
-
) => {
|
|
46
|
-
const loadBalancing =
|
|
47
|
-
(
|
|
48
|
-
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>[]
|
|
49
|
-
)?.find(
|
|
50
|
-
(
|
|
51
|
-
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>
|
|
52
|
-
) => teaming.id === 'mode'
|
|
53
|
-
)?.initialValue?.value || UI_E_IBSTLoadBalancingMode.BACKUP
|
|
54
|
-
|
|
55
|
-
let loadBalancingValue: string
|
|
56
|
-
|
|
57
|
-
switch (loadBalancing) {
|
|
58
|
-
case UI_E_IBSTLoadBalancingMode.BACKUP:
|
|
59
|
-
loadBalancingValue = localization.common.useExplicitFailoverOrder
|
|
60
|
-
break
|
|
61
|
-
case UI_E_IBSTLoadBalancingMode.SLB:
|
|
62
|
-
loadBalancingValue = localization.common.routeBasedSourceMacHash
|
|
63
|
-
break
|
|
64
|
-
case UI_E_IBSTLoadBalancingMode.TCP:
|
|
65
|
-
loadBalancingValue = localization.common.routeBasedIpHash
|
|
66
|
-
break
|
|
67
|
-
default:
|
|
68
|
-
loadBalancingValue = '--'
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const promiscuousModeFlag: boolean =
|
|
72
|
-
(
|
|
73
|
-
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
74
|
-
)?.find(
|
|
75
|
-
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
76
|
-
sec.id === 'promiscuous_mode'
|
|
77
|
-
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
78
|
-
|
|
79
|
-
const macAddressChanges: boolean =
|
|
80
|
-
(
|
|
81
|
-
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
82
|
-
)?.find(
|
|
83
|
-
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
84
|
-
sec.id === 'mac_change'
|
|
85
|
-
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
86
|
-
|
|
87
|
-
const forgedTransmits: boolean =
|
|
88
|
-
(
|
|
89
|
-
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
90
|
-
)?.find(
|
|
91
|
-
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
92
|
-
sec.id === 'forged_transmits'
|
|
93
|
-
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
94
|
-
|
|
95
|
-
const notifySwitches: boolean =
|
|
96
|
-
(
|
|
97
|
-
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
98
|
-
)?.find(
|
|
99
|
-
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
100
|
-
teaming.id === 'notify_switches'
|
|
101
|
-
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
102
|
-
|
|
103
|
-
const failback: boolean =
|
|
104
|
-
(
|
|
105
|
-
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
106
|
-
)?.find(
|
|
107
|
-
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
108
|
-
teaming.id === 'failback'
|
|
109
|
-
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
110
|
-
|
|
111
|
-
return [
|
|
112
|
-
{
|
|
113
|
-
title: localization.common.properties,
|
|
114
|
-
id: 1,
|
|
115
|
-
type: 1,
|
|
116
|
-
rows: [
|
|
117
|
-
{
|
|
118
|
-
name: localization.common.networkLabel,
|
|
119
|
-
value: initialData.networkLabel,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: localization.common.vlanId,
|
|
123
|
-
value: initialData.vlanId,
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
title: localization.common.security,
|
|
129
|
-
id: 2,
|
|
130
|
-
type: 2,
|
|
131
|
-
rows: [
|
|
132
|
-
{
|
|
133
|
-
name: localization.common.promiscuousMode,
|
|
134
|
-
value: promiscuousModeFlag
|
|
135
|
-
? localization.common.accept
|
|
136
|
-
: localization.common.reject,
|
|
137
|
-
color: promiscuousModeFlag,
|
|
138
|
-
status: true,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: localization.common.macAddressChanges,
|
|
142
|
-
value: macAddressChanges
|
|
143
|
-
? localization.common.accept
|
|
144
|
-
: localization.common.reject,
|
|
145
|
-
color: macAddressChanges,
|
|
146
|
-
status: true,
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: localization.common.forgedTransmits,
|
|
150
|
-
value: forgedTransmits
|
|
151
|
-
? localization.common.accept
|
|
152
|
-
: localization.common.reject,
|
|
153
|
-
color: forgedTransmits,
|
|
154
|
-
status: true,
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
title: localization.common.trafficShaping,
|
|
160
|
-
id: 3,
|
|
161
|
-
type: 2,
|
|
162
|
-
rows: [
|
|
163
|
-
{
|
|
164
|
-
name: localization.common.averageBandwidth,
|
|
165
|
-
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
166
|
-
? `${initialData.average_bw} ${localization.common.kbitS}`
|
|
167
|
-
: '--',
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: localization.common.peakBandwidth,
|
|
171
|
-
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
172
|
-
? `${initialData.peak_bw} ${localization.common.kbitS}`
|
|
173
|
-
: '--',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: localization.common.burstSize,
|
|
177
|
-
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
178
|
-
? `${initialData.burst_size} ${localization.common.kb}`
|
|
179
|
-
: '--',
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
title: localization.common.teamingAndFailover,
|
|
185
|
-
id: 4,
|
|
186
|
-
type: 2,
|
|
187
|
-
rows: [
|
|
188
|
-
{
|
|
189
|
-
name: localization.common.loadBalancing,
|
|
190
|
-
value: loadBalancingValue,
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: localization.common.networkFailureDetection,
|
|
194
|
-
value:
|
|
195
|
-
(
|
|
196
|
-
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>[]
|
|
197
|
-
)?.find(
|
|
198
|
-
(
|
|
199
|
-
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>
|
|
200
|
-
) => teaming.id === 'link_detect'
|
|
201
|
-
)?.initialValue?.value === 1
|
|
202
|
-
? localization.common.linkStatusOnly
|
|
203
|
-
: localization.common.beaconProbing,
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: localization.common.notifySwitches,
|
|
207
|
-
value: notifySwitches
|
|
208
|
-
? localization.common.yes
|
|
209
|
-
: localization.common.no,
|
|
210
|
-
color: notifySwitches,
|
|
211
|
-
status: true,
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: localization.common.failback,
|
|
215
|
-
value: failback ? localization.common.yes : localization.common.no,
|
|
216
|
-
color: failback,
|
|
217
|
-
status: true,
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: localization.networks.activeAdapters,
|
|
221
|
-
value: initialData.activeAdapters,
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
name: localization.common.standbyAdapters,
|
|
225
|
-
value: initialData.standbyAdapters,
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
name: localization.common.unusedAdapters,
|
|
229
|
-
value: initialData.unusedAdapters,
|
|
230
|
-
},
|
|
231
|
-
],
|
|
232
|
-
},
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export const networkEditSettingsTabsFunc = (
|
|
237
|
-
localization: UI_I_Localization
|
|
238
|
-
) => [
|
|
239
|
-
{
|
|
240
|
-
value: '1',
|
|
241
|
-
text: localization.common.properties,
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
value: '2',
|
|
245
|
-
text: localization.common.security,
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
value: '3',
|
|
249
|
-
text: localization.common.trafficShaping,
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
value: '4',
|
|
253
|
-
text: localization.common.teamingAndFailover,
|
|
254
|
-
},
|
|
255
|
-
]
|
|
256
|
-
|
|
257
|
-
export const networkPopupFieldsFunc = (
|
|
258
|
-
localization: UI_I_Localization,
|
|
259
|
-
networkType: string,
|
|
260
|
-
testId: string,
|
|
261
|
-
state: number,
|
|
262
|
-
inPortlet = false
|
|
263
|
-
) => {
|
|
264
|
-
const view = {
|
|
265
|
-
text: localization.common.viewSettings,
|
|
266
|
-
value: 'network-view-settings',
|
|
267
|
-
testId: `${testId}-view`,
|
|
268
|
-
}
|
|
269
|
-
const edit = {
|
|
270
|
-
text: localization.common.editSettings,
|
|
271
|
-
value: 'network-edit-settings',
|
|
272
|
-
testId: `${testId}-edit`,
|
|
273
|
-
permission:
|
|
274
|
-
networkType === '1'
|
|
275
|
-
? 'Networks.UpdateInfoSysx'
|
|
276
|
-
: 'Networks.UpdatePortGroup',
|
|
277
|
-
}
|
|
278
|
-
const remove = {
|
|
279
|
-
text: localization.common.remove,
|
|
280
|
-
value: 'network-port-remove',
|
|
281
|
-
testId: `${testId}-remove`,
|
|
282
|
-
permission:
|
|
283
|
-
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
|
284
|
-
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
const inPortletConfig = [view]
|
|
288
|
-
|
|
289
|
-
const notInPortletConfig = [view, edit, { separate: true }, remove]
|
|
290
|
-
const notInPortletErrorConfig = [remove]
|
|
291
|
-
|
|
292
|
-
if (inPortlet) {
|
|
293
|
-
return state === 3 ? [] : inPortletConfig
|
|
294
|
-
} else {
|
|
295
|
-
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export const networkPopupFieldsNewFunc = (
|
|
300
|
-
localization: UI_I_Localization,
|
|
301
|
-
networkType: string,
|
|
302
|
-
testId: string,
|
|
303
|
-
state: number,
|
|
304
|
-
inPortlet = false
|
|
305
|
-
) => {
|
|
306
|
-
const view = {
|
|
307
|
-
text: localization.common.viewSettings,
|
|
308
|
-
value: 'network-view-settings',
|
|
309
|
-
iconName: 'password-hide',
|
|
310
|
-
testId: `${testId}-view`,
|
|
311
|
-
}
|
|
312
|
-
const edit = {
|
|
313
|
-
text: localization.common.editSettings,
|
|
314
|
-
value: 'network-edit-settings',
|
|
315
|
-
iconName: 'edit',
|
|
316
|
-
testId: `${testId}-edit`,
|
|
317
|
-
permission:
|
|
318
|
-
networkType === '1'
|
|
319
|
-
? 'Networks.UpdateInfoSysx'
|
|
320
|
-
: 'Networks.UpdatePortGroup',
|
|
321
|
-
}
|
|
322
|
-
const remove = {
|
|
323
|
-
text: localization.common.remove,
|
|
324
|
-
value: 'network-port-remove',
|
|
325
|
-
iconName: 'delete',
|
|
326
|
-
iconColor: '#ea3223',
|
|
327
|
-
textColor: '#ea3223',
|
|
328
|
-
testId: `${testId}-remove`,
|
|
329
|
-
permission:
|
|
330
|
-
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
|
331
|
-
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
const inPortletConfig = [view]
|
|
335
|
-
|
|
336
|
-
const notInPortletConfig = [view, edit, remove]
|
|
337
|
-
const notInPortletErrorConfig = [remove]
|
|
338
|
-
|
|
339
|
-
if (inPortlet) {
|
|
340
|
-
return state === 3 ? [] : inPortletConfig
|
|
341
|
-
} else {
|
|
342
|
-
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export const teamingAndFailoverTemplateMakerFunc = (
|
|
347
|
-
localization: UI_I_Localization
|
|
348
|
-
): UI_I_TeamingAndFailoverTemplate[] => [
|
|
349
|
-
{
|
|
350
|
-
key: 'loadBalancing',
|
|
351
|
-
testId: 'loadBalancing',
|
|
352
|
-
options: [
|
|
353
|
-
{
|
|
354
|
-
value: 3,
|
|
355
|
-
text: localization.common.routeBasedIpHash,
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
value: 2,
|
|
359
|
-
text: localization.common.routeBasedSourceMacHash,
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
value: 1,
|
|
363
|
-
text: localization.common.useExplicitFailoverOrder,
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
key: 'networkFailureDetection',
|
|
369
|
-
testId: 'networkFailureDetection',
|
|
370
|
-
options: [
|
|
371
|
-
{
|
|
372
|
-
value: 1,
|
|
373
|
-
text: localization.common.linkStatusOnly,
|
|
374
|
-
},
|
|
375
|
-
],
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
key: 'notifySwitches',
|
|
379
|
-
testId: 'notifySwitches',
|
|
380
|
-
options: [
|
|
381
|
-
{
|
|
382
|
-
value: 2,
|
|
383
|
-
text: localization.common.no,
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
value: 1,
|
|
387
|
-
text: localization.common.yes,
|
|
388
|
-
},
|
|
389
|
-
],
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
key: 'failback',
|
|
393
|
-
testId: 'failback',
|
|
394
|
-
options: [
|
|
395
|
-
{
|
|
396
|
-
value: 2,
|
|
397
|
-
text: localization.common.no,
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
value: 1,
|
|
401
|
-
text: localization.common.yes,
|
|
402
|
-
},
|
|
403
|
-
],
|
|
404
|
-
},
|
|
405
|
-
]
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
|
+
UI_I_ModalsInitialData,
|
|
4
|
+
UI_I_NetworkSummaryPortletListItem,
|
|
5
|
+
UI_I_OverrideValue,
|
|
6
|
+
UI_I_TeamingAndFailoverTemplate,
|
|
7
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
8
|
+
import {
|
|
9
|
+
UI_E_IYNOption,
|
|
10
|
+
UI_E_IBSTLoadBalancingMode,
|
|
11
|
+
UI_E_ICBLinkDetectionMode,
|
|
12
|
+
} from '~/components/common/diagramMain/lib/models/enums'
|
|
13
|
+
|
|
14
|
+
export const networkViewSettingsModalTabsFunc = (
|
|
15
|
+
localization: UI_I_Localization
|
|
16
|
+
) => [
|
|
17
|
+
{
|
|
18
|
+
text: localization.common.all,
|
|
19
|
+
value: 0,
|
|
20
|
+
testId: 'network-view-settings-all',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: localization.common.properties,
|
|
24
|
+
value: 1,
|
|
25
|
+
testId: 'network-view-settings-properties',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
text: localization.common.policies,
|
|
29
|
+
value: 2,
|
|
30
|
+
testId: 'network-view-settings-policies',
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
const findInitialValue = (
|
|
35
|
+
source: UI_I_NetworkSummaryPortletListItem[] | undefined,
|
|
36
|
+
id: string
|
|
37
|
+
): UI_I_OverrideValue =>
|
|
38
|
+
source?.find(
|
|
39
|
+
(sourceItem: UI_I_NetworkSummaryPortletListItem) => sourceItem.id === id
|
|
40
|
+
)?.initialValue as UI_I_OverrideValue
|
|
41
|
+
|
|
42
|
+
export const networkViewSettingsFunc = (
|
|
43
|
+
localization: UI_I_Localization,
|
|
44
|
+
initialData: UI_I_ModalsInitialData
|
|
45
|
+
) => {
|
|
46
|
+
const loadBalancing =
|
|
47
|
+
(
|
|
48
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>[]
|
|
49
|
+
)?.find(
|
|
50
|
+
(
|
|
51
|
+
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>
|
|
52
|
+
) => teaming.id === 'mode'
|
|
53
|
+
)?.initialValue?.value || UI_E_IBSTLoadBalancingMode.BACKUP
|
|
54
|
+
|
|
55
|
+
let loadBalancingValue: string
|
|
56
|
+
|
|
57
|
+
switch (loadBalancing) {
|
|
58
|
+
case UI_E_IBSTLoadBalancingMode.BACKUP:
|
|
59
|
+
loadBalancingValue = localization.common.useExplicitFailoverOrder
|
|
60
|
+
break
|
|
61
|
+
case UI_E_IBSTLoadBalancingMode.SLB:
|
|
62
|
+
loadBalancingValue = localization.common.routeBasedSourceMacHash
|
|
63
|
+
break
|
|
64
|
+
case UI_E_IBSTLoadBalancingMode.TCP:
|
|
65
|
+
loadBalancingValue = localization.common.routeBasedIpHash
|
|
66
|
+
break
|
|
67
|
+
default:
|
|
68
|
+
loadBalancingValue = '--'
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const promiscuousModeFlag: boolean =
|
|
72
|
+
(
|
|
73
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
74
|
+
)?.find(
|
|
75
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
76
|
+
sec.id === 'promiscuous_mode'
|
|
77
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
78
|
+
|
|
79
|
+
const macAddressChanges: boolean =
|
|
80
|
+
(
|
|
81
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
82
|
+
)?.find(
|
|
83
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
84
|
+
sec.id === 'mac_change'
|
|
85
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
86
|
+
|
|
87
|
+
const forgedTransmits: boolean =
|
|
88
|
+
(
|
|
89
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
90
|
+
)?.find(
|
|
91
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
92
|
+
sec.id === 'forged_transmits'
|
|
93
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
94
|
+
|
|
95
|
+
const notifySwitches: boolean =
|
|
96
|
+
(
|
|
97
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
98
|
+
)?.find(
|
|
99
|
+
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
100
|
+
teaming.id === 'notify_switches'
|
|
101
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
102
|
+
|
|
103
|
+
const failback: boolean =
|
|
104
|
+
(
|
|
105
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
|
106
|
+
)?.find(
|
|
107
|
+
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
108
|
+
teaming.id === 'failback'
|
|
109
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
110
|
+
|
|
111
|
+
return [
|
|
112
|
+
{
|
|
113
|
+
title: localization.common.properties,
|
|
114
|
+
id: 1,
|
|
115
|
+
type: 1,
|
|
116
|
+
rows: [
|
|
117
|
+
{
|
|
118
|
+
name: localization.common.networkLabel,
|
|
119
|
+
value: initialData.networkLabel,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: localization.common.vlanId,
|
|
123
|
+
value: initialData.vlanId,
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
title: localization.common.security,
|
|
129
|
+
id: 2,
|
|
130
|
+
type: 2,
|
|
131
|
+
rows: [
|
|
132
|
+
{
|
|
133
|
+
name: localization.common.promiscuousMode,
|
|
134
|
+
value: promiscuousModeFlag
|
|
135
|
+
? localization.common.accept
|
|
136
|
+
: localization.common.reject,
|
|
137
|
+
color: promiscuousModeFlag,
|
|
138
|
+
status: true,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: localization.common.macAddressChanges,
|
|
142
|
+
value: macAddressChanges
|
|
143
|
+
? localization.common.accept
|
|
144
|
+
: localization.common.reject,
|
|
145
|
+
color: macAddressChanges,
|
|
146
|
+
status: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: localization.common.forgedTransmits,
|
|
150
|
+
value: forgedTransmits
|
|
151
|
+
? localization.common.accept
|
|
152
|
+
: localization.common.reject,
|
|
153
|
+
color: forgedTransmits,
|
|
154
|
+
status: true,
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
title: localization.common.trafficShaping,
|
|
160
|
+
id: 3,
|
|
161
|
+
type: 2,
|
|
162
|
+
rows: [
|
|
163
|
+
{
|
|
164
|
+
name: localization.common.averageBandwidth,
|
|
165
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
166
|
+
? `${initialData.average_bw} ${localization.common.kbitS}`
|
|
167
|
+
: '--',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: localization.common.peakBandwidth,
|
|
171
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
172
|
+
? `${initialData.peak_bw} ${localization.common.kbitS}`
|
|
173
|
+
: '--',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: localization.common.burstSize,
|
|
177
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
|
178
|
+
? `${initialData.burst_size} ${localization.common.kb}`
|
|
179
|
+
: '--',
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
title: localization.common.teamingAndFailover,
|
|
185
|
+
id: 4,
|
|
186
|
+
type: 2,
|
|
187
|
+
rows: [
|
|
188
|
+
{
|
|
189
|
+
name: localization.common.loadBalancing,
|
|
190
|
+
value: loadBalancingValue,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: localization.common.networkFailureDetection,
|
|
194
|
+
value:
|
|
195
|
+
(
|
|
196
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>[]
|
|
197
|
+
)?.find(
|
|
198
|
+
(
|
|
199
|
+
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>
|
|
200
|
+
) => teaming.id === 'link_detect'
|
|
201
|
+
)?.initialValue?.value === 1
|
|
202
|
+
? localization.common.linkStatusOnly
|
|
203
|
+
: localization.common.beaconProbing,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: localization.common.notifySwitches,
|
|
207
|
+
value: notifySwitches
|
|
208
|
+
? localization.common.yes
|
|
209
|
+
: localization.common.no,
|
|
210
|
+
color: notifySwitches,
|
|
211
|
+
status: true,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: localization.common.failback,
|
|
215
|
+
value: failback ? localization.common.yes : localization.common.no,
|
|
216
|
+
color: failback,
|
|
217
|
+
status: true,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: localization.networks.activeAdapters,
|
|
221
|
+
value: initialData.activeAdapters,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: localization.common.standbyAdapters,
|
|
225
|
+
value: initialData.standbyAdapters,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: localization.common.unusedAdapters,
|
|
229
|
+
value: initialData.unusedAdapters,
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export const networkEditSettingsTabsFunc = (
|
|
237
|
+
localization: UI_I_Localization
|
|
238
|
+
) => [
|
|
239
|
+
{
|
|
240
|
+
value: '1',
|
|
241
|
+
text: localization.common.properties,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
value: '2',
|
|
245
|
+
text: localization.common.security,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
value: '3',
|
|
249
|
+
text: localization.common.trafficShaping,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
value: '4',
|
|
253
|
+
text: localization.common.teamingAndFailover,
|
|
254
|
+
},
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
export const networkPopupFieldsFunc = (
|
|
258
|
+
localization: UI_I_Localization,
|
|
259
|
+
networkType: string,
|
|
260
|
+
testId: string,
|
|
261
|
+
state: number,
|
|
262
|
+
inPortlet = false
|
|
263
|
+
) => {
|
|
264
|
+
const view = {
|
|
265
|
+
text: localization.common.viewSettings,
|
|
266
|
+
value: 'network-view-settings',
|
|
267
|
+
testId: `${testId}-view`,
|
|
268
|
+
}
|
|
269
|
+
const edit = {
|
|
270
|
+
text: localization.common.editSettings,
|
|
271
|
+
value: 'network-edit-settings',
|
|
272
|
+
testId: `${testId}-edit`,
|
|
273
|
+
permission:
|
|
274
|
+
networkType === '1'
|
|
275
|
+
? 'Networks.UpdateInfoSysx'
|
|
276
|
+
: 'Networks.UpdatePortGroup',
|
|
277
|
+
}
|
|
278
|
+
const remove = {
|
|
279
|
+
text: localization.common.remove,
|
|
280
|
+
value: 'network-port-remove',
|
|
281
|
+
testId: `${testId}-remove`,
|
|
282
|
+
permission:
|
|
283
|
+
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
|
284
|
+
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const inPortletConfig = [view]
|
|
288
|
+
|
|
289
|
+
const notInPortletConfig = [view, edit, { separate: true }, remove]
|
|
290
|
+
const notInPortletErrorConfig = [remove]
|
|
291
|
+
|
|
292
|
+
if (inPortlet) {
|
|
293
|
+
return state === 3 ? [] : inPortletConfig
|
|
294
|
+
} else {
|
|
295
|
+
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export const networkPopupFieldsNewFunc = (
|
|
300
|
+
localization: UI_I_Localization,
|
|
301
|
+
networkType: string,
|
|
302
|
+
testId: string,
|
|
303
|
+
state: number,
|
|
304
|
+
inPortlet = false
|
|
305
|
+
) => {
|
|
306
|
+
const view = {
|
|
307
|
+
text: localization.common.viewSettings,
|
|
308
|
+
value: 'network-view-settings',
|
|
309
|
+
iconName: 'password-hide',
|
|
310
|
+
testId: `${testId}-view`,
|
|
311
|
+
}
|
|
312
|
+
const edit = {
|
|
313
|
+
text: localization.common.editSettings,
|
|
314
|
+
value: 'network-edit-settings',
|
|
315
|
+
iconName: 'edit',
|
|
316
|
+
testId: `${testId}-edit`,
|
|
317
|
+
permission:
|
|
318
|
+
networkType === '1'
|
|
319
|
+
? 'Networks.UpdateInfoSysx'
|
|
320
|
+
: 'Networks.UpdatePortGroup',
|
|
321
|
+
}
|
|
322
|
+
const remove = {
|
|
323
|
+
text: localization.common.remove,
|
|
324
|
+
value: 'network-port-remove',
|
|
325
|
+
iconName: 'delete',
|
|
326
|
+
iconColor: '#ea3223',
|
|
327
|
+
textColor: '#ea3223',
|
|
328
|
+
testId: `${testId}-remove`,
|
|
329
|
+
permission:
|
|
330
|
+
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
|
331
|
+
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const inPortletConfig = [view]
|
|
335
|
+
|
|
336
|
+
const notInPortletConfig = [view, edit, remove]
|
|
337
|
+
const notInPortletErrorConfig = [remove]
|
|
338
|
+
|
|
339
|
+
if (inPortlet) {
|
|
340
|
+
return state === 3 ? [] : inPortletConfig
|
|
341
|
+
} else {
|
|
342
|
+
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export const teamingAndFailoverTemplateMakerFunc = (
|
|
347
|
+
localization: UI_I_Localization
|
|
348
|
+
): UI_I_TeamingAndFailoverTemplate[] => [
|
|
349
|
+
{
|
|
350
|
+
key: 'loadBalancing',
|
|
351
|
+
testId: 'loadBalancing',
|
|
352
|
+
options: [
|
|
353
|
+
{
|
|
354
|
+
value: 3,
|
|
355
|
+
text: localization.common.routeBasedIpHash,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
value: 2,
|
|
359
|
+
text: localization.common.routeBasedSourceMacHash,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
value: 1,
|
|
363
|
+
text: localization.common.useExplicitFailoverOrder,
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
key: 'networkFailureDetection',
|
|
369
|
+
testId: 'networkFailureDetection',
|
|
370
|
+
options: [
|
|
371
|
+
{
|
|
372
|
+
value: 1,
|
|
373
|
+
text: localization.common.linkStatusOnly,
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
key: 'notifySwitches',
|
|
379
|
+
testId: 'notifySwitches',
|
|
380
|
+
options: [
|
|
381
|
+
{
|
|
382
|
+
value: 2,
|
|
383
|
+
text: localization.common.no,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: 1,
|
|
387
|
+
text: localization.common.yes,
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
key: 'failback',
|
|
393
|
+
testId: 'failback',
|
|
394
|
+
options: [
|
|
395
|
+
{
|
|
396
|
+
value: 2,
|
|
397
|
+
text: localization.common.no,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
value: 1,
|
|
401
|
+
text: localization.common.yes,
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
},
|
|
405
|
+
]
|