Skip to content
Snippets Groups Projects

Resolve "Containerised Southbound Interfaces and the corresponding device config representation within the controller"

Compare and
36 files
+ 1923
179
Compare changes
  • Side-by-side
  • Inline
Files
36
+ 14
0
@@ -124,6 +124,20 @@ func GetPnds(addr string, args ...string) (*pb.GetPndListResponse, error) {
return coreClient.GetPndList(ctx, req)
}
// deletePnd requests a deletion of the provided PND.
func deletePnd(addr string, pid string) (*pb.DeletePndResponse, error) {
coreClient, err := nbi.CoreClient(addr, dialOptions...)
if err != nil {
return nil, err
}
ctx := context.Background()
req := &pb.DeletePndRequest{
Timestamp: time.Now().UnixNano(),
Pid: pid,
}
return coreClient.DeletePnd(ctx, req)
}
// getChanges requests all pending and unconfirmed changes from the controller
func getChanges(addr, pnd string) (*ppb.GetChangeListResponse, error) {
ctx := context.Background()
Loading