SEBA-924 reboot OLT in active state
Change-Id: I60719853011bdcbf19694d19ee2c7a0db6d917e0
diff --git a/internal/bbsim/devices/olt.go b/internal/bbsim/devices/olt.go
index 1ccb5be..1832aeb 100644
--- a/internal/bbsim/devices/olt.go
+++ b/internal/bbsim/devices/olt.go
@@ -106,7 +106,8 @@
{Name: "initialize", Src: []string{"created", "deleted"}, Dst: "initialized"},
{Name: "enable", Src: []string{"initialized", "disabled"}, Dst: "enabled"},
{Name: "disable", Src: []string{"enabled"}, Dst: "disabled"},
- {Name: "delete", Src: []string{"disabled"}, Dst: "deleted"},
+ //delete event in enabled state below is for reboot OLT case.
+ {Name: "delete", Src: []string{"disabled", "enabled"}, Dst: "deleted"},
},
fsm.Callbacks{
"enter_state": func(e *fsm.Event) {