From 1a3822881ef613e75dafcd71b234b7514e029fae Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 20 Oct 2025 14:52:32 +0800 Subject: [PATCH] fix: view and edit mode for l2vlan trunk (#563) Signed-off-by: Andy Lee --- .../edit/harvesterhci.io.networkattachmentdefinition.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.networkattachmentdefinition.vue b/pkg/harvester/edit/harvesterhci.io.networkattachmentdefinition.vue index 1b42bcf4..7d8095b5 100644 --- a/pkg/harvester/edit/harvesterhci.io.networkattachmentdefinition.vue +++ b/pkg/harvester/edit/harvesterhci.io.networkattachmentdefinition.vue @@ -171,10 +171,10 @@ export default { isL2VlanTrunkMode() { if (this.isView) { - return this.value.vlanType === L2VLAN && this.l2VlanMode === TRUNK; + return this.value.vlanType === L2TRUNK_VLAN && this.l2VlanMode === TRUNK; } - return this.type === L2VLAN && this.l2VlanMode === TRUNK; + return this.type === L2TRUNK_VLAN && this.l2VlanMode === TRUNK; }, isL2VlanAccessMode() {