Skip to content
Snippets Groups Projects
Commit 730bdec6 authored by Malte Bauch's avatar Malte Bauch
Browse files

removed unnecessary logs

parent 57b8bb9e
No related branches found
No related tags found
3 merge requests!97Resolve "PND handling via CLI and database",!91"Overhaul Architecture",!90Develop
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -20,6 +20,7 @@ import (
pb "code.fbi.h-da.de/cocsn/gosdn/api/proto"
"code.fbi.h-da.de/cocsn/gosdn/forks/goarista/gnmi"
gpb "github.com/openconfig/gnmi/proto/gnmi"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/health"
......@@ -211,11 +212,13 @@ func (s *server) AddDevice(ctx context.Context, in *pb.AddDeviceRequest) (*pb.Ad
}
sbi := s.core.principalNetworkDomains[uuidPND].GetSBIs()["default"]
//TODO: could the transport and the related config be created in device?
transport := &Gnmi{SetNode: sbi.SetNode()}
cfg := &gnmi.Config{
Addr: in.Device.Address,
Username: in.Device.Username,
Password: in.Device.Password,
Encoding: gpb.Encoding_JSON_IETF,
}
transport.SetConfig(cfg)
......@@ -261,7 +264,6 @@ func (s *server) HandleDeviceGetRequest(ctx context.Context, in *pb.DeviceGetReq
if err != nil {
return &pb.DeviceGetReply{Message: err.Error()}, err
}
log.Info(device)
d, err := json.MarshalIndent(device, "", "\t")
if err != nil {
......
......@@ -34,9 +34,6 @@ func (c *Core) Initialize(IsRunningChannel chan bool) {
}
c.AttachDatabase()
c.CreateSouthboundInterfaces()
for sbi := range c.southboundInterfaces {
log.Info(sbi)
}
c.IsRunning = IsRunningChannel
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment