bfg-common 1.6.76 → 1.6.77
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 +4213 -4474
- package/assets/localization/local_en.json +4217 -4479
- package/assets/localization/local_hy.json +4217 -4478
- package/assets/localization/local_kk.json +4216 -4477
- package/assets/localization/local_ru.json +4216 -4477
- package/assets/localization/local_zh.json +4214 -4475
- 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/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- 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/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.vue +164 -0
- 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/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 +1 -1
- 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/switchProperties/SwitchPropertiesOld.vue +0 -87
- 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
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
v-if="props.diagramData"
|
|
4
4
|
:class="{ 'diagram-min-width': !props.inPortlet }"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
'diagram-main-container',
|
|
9
|
-
{
|
|
10
|
-
'is-new-view': isNewView,
|
|
11
|
-
'in-portlet': props.inPortlet,
|
|
12
|
-
},
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
15
|
-
<common-diagram-main-diagram
|
|
6
|
+
<div class="diagram-main-container">
|
|
7
|
+
<common-diagram-main-header
|
|
16
8
|
:project="props.project"
|
|
9
|
+
:in-portlet="props.inPortlet"
|
|
10
|
+
:is-show-diagram="isShowDiagram"
|
|
11
|
+
:diagram-name="props.diagramData.diagramName"
|
|
12
|
+
:test-id="props.diagramData.testId"
|
|
13
|
+
@toggle-diagram="onToggleDiagram"
|
|
14
|
+
@show-modal="onShowModal"
|
|
15
|
+
/>
|
|
16
|
+
<common-diagram-main-diagram
|
|
17
17
|
:diagram-data="props.diagramData"
|
|
18
18
|
:is-show-diagram="isShowDiagram"
|
|
19
19
|
:in-portlet="props.inPortlet"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
:selected-switch-line-y="selectedSwitchLineY"
|
|
29
29
|
:is-dark-mode="props.isDarkMode"
|
|
30
30
|
:networks-count="networksCount"
|
|
31
|
-
@toggle-diagram="onToggleDiagram"
|
|
32
31
|
@click-diagram="onClickDiagram"
|
|
33
32
|
@toggle-adapters="onToggleAdapters"
|
|
34
33
|
@select-adapter="onSelectAdapter"
|
|
@@ -75,8 +74,6 @@
|
|
|
75
74
|
:selected-switch-id="selectedSwitchId"
|
|
76
75
|
:tcp-stacks="props.tcpStacks"
|
|
77
76
|
:is-networking-loading="props.isNetworkingLoading"
|
|
78
|
-
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
79
|
-
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
80
77
|
:networks-list="props.networksList"
|
|
81
78
|
:is-migrate-adapter-loading="props.isMigrateAdapterLoading"
|
|
82
79
|
:diagrams-data="props.diagramsData"
|
|
@@ -175,8 +172,6 @@ const props = withDefaults(
|
|
|
175
172
|
diagramsData?: UI_I_DiagramData[]
|
|
176
173
|
isManageAdaptersModalLoading?: boolean
|
|
177
174
|
isNetworkingLoading?: boolean
|
|
178
|
-
isGetExistingSwitchesLoading?: boolean
|
|
179
|
-
isGetTcpStackLoading?: boolean
|
|
180
175
|
isRemoveModalLoading?: boolean
|
|
181
176
|
isEditModalLoading?: boolean
|
|
182
177
|
isMigrateAdapterLoading?: boolean
|
|
@@ -198,18 +193,12 @@ const props = withDefaults(
|
|
|
198
193
|
diagramsData: [],
|
|
199
194
|
isManageAdaptersModalLoading: false,
|
|
200
195
|
isNetworkingLoading: false,
|
|
201
|
-
isGetExistingSwitchesLoading: false,
|
|
202
|
-
isGetTcpStackLoading: false,
|
|
203
196
|
isRemoveModalLoading: false,
|
|
204
197
|
isEditModalLoading: false,
|
|
205
198
|
isMigrateAdapterLoading: false,
|
|
206
199
|
}
|
|
207
200
|
)
|
|
208
201
|
|
|
209
|
-
const { $store }: any = useNuxtApp()
|
|
210
|
-
|
|
211
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
212
|
-
|
|
213
202
|
const initialData = ref<UI_I_ModalsInitialData>({})
|
|
214
203
|
const switchInitialData = ref<UI_I_ModalsInitialData>({})
|
|
215
204
|
|
|
@@ -891,30 +880,11 @@ const onClickDiagram = (ev: MouseEvent): void => {
|
|
|
891
880
|
&-min-width {
|
|
892
881
|
//min-width: 745px;
|
|
893
882
|
//min-width: 764px;
|
|
894
|
-
&:not(:first-of-type) {
|
|
895
|
-
margin-top: 16px;
|
|
896
|
-
}
|
|
897
883
|
}
|
|
898
884
|
&-main-container {
|
|
899
885
|
padding-top: 5px;
|
|
900
886
|
}
|
|
901
887
|
}
|
|
902
|
-
|
|
903
|
-
.diagram-main-container.is-new-view {
|
|
904
|
-
//display: flex;
|
|
905
|
-
//justify-content: center;
|
|
906
|
-
//margin: 16px 16px 30px;
|
|
907
|
-
|
|
908
|
-
padding: 16px;
|
|
909
|
-
border-radius: 8px;
|
|
910
|
-
background: var(--diagram-container-bg);
|
|
911
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
912
|
-
|
|
913
|
-
&.in-portlet {
|
|
914
|
-
box-shadow: none;
|
|
915
|
-
padding: 0;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
888
|
</style>
|
|
919
889
|
<style lang="scss">
|
|
920
890
|
.diagram-main-actions__popup.navbar-dropdown-menu {
|
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<div class="diagram-header
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<a>
|
|
16
|
-
<span>
|
|
17
|
-
{{ localization.common.standardSwitch }}:
|
|
18
|
-
{{ props.diagramName }}
|
|
19
|
-
</span>
|
|
20
|
-
</a>
|
|
21
|
-
</div>
|
|
22
|
-
<div v-if="props.isShowDiagram" class="diagram-header__btn-container">
|
|
23
|
-
<span class="vertical-separator"></span>
|
|
24
|
-
<button
|
|
25
|
-
id="add-networking-button"
|
|
26
|
-
v-permission="
|
|
27
|
-
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch'
|
|
28
|
-
"
|
|
29
|
-
:data-id="`${props.testId}-add-networking-button`"
|
|
30
|
-
type="button"
|
|
31
|
-
@click="onShowModal('add-networking', props.diagramName)"
|
|
32
|
-
>
|
|
33
|
-
{{ localization.common.addNetworking }}
|
|
34
|
-
</button>
|
|
35
|
-
<button
|
|
36
|
-
id="switch-edit-button"
|
|
37
|
-
v-permission="'Networks.UpdateSwitch'"
|
|
38
|
-
:data-id="`${props.testId}-edit-button`"
|
|
39
|
-
type="button"
|
|
40
|
-
@click="onShowModal('switch-edit')"
|
|
41
|
-
>
|
|
42
|
-
{{ localization.common.edit }}
|
|
43
|
-
</button>
|
|
44
|
-
<button
|
|
45
|
-
id="switch-manage-physical-adapters-button"
|
|
46
|
-
v-permission="'Networks.UpdateSwitch'"
|
|
47
|
-
:data-id="`${props.testId}-manage-physical-adapters-button`"
|
|
48
|
-
type="button"
|
|
49
|
-
@click="onShowModal('switch-manage-physical-adapters')"
|
|
50
|
-
>
|
|
51
|
-
{{ localization.common.managePhysicalAdapters }}
|
|
52
|
-
</button>
|
|
53
|
-
<div class="diagram-main-actions-dots">
|
|
54
|
-
<atoms-collapse-nav
|
|
55
|
-
:close-after-click="true"
|
|
56
|
-
:items="switchMainNavigation"
|
|
57
|
-
:test-id="`${props.testId}-actions`"
|
|
58
|
-
popup-class="diagram-main-actions__popup"
|
|
59
|
-
@change="onShowModal"
|
|
2
|
+
<template v-if="!props.inPortlet">
|
|
3
|
+
<div class="diagram-header">
|
|
4
|
+
<div class="diagram-header-left">
|
|
5
|
+
<atoms-the-icon
|
|
6
|
+
:class="[
|
|
7
|
+
'diagram-header__arrow-icon',
|
|
8
|
+
{
|
|
9
|
+
open: props.isShowDiagram,
|
|
10
|
+
},
|
|
11
|
+
]"
|
|
12
|
+
:data-id="`${props.testId}-toggle-icon`"
|
|
13
|
+
name="angle"
|
|
14
|
+
@click="onToggleDiagram"
|
|
60
15
|
/>
|
|
16
|
+
<a>
|
|
17
|
+
<span>
|
|
18
|
+
{{ localization.common.standardSwitch }}:
|
|
19
|
+
{{ props.diagramName }}
|
|
20
|
+
</span>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-if="props.isShowDiagram" class="diagram-header__btn-container">
|
|
24
|
+
<span class="vertical-separator"></span>
|
|
25
|
+
<button
|
|
26
|
+
id="add-networking-button"
|
|
27
|
+
v-permission="
|
|
28
|
+
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch'
|
|
29
|
+
"
|
|
30
|
+
:data-id="`${props.testId}-add-networking-button`"
|
|
31
|
+
type="button"
|
|
32
|
+
@click="onShowModal('add-networking', props.diagramName)"
|
|
33
|
+
>
|
|
34
|
+
{{ localization.common.addNetworking }}
|
|
35
|
+
</button>
|
|
36
|
+
<button
|
|
37
|
+
id="switch-edit-button"
|
|
38
|
+
v-permission="'Networks.UpdateSwitch'"
|
|
39
|
+
:data-id="`${props.testId}-edit-button`"
|
|
40
|
+
type="button"
|
|
41
|
+
@click="onShowModal('switch-edit')"
|
|
42
|
+
>
|
|
43
|
+
{{ localization.common.edit }}
|
|
44
|
+
</button>
|
|
45
|
+
<button
|
|
46
|
+
id="switch-manage-physical-adapters-button"
|
|
47
|
+
v-permission="'Networks.UpdateSwitch'"
|
|
48
|
+
:data-id="`${props.testId}-manage-physical-adapters-button`"
|
|
49
|
+
type="button"
|
|
50
|
+
@click="onShowModal('switch-manage-physical-adapters')"
|
|
51
|
+
>
|
|
52
|
+
{{ localization.common.managePhysicalAdapters }}
|
|
53
|
+
</button>
|
|
54
|
+
<div class="diagram-main-actions-dots">
|
|
55
|
+
<atoms-collapse-nav
|
|
56
|
+
:close-after-click="true"
|
|
57
|
+
:items="switchMainNavigation"
|
|
58
|
+
:test-id="`${props.testId}-actions`"
|
|
59
|
+
popup-class="diagram-main-actions__popup"
|
|
60
|
+
@change="onShowModal"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
61
63
|
</div>
|
|
62
64
|
</div>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
<hr class="horizontal-separator" />
|
|
66
|
+
</template>
|
|
65
67
|
</template>
|
|
66
68
|
|
|
67
69
|
<script setup lang="ts">
|
|
@@ -75,6 +77,7 @@ import { switchMainNavigationFunc } from '~/components/common/diagramMain/modals
|
|
|
75
77
|
|
|
76
78
|
const props = withDefaults(
|
|
77
79
|
defineProps<{
|
|
80
|
+
inPortlet: boolean
|
|
78
81
|
isShowDiagram: boolean
|
|
79
82
|
diagramName: string
|
|
80
83
|
testId: string
|
|
@@ -100,11 +103,12 @@ const switchMainNavigation = computed<UI_I_NavigationItem[]>(() =>
|
|
|
100
103
|
switchMainNavigationFunc(localization.value, props.testId)
|
|
101
104
|
)
|
|
102
105
|
|
|
103
|
-
const
|
|
106
|
+
const onToggleDiagram = () => emits('toggle-diagram')
|
|
107
|
+
|
|
108
|
+
const onShowModal = (modalName: string, diagramName?: string) =>
|
|
104
109
|
diagramName
|
|
105
110
|
? emits('show-modal', modalName, { switch_name: diagramName })
|
|
106
111
|
: emits('show-modal', modalName)
|
|
107
|
-
}
|
|
108
112
|
</script>
|
|
109
113
|
|
|
110
114
|
<style scoped lang="scss">
|
|
@@ -136,18 +140,7 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
136
140
|
|
|
137
141
|
.diagram-header {
|
|
138
142
|
display: flex;
|
|
139
|
-
|
|
140
|
-
width: 100%;
|
|
141
|
-
padding: 24px 16px 0;
|
|
142
|
-
overflow-x: auto;
|
|
143
|
-
overflow-y: hidden;
|
|
144
|
-
scrollbar-width: none;
|
|
145
|
-
-ms-overflow-style: none;
|
|
146
|
-
|
|
147
|
-
&::-webkit-scrollbar {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
|
|
143
|
+
padding-left: 8px;
|
|
151
144
|
a {
|
|
152
145
|
color: #0072a3;
|
|
153
146
|
cursor: pointer;
|
|
@@ -156,7 +149,6 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
156
149
|
line-height: 20px;
|
|
157
150
|
span {
|
|
158
151
|
font-weight: 700;
|
|
159
|
-
white-space: nowrap;
|
|
160
152
|
}
|
|
161
153
|
}
|
|
162
154
|
|
|
@@ -168,9 +160,7 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
168
160
|
|
|
169
161
|
&__arrow-icon {
|
|
170
162
|
width: 16px;
|
|
171
|
-
min-width: 16px;
|
|
172
163
|
height: 16px;
|
|
173
|
-
min-height: 16px;
|
|
174
164
|
margin-right: 4px;
|
|
175
165
|
transform: rotate(90deg);
|
|
176
166
|
align-self: center;
|
|
@@ -223,7 +213,6 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
223
213
|
height: 0;
|
|
224
214
|
overflow: visible;
|
|
225
215
|
border-top: 0px solid #eee;
|
|
226
|
-
width: 100%;
|
|
227
216
|
}
|
|
228
217
|
|
|
229
218
|
.vertical-separator {
|
|
@@ -183,8 +183,6 @@
|
|
|
183
183
|
:tcp-stacks="props.tcpStacks"
|
|
184
184
|
:diagrams-data="props.diagramsData"
|
|
185
185
|
:is-networking-loading="props.isNetworkingLoading"
|
|
186
|
-
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
187
|
-
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
188
186
|
:host-name="props.hostName"
|
|
189
187
|
:project="props.project"
|
|
190
188
|
@check-network-label="onCheckNetworkLabel"
|
|
@@ -276,8 +274,6 @@ const props = defineProps<{
|
|
|
276
274
|
selectedSwitchId: string
|
|
277
275
|
tcpStacks: UI_I_TCPStack[]
|
|
278
276
|
isNetworkingLoading: boolean
|
|
279
|
-
isGetExistingSwitchesLoading: boolean
|
|
280
|
-
isGetTcpStackLoading: boolean
|
|
281
277
|
networksList: UI_I_Network[]
|
|
282
278
|
isMigrateAdapterLoading: boolean
|
|
283
279
|
diagramsData: UI_I_DiagramData[]
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
:title="localization.common.confirmTeamingAndFailoverSettings"
|
|
5
5
|
class="alert-modal"
|
|
6
6
|
width="576px"
|
|
7
|
-
@hide="
|
|
8
|
-
@submit="
|
|
7
|
+
@hide="onHide"
|
|
8
|
+
@submit="onSubmit"
|
|
9
9
|
>
|
|
10
10
|
<template #modalBody>
|
|
11
11
|
<atoms-alert
|
|
@@ -36,5 +36,8 @@ const emits = defineEmits<{
|
|
|
36
36
|
(event: 'submit'): void
|
|
37
37
|
}>()
|
|
38
38
|
|
|
39
|
+
const onHide = () => emits('hide')
|
|
40
|
+
const onSubmit = () => emits('submit')
|
|
41
|
+
|
|
39
42
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
40
43
|
</script>
|
|
@@ -1,37 +1,91 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
<div class="wizard-tab__container">
|
|
3
|
+
<div class="vertical-tabs__fixed-position">
|
|
4
|
+
<atoms-tabs-vertical-tabs
|
|
5
|
+
v-model="selectedTab"
|
|
6
|
+
:items="props.items"
|
|
7
|
+
:has-error-messages="hasErrorMessages"
|
|
8
|
+
@set-alert="onShowErrorMessageAlert"
|
|
9
|
+
/>
|
|
10
|
+
</div>
|
|
11
|
+
<template v-if="isNetwork || isSwitch">
|
|
12
|
+
<common-diagram-main-modals-edit-settings-tabs-network-properties
|
|
13
|
+
v-if="isNetwork"
|
|
14
|
+
v-show="selectedTab === '1'"
|
|
15
|
+
:is-show-error-message-alert="isShowErrorMessageAlert"
|
|
16
|
+
:error-messages="errorMessages"
|
|
17
|
+
:initial-data="props.initialData"
|
|
18
|
+
:has-error-messages="hasErrorMessages"
|
|
19
|
+
:network-already-exists="networkAlreadyExists"
|
|
20
|
+
@change-edit-properties-data="onChangeNetworkEditPropertiesData"
|
|
21
|
+
@change-error-messages="onChangeErrorMessages"
|
|
22
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
23
|
+
/>
|
|
24
|
+
<common-diagram-main-modals-edit-settings-tabs-switch-properties
|
|
25
|
+
v-if="isSwitch"
|
|
26
|
+
v-show="selectedTab === '1'"
|
|
27
|
+
:is-show-error-message-alert="isShowErrorMessageAlert"
|
|
28
|
+
:error-messages="errorMessages"
|
|
29
|
+
:initial-data="props.initialData"
|
|
30
|
+
:has-error-messages="hasErrorMessages"
|
|
31
|
+
@change-edit-properties-data="onChangeSwitchEditPropertiesData"
|
|
32
|
+
@change-error-messages="onChangeErrorMessages"
|
|
33
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
34
|
+
/>
|
|
35
|
+
<common-diagram-main-modals-edit-settings-tabs-security
|
|
36
|
+
v-show="selectedTab === '2'"
|
|
37
|
+
:is-switch="isSwitch"
|
|
38
|
+
:initial-data="props.initialData"
|
|
39
|
+
@change-edit-security-data="onChangeEditSecurityData"
|
|
40
|
+
/>
|
|
41
|
+
<common-diagram-main-modals-edit-settings-tabs-traffic-shaping
|
|
42
|
+
v-show="selectedTab === '3'"
|
|
43
|
+
:is-show-error-message-alert="isShowErrorMessageAlert"
|
|
44
|
+
:error-messages="errorMessages"
|
|
45
|
+
:initial-data="props.initialData"
|
|
46
|
+
:has-error-messages="hasErrorMessages"
|
|
47
|
+
:is-switch="isSwitch"
|
|
48
|
+
@change-edit-traffic-shaping-data="onChangeEditTrafficShapingData"
|
|
49
|
+
@change-error-messages="onChangeErrorMessages"
|
|
50
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
51
|
+
/>
|
|
52
|
+
<common-diagram-main-modals-edit-settings-tabs-teaming-failover
|
|
53
|
+
v-show="selectedTab === '4'"
|
|
54
|
+
:is-switch="isSwitch"
|
|
55
|
+
:adapters="props.adapters"
|
|
56
|
+
:initial-data="props.initialData"
|
|
57
|
+
:adapter-status="adapterStatus"
|
|
58
|
+
:is-dark-mode="props.isDarkMode"
|
|
59
|
+
@change-edit-teaming-failover-data="onChangeEditTeamingFailoverData"
|
|
60
|
+
@change-adapter-status="onChangeAdapterStatus"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
<template v-if="isPort">
|
|
64
|
+
<common-diagram-main-modals-edit-settings-tabs-port-properties
|
|
65
|
+
v-show="selectedTab === '1'"
|
|
66
|
+
:is-show-error-message-alert="isShowErrorMessageAlert"
|
|
67
|
+
:error-messages="errorMessages"
|
|
68
|
+
:initial-data="props.initialData"
|
|
69
|
+
:has-error-messages="hasErrorMessages"
|
|
70
|
+
@change-error-messages="onChangeErrorMessages"
|
|
71
|
+
@change-port-edit-properties-data="onChangePortEditPropertiesData"
|
|
72
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
73
|
+
/>
|
|
74
|
+
<common-diagram-main-modals-edit-settings-tabs-port-ipv-four-settings
|
|
75
|
+
v-show="selectedTab === '2'"
|
|
76
|
+
:is-show-error-message-alert="isShowErrorMessageAlert"
|
|
77
|
+
:error-messages="errorMessages"
|
|
78
|
+
:initial-data="props.initialData"
|
|
79
|
+
:has-error-messages="hasErrorMessages"
|
|
80
|
+
@change-error-messages="onChangeErrorMessages"
|
|
81
|
+
@change-port-ipv-four-data="onChangePortEditIpvFourData"
|
|
82
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
83
|
+
/>
|
|
84
|
+
</template>
|
|
85
|
+
<common-diagram-main-modals-edit-settings-confirm-teaming-settings-modal
|
|
86
|
+
:is-show="isShowWithoutActiveAdapterModal"
|
|
87
|
+
@hide="onHideWithoutActiveAdapterModal"
|
|
88
|
+
@submit="onApproveWithoutActiveAdapterModal"
|
|
35
89
|
/>
|
|
36
90
|
</div>
|
|
37
91
|
</template>
|
|
@@ -53,6 +107,7 @@ import type {
|
|
|
53
107
|
UI_I_IpvFourSettingsFields,
|
|
54
108
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
55
109
|
|
|
110
|
+
// Props from up
|
|
56
111
|
const props = withDefaults(
|
|
57
112
|
defineProps<{
|
|
58
113
|
viewName: string
|
|
@@ -81,22 +136,15 @@ const emits = defineEmits<{
|
|
|
81
136
|
(event: 'send-edit-data', type: string): void
|
|
82
137
|
}>()
|
|
83
138
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
87
|
-
|
|
88
|
-
const currentComponent = computed(() =>
|
|
89
|
-
isNewView.value
|
|
90
|
-
? defineAsyncComponent(() => import('./EditSettingsNew.vue'))
|
|
91
|
-
: defineAsyncComponent(() => import('./EditSettingsOld.vue'))
|
|
92
|
-
)
|
|
93
|
-
|
|
139
|
+
// View for the switch or the network
|
|
94
140
|
const isSwitch = computed<boolean>(() => props.viewName === 'switch-edit')
|
|
95
141
|
const isNetwork = computed<boolean>(() => props.viewName === 'network-edit')
|
|
96
142
|
const isPort = computed<boolean>(() => props.viewName === 'port-edit')
|
|
97
143
|
|
|
144
|
+
// Modal selected tab number
|
|
98
145
|
const selectedTab = ref<string>('1')
|
|
99
146
|
|
|
147
|
+
// Error notification from the nexted components validation
|
|
100
148
|
const errorMessages = ref<UI_I_EditSettingsErrorMessage>({
|
|
101
149
|
networkLabel: '',
|
|
102
150
|
vlanId: '',
|
|
@@ -120,53 +168,18 @@ const hasErrorMessages = computed(
|
|
|
120
168
|
() => !!Object.values(errorMessages.value).filter((err) => err !== '').length
|
|
121
169
|
)
|
|
122
170
|
|
|
171
|
+
// flag: to show error message
|
|
123
172
|
const isShowErrorMessageAlert = ref<boolean>(false)
|
|
124
|
-
const isShowErrorMessageAlertNew = ref<boolean[]>([])
|
|
125
|
-
|
|
126
|
-
const onShowErrorMessageAlert = (tab?: number): void => {
|
|
127
|
-
if (isNewView.value && tab === undefined) {
|
|
128
|
-
if (isNetwork.value || isSwitch.value) {
|
|
129
|
-
isShowErrorMessageAlertNew.value = [
|
|
130
|
-
!!(
|
|
131
|
-
errorMessages.value.networkLabel ||
|
|
132
|
-
errorMessages.value.vlanId ||
|
|
133
|
-
errorMessages.value.mtu
|
|
134
|
-
),
|
|
135
|
-
false,
|
|
136
|
-
!!(
|
|
137
|
-
errorMessages.value.average ||
|
|
138
|
-
errorMessages.value.peak ||
|
|
139
|
-
errorMessages.value.burstSize
|
|
140
|
-
),
|
|
141
|
-
false,
|
|
142
|
-
]
|
|
143
|
-
} else {
|
|
144
|
-
isShowErrorMessageAlertNew.value = [
|
|
145
|
-
!!errorMessages.value.mtu,
|
|
146
|
-
!!(
|
|
147
|
-
errorMessages.value.ipFourAddress ||
|
|
148
|
-
errorMessages.value.subnetMask ||
|
|
149
|
-
errorMessages.value.defaultGateway
|
|
150
|
-
),
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
} else if (isNewView.value) {
|
|
154
|
-
isShowErrorMessageAlertNew.value[tab] = true
|
|
155
|
-
} else {
|
|
156
|
-
isShowErrorMessageAlert.value = true
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
173
|
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
isShowErrorMessageAlertNew.value[tab] = false
|
|
163
|
-
} else {
|
|
164
|
-
isShowErrorMessageAlert.value = false
|
|
165
|
-
}
|
|
174
|
+
const onShowErrorMessageAlert = (): void => {
|
|
175
|
+
isShowErrorMessageAlert.value = true
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
const
|
|
178
|
+
const onHideErrorMessageAlert = (): void => {
|
|
179
|
+
isShowErrorMessageAlert.value = false
|
|
180
|
+
}
|
|
169
181
|
|
|
182
|
+
const networkEditData = ref<UI_I_EditFieldsData>({})
|
|
170
183
|
const initialNetworkLabel = ref<string>('-initial-networkLabel-123')
|
|
171
184
|
|
|
172
185
|
const isFailoverOrderOverride = computed<string | number | boolean | undefined>(
|
|
@@ -178,7 +191,6 @@ const adapterStatus = ref<UI_I_AdapterStatus>({
|
|
|
178
191
|
standby: [],
|
|
179
192
|
unused: [],
|
|
180
193
|
})
|
|
181
|
-
|
|
182
194
|
const adapterStatusInitial = ref<UI_I_AdapterStatus>({
|
|
183
195
|
active: [],
|
|
184
196
|
standby: [],
|
|
@@ -375,13 +387,13 @@ watch(selectedTab, (newSelectedTab: string, oldSelectedTab: string) => {
|
|
|
375
387
|
return
|
|
376
388
|
}
|
|
377
389
|
|
|
378
|
-
|
|
390
|
+
stopTabChanging(newSelectedTab)
|
|
379
391
|
} else if (
|
|
380
392
|
selectedTabInAlertModal.value &&
|
|
381
393
|
!isApprovedAdapterStatus.value &&
|
|
382
394
|
isFailoverOrderOverride.value
|
|
383
395
|
) {
|
|
384
|
-
|
|
396
|
+
stopTabChanging(newSelectedTab)
|
|
385
397
|
} else if (selectedTabInAlertModal.value) {
|
|
386
398
|
selectedTabInAlertModal.value = ''
|
|
387
399
|
}
|
|
@@ -392,9 +404,7 @@ watch(selectedTab, (newSelectedTab: string, oldSelectedTab: string) => {
|
|
|
392
404
|
newSelectedTab !== '1' &&
|
|
393
405
|
!isCheckedNetworkLabel.value
|
|
394
406
|
) {
|
|
395
|
-
|
|
396
|
-
selectedTab.value = '1'
|
|
397
|
-
}
|
|
407
|
+
selectedTab.value = '1'
|
|
398
408
|
if (
|
|
399
409
|
networkLabel.value !== initialNetworkLabel.value &&
|
|
400
410
|
networkLabel.value !== ''
|
|
@@ -403,9 +413,7 @@ watch(selectedTab, (newSelectedTab: string, oldSelectedTab: string) => {
|
|
|
403
413
|
checkNetworkLabelCallback('tab', message, newSelectedTab)
|
|
404
414
|
)
|
|
405
415
|
} else if (networkLabel.value === '') {
|
|
406
|
-
|
|
407
|
-
onShowErrorMessageAlert()
|
|
408
|
-
}
|
|
416
|
+
onShowErrorMessageAlert()
|
|
409
417
|
} else {
|
|
410
418
|
isCheckedNetworkLabel.value = true
|
|
411
419
|
selectedTab.value = newSelectedTab
|
|
@@ -448,12 +456,6 @@ onMounted(() => {
|
|
|
448
456
|
}
|
|
449
457
|
adapterStatus.value = adapterStatusInit
|
|
450
458
|
adapterStatusInitial.value = adapterStatusInit
|
|
451
|
-
|
|
452
|
-
if (isNetwork.value || isSwitch.value) {
|
|
453
|
-
isShowErrorMessageAlertNew.value = [false, false, false, false]
|
|
454
|
-
} else {
|
|
455
|
-
isShowErrorMessageAlertNew.value = [false, false]
|
|
456
|
-
}
|
|
457
459
|
})
|
|
458
460
|
</script>
|
|
459
461
|
|
|
@@ -492,8 +494,4 @@ onMounted(() => {
|
|
|
492
494
|
left: unset;
|
|
493
495
|
}
|
|
494
496
|
}
|
|
495
|
-
|
|
496
|
-
.edit-settings {
|
|
497
|
-
height: 100%;
|
|
498
|
-
}
|
|
499
497
|
</style>
|