From 40e92f7234fe9d875e6789207ff8979e8367017d Mon Sep 17 00:00:00 2001 From: Roy Date: Fri, 14 Nov 2025 19:24:03 +0000 Subject: [PATCH] Remove CPU port from port list. --- dataplane/saiserver/switch.go | 2 +- dataplane/saiserver/switch_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dataplane/saiserver/switch.go b/dataplane/saiserver/switch.go index 5d8134b02..83f60fd49 100644 --- a/dataplane/saiserver/switch.go +++ b/dataplane/saiserver/switch.go @@ -788,7 +788,7 @@ func (sw *saiSwitch) CreateSwitch(ctx context.Context, _ *saipb.CreateSwitchRequ AclTableMaximumPriority: proto.Uint32(10000), MaxAclActionCount: proto.Uint32(1000), NumberOfEcmpGroups: proto.Uint32(1024), - PortList: []uint64{cpuPortID}, + PortList: []uint64{}, SwitchHardwareInfo: []int32{}, DefaultVlanId: &vlanResp.Oid, DefaultVirtualRouterId: &vrResp.Oid, diff --git a/dataplane/saiserver/switch_test.go b/dataplane/saiserver/switch_test.go index bdc128bfd..75b504618 100644 --- a/dataplane/saiserver/switch_test.go +++ b/dataplane/saiserver/switch_test.go @@ -58,7 +58,7 @@ func TestCreateSwitch(t *testing.T) { AclTableMaximumPriority: proto.Uint32(10000), MaxAclActionCount: proto.Uint32(1000), NumberOfEcmpGroups: proto.Uint32(1024), - PortList: []uint64{2}, + PortList: []uint64{}, SwitchHardwareInfo: []int32{}, DefaultStpInstId: proto.Uint64(3), DefaultVlanId: proto.Uint64(4),