Skip to content
Snippets Groups Projects

Draft: Resolve "Overhaul Architecture"

Merged Ghost User requested to merge 67-overhaul-architecture into v.0.1.0-codename-threadbare
8 files
+ 77
23
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 8
1
package main
import (
"code.fbi.h-da.de/cocsn/gosdn/forks/goarista/gnmi"
"code.fbi.h-da.de/cocsn/gosdn/nucleus"
"context"
"fmt"
@@ -24,7 +25,13 @@ func main() {
log.Fatal(err)
}
ctx := context.WithValue(context.Background(), "config", device.Config)
cfg := &gnmi.Config{
Addr: device.Config.Address,
Password: device.Config.Password,
Username: device.Config.Username,
}
ctx := gnmi.NewContext(context.Background(), cfg)
ctx = context.WithValue(ctx, "config", cfg)
g := nucleus.Gnmi{}
resp, err := g.Capabilities(ctx)
Loading