Newer
Older
"code.fbi.h-da.de/cocsn/yang-models/generated/openconfig"
Manuel Kieweg
committed
Device ygot.GoStruct
SBI SouthboundInterface
Config DeviceConfig
Transport Transport
Manuel Kieweg
committed
// Add adds a property to a device. Please
// use better naming in further develop
// Also all that Interface Call specific logic belongs to SBI!
if err != nil {
return err
}
opts := []ytypes.SetNodeOpt{&ytypes.InitMissingElements{}, &ytypes.TolerateJSONInconsistencies{}}
for _, msg := range rn {
for _, val := range msg.Update {
schema := models["Device"]
if err := ytypes.SetNode(schema, d.Device.(*openconfig.Device), val.Path, val.Val, opts...); err != nil {
Manuel Kieweg
committed
}
Uuid uuid.UUID
Address string
Username string
Password string