SEBA-336 - Gemport handling for packet-in
Change-Id: Iec3ca370d32d064b186f613480632a824285f9a8
diff --git a/core/grpc_service.go b/core/grpc_service.go
index ac0c57d..cd8a108 100644
--- a/core/grpc_service.go
+++ b/core/grpc_service.go
@@ -100,13 +100,8 @@
}
func (s *Server) OmciMsgOut(c context.Context, msg *openolt.OmciMsg) (*openolt.Empty, error) {
- var resp OmciMsg
logger.Debug("OLT %d receives OmciMsgOut to IF %v (ONU-ID: %v) pkt:%x.", s.Olt.ID, msg.IntfId, msg.OnuId, msg.Pkt)
- resp.IntfId = msg.IntfId
- resp.OnuId = msg.OnuId
- resp.Pkt = make([]byte, len(msg.Pkt))
- copy(resp.Pkt, msg.Pkt)
- s.omciOut <- resp
+ s.omciOut <- *msg
return new(openolt.Empty), nil
}