Skip to content

Commit

Permalink
gs: Add gateway's admin and tech contact to packet broker upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspcr committed Aug 2, 2023
1 parent 00d1e3e commit 54e149b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pkg/gatewayserver/upstream/packetbroker/packetbroker.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,14 @@ func (h *Handler) ConnectGateway(ctx context.Context, ids *ttnpb.GatewayIdentifi

req := &ttnpb.UpdatePacketBrokerGatewayRequest{
Gateway: &ttnpb.PacketBrokerGateway{
Ids: pbIDs,
Antennas: antennas,
FrequencyPlanIds: gtw.FrequencyPlanIds,
StatusPublic: gtw.StatusPublic,
LocationPublic: gtw.LocationPublic,
Online: true,
Ids: pbIDs,
Antennas: antennas,
FrequencyPlanIds: gtw.FrequencyPlanIds,
StatusPublic: gtw.StatusPublic,
LocationPublic: gtw.LocationPublic,
AdministrativeContact: gtw.AdministrativeContact,
TechnicalContact: gtw.TechnicalContact,
Online: true,
RxRate: &wrapperspb.FloatValue{
Value: 0,
},
Expand Down Expand Up @@ -163,9 +165,11 @@ func (h *Handler) ConnectGateway(ctx context.Context, ids *ttnpb.GatewayIdentifi

req := &ttnpb.UpdatePacketBrokerGatewayRequest{
Gateway: &ttnpb.PacketBrokerGateway{
Ids: pbIDs,
Online: true,
StatusPublic: gtw.StatusPublic,
Ids: pbIDs,
Online: true,
StatusPublic: gtw.StatusPublic,
AdministrativeContact: gtw.AdministrativeContact,
TechnicalContact: gtw.TechnicalContact,
},
FieldMask: ttnpb.FieldMask("online", "status_public"),
}
Expand Down

0 comments on commit 54e149b

Please sign in to comment.