Skip to content

Commit

Permalink
[agent] no transceiver-dom on vs
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Apr 28, 2024
1 parent 6748fbe commit ea9b2a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/agent/dozer/bcm/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ func (p *BroadcomProcessor) updateTransceiverMetrics(ctx context.Context, reg *s
if err := p.client.Get(ctx, "/transceiver-dom", dev); err != nil {
return errors.Wrapf(err, "failed to get transceiver-dom")
}
if dev.TransceiverDom == nil {
return errors.Errorf("transceiver-dom not found")
}

// TODO handle it better - no transceiver-dom on VS
// if dev.TransceiverDom == nil {
// return errors.Errorf("transceiver-dom not found")
// }

for transceiverName, transceiver := range dev.TransceiverDom.TransceiverDomInfo {
if !strings.HasPrefix(transceiverName, "Ethernet") {
Expand Down

0 comments on commit ea9b2a6

Please sign in to comment.