From 94504d80d59ff48c181db5686bc08253397c8cf0 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <manuel.kieweg@h-da.de> Date: Tue, 25 May 2021 10:56:26 +0200 Subject: [PATCH] go fmt --- cli/grpc.go | 14 +++++++------- northbound/client/core.go | 2 +- nucleus/southbound.go | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cli/grpc.go b/cli/grpc.go index 4e5843f87..098f09661 100644 --- a/cli/grpc.go +++ b/cli/grpc.go @@ -40,9 +40,9 @@ func GetIds(addr string) error { if err != nil { return err } - for i,pnd := range resp.Pnd { + for i, pnd := range resp.Pnd { log.Infof("PND %v: %v", i+1, pnd.Id) - for j,sbi := range pnd.Sbi { + for j, sbi := range pnd.Sbi { log.Infof("\tSBI %v: %v", j+1, sbi.Id) } } @@ -79,7 +79,7 @@ func AddDevice(addr, username, password, sbi, pnd, deviceAddress string) error { }, }, }, - Pid: pnd, + Pid: pnd, } ctx := context.Background() resp, err := pndClient.Set(ctx, req) @@ -103,13 +103,13 @@ func GetDevice(addr, pid, path string, did ...string) error { req := &ppb.GetRequest{ Timestamp: time.Now().UnixNano(), - Request: &ppb.GetRequest_Ond{ + Request: &ppb.GetRequest_Ond{ Ond: &ppb.GetOnd{ All: all, Did: did, }, }, - Pid: pid, + Pid: pid, } ctx := context.Background() resp, err := pndClient.Get(ctx, req) @@ -158,7 +158,7 @@ func sendChangeRequest(addr, pid string, req *ppb.ChangeRequest) error { r := &ppb.SetRequest{ Timestamp: time.Now().UnixNano(), ChangeRequest: []*ppb.ChangeRequest{req}, - Pid: pid, + Pid: pid, } resp, err := pndClient.Set(ctx, r) if err != nil { @@ -166,4 +166,4 @@ func sendChangeRequest(addr, pid string, req *ppb.ChangeRequest) error { } log.Info(resp.String()) return nil -} \ No newline at end of file +} diff --git a/northbound/client/core.go b/northbound/client/core.go index 4a79fa8c9..cfe4ac9e5 100644 --- a/northbound/client/core.go +++ b/northbound/client/core.go @@ -11,4 +11,4 @@ func CoreClient(addr string, opts ...grpc.DialOption) (pb.CoreClient, error) { return nil, err } return pb.NewCoreClient(conn), nil -} \ No newline at end of file +} diff --git a/nucleus/southbound.go b/nucleus/southbound.go index 6421a8f53..cbf61d6c2 100644 --- a/nucleus/southbound.go +++ b/nucleus/southbound.go @@ -163,4 +163,4 @@ func (oc *OpenConfig) ID() uuid.UUID { return oc.id } -func (oc *OpenConfig)Type() types.Southbound {return types.Openconfig} \ No newline at end of file +func (oc *OpenConfig) Type() types.Southbound { return types.Openconfig } -- GitLab