Skip to content

Commit

Permalink
Fix a variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshiuan committed Feb 22, 2024
1 parent aee5066 commit 7401bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataplane/saiserver/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ func (nhg *nextHopGroup) RemoveNextHopGroup(_ context.Context, req *saipb.Remove

entry := fwdconfig.EntryDesc(fwdconfig.ExactEntry(
fwdconfig.PacketFieldBytes(fwdpb.PacketFieldNum_PACKET_FIELD_NUM_NEXT_HOP_GROUP_ID).WithUint64(oid))).Build()
nhReq := &fwdpb.TableEntryRemoveRequest{
nhgReq := &fwdpb.TableEntryRemoveRequest{
ContextId: &fwdpb.ContextId{Id: nhg.dataplane.ID()},
TableId: &fwdpb.TableId{ObjectId: &fwdpb.ObjectId{Id: NHTable}},
EntryDesc: entry,
}

if _, err := nhg.dataplane.TableEntryRemove(context.Background(), nhReq); err != nil {
if _, err := nhg.dataplane.TableEntryRemove(context.Background(), nhgReq); err != nil {
return nil, err
}
return &saipb.RemoveNextHopGroupResponse{}, nil
Expand Down

0 comments on commit 7401bfc

Please sign in to comment.