VOL-1305 Separation of DHCP/AAA emulation part from OLT/ONUs emulation part
Change-Id: Idd2c6fb9bee7b7dca967b9bd49f6189343d1357f
diff --git a/device/device_olt.go b/device/device_olt.go
index b87bc53..41df918 100644
--- a/device/device_olt.go
+++ b/device/device_olt.go
@@ -45,7 +45,7 @@
ONU_DISCOVERED
)
-func CreateOlt(oltid uint32, npon uint32, nnni uint32) *Olt {
+func NewOlt(oltid uint32, npon uint32, nnni uint32) *Olt {
olt := Olt{}
olt.ID = oltid
olt.NumPonIntf = npon
@@ -69,7 +69,7 @@
return &olt
}
-func (olt *Olt)InitializeStatus(){
+func (olt *Olt) InitializeStatus() {
*olt.InternalState = PRE_ENABLE
olt.OperState = "up"
for i := uint32(0); i < olt.NumNniIntf; i++ {