Skip to content
Snippets Groups Projects
Commit be368991 authored by Malte Bauch's avatar Malte Bauch
Browse files

added GoStruct in Device creation in:

cmd/gnmi-telemetry/telemetry.go -> this is not working
cmd/gnmi/gnmi.go
parent 730bdec6
No related branches found
No related tags found
3 merge requests!97Resolve "PND handling via CLI and database",!91"Overhaul Architecture",!90Develop
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
...@@ -22,7 +22,8 @@ func main() { ...@@ -22,7 +22,8 @@ func main() {
RespChan: make(chan *gpb.SubscribeResponse), RespChan: make(chan *gpb.SubscribeResponse),
} }
device := nucleus.Device{ device := nucleus.Device{
SBI: sbi, GoStruct: sbi.Schema().Root,
SBI: sbi,
Config: nucleus.DeviceConfig{ Config: nucleus.DeviceConfig{
Uuid: uuid.New(), Uuid: uuid.New(),
Address: "localhost:9339", Address: "localhost:9339",
......
...@@ -17,7 +17,8 @@ func main() { ...@@ -17,7 +17,8 @@ func main() {
log.SetLevel(log.DebugLevel) log.SetLevel(log.DebugLevel)
sbi := &nucleus.AristaOC{} sbi := &nucleus.AristaOC{}
device := &nucleus.Device{ device := &nucleus.Device{
SBI: sbi, GoStruct: sbi.Schema().Root,
SBI: sbi,
Config: nucleus.DeviceConfig{ Config: nucleus.DeviceConfig{
Uuid: uuid.New(), Uuid: uuid.New(),
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment