From 4cd039a154fe7e49a0d3af410d5d87f2a4731c32 Mon Sep 17 00:00:00 2001 From: Malte Bauch <malte.bauch@stud.h-da.de> Date: Fri, 26 Mar 2021 11:53:37 +0100 Subject: [PATCH] added Gnmi and Restconf description --- nucleus/gnmi_transport.go | 2 ++ nucleus/restconf_transport.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nucleus/gnmi_transport.go b/nucleus/gnmi_transport.go index 7fb02919e..d122fdf5b 100644 --- a/nucleus/gnmi_transport.go +++ b/nucleus/gnmi_transport.go @@ -11,6 +11,8 @@ import ( "strings" ) +// Gnmi implements the Transport interface and provides an SBI with the +// possibility to access a gNMI endpoint. type Gnmi struct { SetNode func(schema *yang.Entry, root interface{}, path *gpb.Path, val interface{}, opts ...ytypes.SetNodeOpt) error RespChan chan *gpb.SubscribeResponse diff --git a/nucleus/restconf_transport.go b/nucleus/restconf_transport.go index c4fc343d4..0dd477196 100644 --- a/nucleus/restconf_transport.go +++ b/nucleus/restconf_transport.go @@ -5,6 +5,8 @@ import ( "github.com/openconfig/ygot/ytypes" ) +// Restconf implements the Transport interface and provides an SBI with the +// possibility to access a Restconf endpoint. type Restconf struct { } -- GitLab