[SEBA-434] Replacing omci-sim with omci-lib-go
Change-Id: I499afc9ec49bb483467ea93bd6ce3077dd0ccc6e
diff --git a/internal/bbr/devices/olt.go b/internal/bbr/devices/olt.go
index 2093520..b65a174 100644
--- a/internal/bbr/devices/olt.go
+++ b/internal/bbr/devices/olt.go
@@ -20,6 +20,7 @@
"context"
"encoding/hex"
"fmt"
+ "github.com/opencord/bbsim/internal/bbsim/types"
"io"
"reflect"
"time"
@@ -273,9 +274,9 @@
"Pkt": omciInd.Pkt,
}).Trace("Received Onu omci indication")
- msg := devices.Message{
- Type: devices.OmciIndication,
- Data: devices.OmciIndicationMessage{
+ msg := types.Message{
+ Type: types.OmciIndication,
+ Data: types.OmciIndicationMessage{
OnuSN: onu.SerialNumber,
OnuID: onu.ID,
OmciInd: omciInd,
@@ -329,9 +330,9 @@
service := s.(*devices.Service)
onu := service.Onu
- msg := devices.Message{
- Type: devices.OnuPacketIn,
- Data: devices.OnuPacketMessage{
+ msg := types.Message{
+ Type: types.OnuPacketIn,
+ Data: types.OnuPacketMessage{
IntfId: pktIndication.IntfId,
OnuId: onu.ID,
Packet: pkt,
@@ -362,9 +363,9 @@
}
// NOTE when we push the EAPOL flow we set the PortNo = OnuId for convenience sake
// BBsim responds setting the port number that was sent with the flow
- msg := devices.Message{
- Type: devices.OnuPacketIn,
- Data: devices.OnuPacketMessage{
+ msg := types.Message{
+ Type: types.OnuPacketIn,
+ Data: types.OnuPacketMessage{
IntfId: pktIndication.IntfId,
OnuId: pktIndication.PortNo,
Packet: pkt,