Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions translib/db/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type SKey struct {
Ts *TableSpec
Key *Key
SEMap map[SEvent]bool // nil map indicates subscribe to all
Opaque interface{} // opaque data set by the caller
}

type SEvent int
Expand Down
4 changes: 2 additions & 2 deletions translib/path/path_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ func (pv *pathValidator) validateListKeyValues(schema *yang.Entry, gPath *gnmi.P
log.Warningf(errStr)
return tlerr.NotFoundError{Format: fmt.Sprintf("Invalid key present in the node path: %v; error: %s", gPath, errStr)}
}
if log.V(4) {
pretty.Print(ygotStruct)
if log.V(6) {
log.Infof("ygotStruct = %s", pretty.Sprint(ygotStruct))
}
if err := ygotStruct.Validate(&ytypes.LeafrefOptions{IgnoreMissingData: true}); err != nil {
errStr := fmt.Sprintf("error in ValidatedGoStruct.Validate: %v", err)
Expand Down
Loading