Skip to content
Snippets Groups Projects
Commit f2523f91 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

Resolve "A requested Device via gRPC is missing SBI"

parent 6d359356
No related branches found
No related tags found
2 merge requests!248Resolve "A requested Device via gRPC is missing SBI",!247Develop
Pipeline #97270 passed
......@@ -121,10 +121,18 @@ func fillOnds(pnd networkdomain.NetworkDomain, all bool, did ...string) ([]*ppb.
log.Error(err)
return nil, status.Errorf(codes.Aborted, "%v", err)
}
sbi := spb.SouthboundInterface{}
if d.SBI() != nil {
sbi.Id = d.SBI().ID().String()
sbi.Type = d.SBI().Type()
}
onds[i] = &ppb.OrchestratedNetworkingDevice{
Id: id,
Name: d.Name(),
Device: dev,
Sbi: &sbi,
}
}
......
......@@ -217,7 +217,7 @@ func (pnd *pndImplementation) GetDevice(identifier string) (device.Device, error
return nil, err
}
copiedDevice := &CommonDevice{name: d.Name(), UUID: d.ID(), GoStruct: copiedGoStruct}
copiedDevice := &CommonDevice{name: d.Name(), UUID: d.ID(), GoStruct: copiedGoStruct, sbi: d.SBI()}
return copiedDevice, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment