VOL-1121: made all ponsim gRPC connections unencrypted
Change-Id: I1c390d2668224208b843cbbc12181c7ec258714a
diff --git a/ponsim/v2/ponsim.go b/ponsim/v2/ponsim.go
index 20f8b86..eab6a54 100644
--- a/ponsim/v2/ponsim.go
+++ b/ponsim/v2/ponsim.go
@@ -19,13 +19,14 @@
"context"
"flag"
"fmt"
- "github.com/opencord/voltha/ponsim/v2/common"
- "github.com/opencord/voltha/ponsim/v2/core"
- "github.com/opencord/voltha/ponsim/v2/grpc"
"log"
"os"
"os/signal"
"path"
+
+ "github.com/opencord/voltha/ponsim/v2/common"
+ "github.com/opencord/voltha/ponsim/v2/core"
+ "github.com/opencord/voltha/ponsim/v2/grpc"
)
// TODO: Cleanup logs
@@ -202,7 +203,7 @@
func (s *PonSimService) Start(ctx context.Context) {
// GRPC server needs to be secure.
// Otherwise communication between adapter and simulator does not occur
- s.server = grpc.NewGrpcServer(s.device.GetAddress(), s.device.GetPort(), certs, true)
+ s.server = grpc.NewGrpcServer(s.device.GetAddress(), s.device.GetPort(), certs, false)
// Add GRPC services
s.server.AddCommonService(s.device)