Skip to content
Snippets Groups Projects

Migrate yang models in monorepo

Merged Ghost User requested to merge istaester/migrate-yang-models into develop
3 files
+ 28
60
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -4,8 +4,8 @@ import (
"net"
"reflect"
"code.fbi.h-da.de/danet/gosdn/forks/google/gnmi"
oc "code.fbi.h-da.de/danet/gosdn/models/generated/openconfig"
"github.com/google/gnxi/gnmi"
pb "github.com/openconfig/gnmi/proto/gnmi"
"github.com/openconfig/goyang/pkg/yang"
"github.com/openconfig/ygot/util"
@@ -79,8 +79,7 @@ func GnmiTarget(stop chan bool, bindAddr string) error {
modelData,
reflect.TypeOf((*oc.Device)(nil)),
oc.SchemaTree["Device"],
// oc.Unmarshal,
nil,
oc.Unmarshal,
oc.ΛEnum)
g := grpc.NewServer()
Loading