Skip to content

Commit

Permalink
add some attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Oct 24, 2024
1 parent 901f78a commit cbc0de8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dataplane/saiserver/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit cbc0de8

Please sign in to comment.