Skip to content
Snippets Groups Projects
Commit 62a817e3 authored by Fabian Seidl's avatar Fabian Seidl Committed by Malte Bauch
Browse files

sbi is added to the request

parent 6d359356
No related branches found
No related tags found
1 merge request!248Resolve "A requested Device via gRPC is missing SBI"
......@@ -125,6 +125,10 @@ func fillOnds(pnd networkdomain.NetworkDomain, all bool, did ...string) ([]*ppb.
Id: id,
Name: d.Name(),
Device: dev,
Sbi: &spb.SouthboundInterface{
Id: d.SBI().ID().String(),
Type: d.SBI().Type(),
},
}
}
......
......@@ -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