From cbc0de8a95a03c2457b97d997e4aa17fed3f8fbd Mon Sep 17 00:00:00 2001 From: Daniel Grau Date: Thu, 24 Oct 2024 18:41:09 +0000 Subject: [PATCH] add some attributes --- dataplane/saiserver/acl.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dataplane/saiserver/acl.go b/dataplane/saiserver/acl.go index 4dab2783..318badeb 100644 --- a/dataplane/saiserver/acl.go +++ b/dataplane/saiserver/acl.go @@ -28,6 +28,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" saipb "github.com/openconfig/lemming/dataplane/proto/sai" fwdpb "github.com/openconfig/lemming/proto/forwarding" @@ -120,6 +121,12 @@ func (a *acl) CreateAclTableGroupMember(_ context.Context, req *saipb.CreateAclT // CreateAclTable is noop as the table is already created in the group. func (a *acl) CreateAclTable(context.Context, *saipb.CreateAclTableRequest) (*saipb.CreateAclTableResponse, error) { id := a.mgr.NextID() + + a.mgr.StoreAttributes(id, &saipb.AclTableAttribute{ + AvailableAclEntry: proto.Uint32(10000), + AvailableAclCounter: proto.Uint32(10000), + }) + return &saipb.CreateAclTableResponse{Oid: id}, nil }