From c483c139601692d17fc9d6911667de37a75cd2a8 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <manuel.kieweg@h-da.de> Date: Sun, 6 Jun 2021 15:06:31 +0200 Subject: [PATCH] passthrough functions --- nucleus/gnmi_transport.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nucleus/gnmi_transport.go b/nucleus/gnmi_transport.go index 1834ce7e1..019d6981b 100644 --- a/nucleus/gnmi_transport.go +++ b/nucleus/gnmi_transport.go @@ -341,3 +341,11 @@ func (g *Gnmi) subscribe(ctx context.Context) error { func (g *Gnmi) Close() error { return nil } + +func (g *Gnmi) SetPassthrough(ctx context.Context, req *gpb.SetRequest) (*gpb.SetResponse, error) { + return g.client.Set(ctx, req) +} + +func (g *Gnmi) GetPassthrough(ctx context.Context, req *gpb.GetRequest) (*gpb.GetResponse, error) { + return g.client.Get(ctx, req) +} -- GitLab