Right now, we are using following workaround in every places where api request comes as otg request (which is the case for grpc), otherwise default values are not set. Moreover it causes problem in deepEquals of two api request.
rbody.SetMsg(in.MetricsRequest)
m, err := rbody.ToPbText()
if err != nil {
result.SetStatusCode400(gosnappi.NewResponseError().SetErrors([]string{err.Error()}))
return result.Msg(), nil
}
_ = rbody.FromPbText(m)```
This should be handled in go snappi.
Right now, we are using following workaround in every places where api request comes as otg request (which is the case for grpc), otherwise default values are not set. Moreover it causes problem in deepEquals of two api request.