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

Update forks/google/gnmi/model.go

parent ac2bbb70
No related branches found
No related tags found
1 merge request!161Update forks/google/gnmi/model.go
Pipeline #74732 passed
......@@ -67,16 +67,7 @@ func (m *Model) NewConfigStruct(jsonConfig []byte) (ygot.ValidatedGoStruct, erro
if !ok {
return nil, errors.New("root node is not a ygot.ValidatedGoStruct")
}
ifaces, err := getInterfaces()
if err != nil {
return nil, err
}
device, ok := rootStruct.(*oc.Device)
if !ok {
return nil, errors.New("root node is not a oc.Device")
}
device.Interfaces = ifaces
return device, nil
return rootStruct, nil
}
// SupportedModels returns a list of supported models.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment