Skip to content
Snippets Groups Projects
Commit 7e0894ef authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

remove empty calls to gnmi transport options

parent b3baed83
No related branches found
No related tags found
1 merge request!159Resolve "Integration Tests Fail"
Pipeline #73431 passed with warnings
...@@ -43,20 +43,18 @@ type Gnmi struct { ...@@ -43,20 +43,18 @@ type Gnmi struct {
// transport based on the values of it. // transport based on the values of it.
func NewGnmiTransport(opts *tpb.TransportOption, sbi SouthboundInterface) (*Gnmi, error) { func NewGnmiTransport(opts *tpb.TransportOption, sbi SouthboundInterface) (*Gnmi, error) {
gnmiConfig := &gnmi.Config{ gnmiConfig := &gnmi.Config{
Addr: opts.Address, Addr: opts.Address,
Password: opts.Password, Password: opts.Password,
Username: opts.Username, Username: opts.Username,
TLS: opts.Tls, TLS: opts.Tls,
Compression: opts.GetGnmiTransportOption().Compression,
} }
c, err := gnmi.Dial(gnmiConfig) c, err := gnmi.Dial(gnmiConfig)
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"target": opts.Address, "target": opts.Address,
"tls": opts.Tls, "tls": opts.Tls,
"encoding": opts.GetGnmiTransportOption().Encoding,
}).Info("building new gNMI transport") }).Info("building new gNMI transport")
return &Gnmi{ return &Gnmi{
SetNode: sbi.SetNode(), SetNode: sbi.SetNode(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment