Skip to content
Snippets Groups Projects

"Overhaul Architecture"

Merged Ghost User requested to merge 67-overhaul-architecture into develop
2 files
+ 4
13
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
8
@@ -19,12 +19,8 @@ func main() {
@@ -19,12 +19,8 @@ func main() {
device := &nucleus.Device{
device := &nucleus.Device{
SBI: sbi,
SBI: sbi,
Config: nucleus.DeviceConfig{
Config: nucleus.DeviceConfig{
Uuid: uuid.New(),
Uuid: uuid.New(),
Address: "localhost:9339",
Username: "admin",
Password: "arista",
},
},
Encoding: gpb.Encoding_PROTO,
}
}
pnd := nucleus.NewPND("openconfig", sbi)
pnd := nucleus.NewPND("openconfig", sbi)
if err := pnd.AddDevice(device); err != nil {
if err := pnd.AddDevice(device); err != nil {
@@ -33,9 +29,9 @@ func main() {
@@ -33,9 +29,9 @@ func main() {
transport := &nucleus.Gnmi{SetNode: sbi.SetNode()}
transport := &nucleus.Gnmi{SetNode: sbi.SetNode()}
cfg := &gnmi.Config{
cfg := &gnmi.Config{
Addr: device.Config.Address,
Addr: "localhost:9339",
Password: device.Config.Password,
Username: "admin",
Username: device.Config.Username,
Password: "arista",
Encoding: gpb.Encoding_PROTO,
Encoding: gpb.Encoding_PROTO,
}
}
transport.SetConfig(cfg)
transport.SetConfig(cfg)
Loading