VOL-1357 BBSim - OMCI status management
AddFlow() triggers the update of ONU status into ONU_OMCIACTIVE.
The ONU status update is notified to the mediator, and then, it activates the tester.
Change-Id: I1a077026b872868a74a4b5d9849b65cf52baeaa4
diff --git a/device/device_onu.go b/device/device_onu.go
index c1a7aad..79a4be2 100644
--- a/device/device_onu.go
+++ b/device/device_onu.go
@@ -26,8 +26,9 @@
)
const (
- ONU_PREACTIVATED DeviceState = iota
+ ONU_INACTIVE DeviceState = iota //TODO: Each stage name should be more accurate
ONU_ACTIVE
+ ONU_OMCIACTIVE
)
type Onu struct {
@@ -49,7 +50,7 @@
onus := []*Onu{}
for i := 0; i < int(nonus); i++ {
onu := Onu{}
- onu.InternalState = ONU_PREACTIVATED
+ onu.InternalState = ONU_INACTIVE
onu.mu = &sync.Mutex{}
onu.IntfID = intfid
onu.OltID = oltid
@@ -64,7 +65,7 @@
func (onu *Onu) Initialize() {
onu.OperState = "up"
- onu.InternalState = ONU_PREACTIVATED
+ onu.InternalState = ONU_INACTIVE
}
func ValidateONU(targetonu openolt.Onu, regonus map[uint32][]*Onu) bool {