[VOL-4627] Add COMBO pon support with configuration file
Change-Id: Ib7eec5640dfd5e5eb39e722ec7d2c8ee2b59f060
diff --git a/internal/bbsim/devices/pon.go b/internal/bbsim/devices/pon.go
index c1b3257..068a250 100644
--- a/internal/bbsim/devices/pon.go
+++ b/internal/bbsim/devices/pon.go
@@ -22,6 +22,7 @@
"sync"
"github.com/looplab/fsm"
+ "github.com/opencord/bbsim/internal/common"
"github.com/opencord/voltha-protos/v5/go/openolt"
log "github.com/sirupsen/logrus"
)
@@ -44,6 +45,7 @@
type PonPort struct {
// BBSIM Internals
ID uint32
+ Technology common.PonTechnology
NumOnu int
Onus []*Onu
Olt *OltDevice
@@ -66,11 +68,11 @@
}
// CreatePonPort creates pon port object
-func CreatePonPort(olt *OltDevice, id uint32) *PonPort {
-
+func CreatePonPort(olt *OltDevice, id uint32, tech common.PonTechnology) *PonPort {
ponPort := PonPort{
NumOnu: olt.NumOnuPerPon,
ID: id,
+ Technology: tech,
Type: "pon",
Olt: olt,
Onus: []*Onu{},