VOL-2752 fix alarm tests syntax for bbsimctl
Change-Id: I346c0eb8e71d12e50cc03f023bc0d674dac92df4
diff --git a/tests/functional/Voltha_AlarmTests.robot b/tests/functional/Voltha_AlarmTests.robot
index 9306692..c0b2326 100755
--- a/tests/functional/Voltha_AlarmTests.robot
+++ b/tests/functional/Voltha_AlarmTests.robot
@@ -71,7 +71,7 @@
# Note: Can only be raised, not cleared
[Documentation] Raise Activation Fail Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event ActivationFailure
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event ActivationFailure
... ${onu_sn} ONU_ACTIVATION_FAIL_RAISE_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_ACTIVATION_FAIL\.(\\d+) ${EMPTY}
@@ -81,7 +81,7 @@
Test RaiseDriftOfWindowAlarm
[Documentation] Raise Drift Of Window Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event DriftOfWindow
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event DriftOfWindow
... ${onu_sn} ONU_DRIFT_OF_WINDOW_RAISE_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_DRIFT_OF_WINDOW\.(\\d+) ${EMPTY}
@@ -91,7 +91,7 @@
Test ClearDriftOfWindowAlarm
[Documentation] Clear Drift Of Window Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event DriftOfWindow
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event DriftOfWindow
... ${onu_sn} ONU_DRIFT_OF_WINDOW_CLEAR_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_DRIFT_OF_WINDOW\.(\\d+) ${EMPTY}
@@ -101,7 +101,7 @@
Test RaiseDyingGaspAlarm
[Documentation] Raise Dying Gasp Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event DyingGasp
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event DyingGasp
... ${onu_sn} ONU_DYING_GASP_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_DYING\.(\\d+) ${EMPTY}
@@ -111,7 +111,7 @@
Test RaiseLopcMissAlarm
[Documentation] Raise LOPC_MISS Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LOPC_MISS
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LOPC_MISS
... ${onu_sn} ONU_LOPC_MISS_RAISE_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_LOPC_MISS\.(\\d+) ONU
@@ -121,7 +121,7 @@
Test ClearLopcMissAlarm
[Documentation] Clear LOPC_MISS Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LOPC_MISS
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LOPC_MISS
... ${onu_sn} ONU_LOPC_MISS_CLEAR_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_LOPC_MISS\.(\\d+) ONU
@@ -131,7 +131,7 @@
Test RaiseLopcMicErrorAlarm
[Documentation] Raise LOPC_MISS Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LOPC_MIC_ERROR
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LOPC_MIC_ERROR
... ${onu_sn} ONU_LOPC_MIC_ERROR_RAISE_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_LOPC_MIC_ERROR\.(\\d+) ONU
@@ -141,7 +141,7 @@
Test ClearLopcMicErrorAlarm
[Documentation] Clear LOPC_MISS Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LOPC_MIC_ERROR
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LOPC_MIC_ERROR
... ${onu_sn} ONU_LOPC_MIC_ERROR_CLEAR_EVENT
# Note: PON is the zero value of the subCategory field, and causes it to be not present
Verify Header ${header} Voltha.openolt.ONU_LOPC_MIC_ERROR\.(\\d+) ONU
@@ -151,7 +151,7 @@
Test RaiseLossOfBurstAlarm
[Documentation] Raise Loss Of Burst Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfBurst
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfBurst
... ${onu_sn} ONU_LOSS_OF_BURST_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_BURST\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_BURST_RAISE_EVENT
@@ -160,7 +160,7 @@
Test ClearLossOfBurstAlarm
[Documentation] Clear Loss Of Burst Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfBurst
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfBurst
... ${onu_sn} ONU_LOSS_OF_BURST_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_BURST\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_BURST_CLEAR_EVENT
@@ -169,7 +169,7 @@
Test RaiseLossOfFrameAlarm
[Documentation] Raise Loss Of Frame Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfFrame
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfFrame
... ${onu_sn} ONU_LOSS_OF_FRAME_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_FRAME\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_FRAME_RAISE_EVENT
@@ -178,7 +178,7 @@
Test ClearLossOfFrameAlarm
[Documentation] Clear Loss Of Frame Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfFrame
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfFrame
... ${onu_sn} ONU_LOSS_OF_FRAME_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_FRAME\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_FRAME_CLEAR_EVENT
@@ -187,7 +187,7 @@
Test RaiseLossOfKeySyncFailureAlarm
[Documentation] Raise Loss Of Key Sync Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfKeySyncFailure
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfKeySyncFailure
... ${onu_sn} ONU_LOSS_OF_KEY_SYNC_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_KEY_SYNC\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_KEY_SYNC_RAISE_EVENT
@@ -196,7 +196,7 @@
Test ClearLossOfKeySyncFailureAlarm
[Documentation] Clear Loss Of Key Sync Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfKeySyncFailure
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfKeySyncFailure
... ${onu_sn} ONU_LOSS_OF_KEY_SYNC_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_KEY_SYNC\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_KEY_SYNC_CLEAR_EVENT
@@ -205,7 +205,7 @@
Test RaiseLossOfOmciChannelAlarm
[Documentation] Raise Loss Of Omci Channel Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfOmciChannel
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfOmciChannel
... ${onu_sn} ONU_LOSS_OF_OMCI_CHANNEL_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_OMCI_CHANNEL\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_OMCI_CHANNEL_RAISE_EVENT
@@ -214,7 +214,7 @@
Test ClearLossOfOmciChannelAlarm
[Documentation] Clear Loss Of Omci Channel Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfOmciChannel
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfOmciChannel
... ${onu_sn} ONU_LOSS_OF_OMCI_CHANNEL_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_OMCI_CHANNEL\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_OMCI_CHANNEL_CLEAR_EVENT
@@ -223,7 +223,7 @@
Test RaiseLossOfPloamAlarm
[Documentation] Raise Loss Of Ploam Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfPloam
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfPloam
... ${onu_sn} ONU_LOSS_OF_PLOAM_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_PLOAM\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_PLOAM_RAISE_EVENT
@@ -232,7 +232,7 @@
Test ClearLossOfPloamAlarm
[Documentation] Clear Loss Of Ploam Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfPloam
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfPloam
... ${onu_sn} ONU_LOSS_OF_PLOAM_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_PLOAM\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_PLOAM_CLEAR_EVENT
@@ -241,7 +241,7 @@
Test RaiseLossOfSignalAlarm
[Documentation] Raise Loss Of Signal Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event LossOfSignal
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event LossOfSignal
... ${onu_sn} ONU_LOSS_OF_SIGNAL_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_SIGNAL\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_SIGNAL_RAISE_EVENT
@@ -250,7 +250,7 @@
Test ClearLossOfSignalAlarm
[Documentation] Clear Loss Of Signal Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event LossOfSignal
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event LossOfSignal
... ${onu_sn} ONU_LOSS_OF_SIGNAL_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_SIGNAL\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_SIGNAL_CLEAR_EVENT
@@ -259,8 +259,8 @@
Test RaisePonLossOfSignalAlarm
[Documentation] Raise Loss Of Signal Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event PonLossOfSignal
- ... ${onu_sn} OLT_LOSS_OF_SIGNAL_RAISE_EVENT
+ ${header} ${deviceEvent} Raise Olt Alarm And Get Event PonLossOfSignal
+ ... 0 OLT_LOSS_OF_SIGNAL_RAISE_EVENT
Verify Header ${header} Voltha.openolt.OLT_LOSS_OF_SIGNAL\.(\\d+) OLT
Should Be Equal ${deviceEvent}[deviceEventName] OLT_LOSS_OF_SIGNAL_RAISE_EVENT
Should Be Equal ${deviceEvent}[resourceId] ${parent_id}
@@ -268,8 +268,8 @@
Test ClearPonLossOfSignalAlarm
[Documentation] Clear Loss Of Signal Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event PonLossOfSignal
- ... ${onu_sn} OLT_LOSS_OF_SIGNAL_CLEAR_EVENT
+ ${header} ${deviceEvent} Clear Olt Alarm And Get Event PonLossOfSignal
+ ... 0 OLT_LOSS_OF_SIGNAL_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.OLT_LOSS_OF_SIGNAL\.(\\d+) OLT
Should Be Equal ${deviceEvent}[deviceEventName] OLT_LOSS_OF_SIGNAL_CLEAR_EVENT
Should Be Equal ${deviceEvent}[resourceId] ${parent_id}
@@ -278,7 +278,7 @@
# Not Implemented
[Documentation] Raise Processing Error Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Raise Alarm And Get Event ProcessingError
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event ProcessingError
... ${onu_sn} ONU_PROCESSING_ERROR_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_PROCESSING_ERROR\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_PROCESSING_ERROR_RAISE_EVENT
@@ -288,7 +288,7 @@
# Not Implemented
[Documentation] Clear Processing Error Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Clear Alarm And Get Event ProcessingError
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event ProcessingError
... ${onu_sn} ONU_PROCESSING_ERROR_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_PROCESSING_ERROR\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_PROCESSING_ERROR_CLEAR_EVENT
@@ -297,7 +297,7 @@
Test RaiseSignalDegradeAlarm
[Documentation] Raise Signal Degrade Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event SignalDegrade
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event SignalDegrade
... ${onu_sn} ONU_SIGNAL_DEGRADE_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_SIGNAL_DEGRADE\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNAL_DEGRADE_RAISE_EVENT
@@ -306,7 +306,7 @@
Test ClearSignalDegradeAlarm
[Documentation] Clear Signal Degrade Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event SignalDegrade
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event SignalDegrade
... ${onu_sn} ONU_SIGNAL_DEGRADE_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_SIGNAL_DEGRADE\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNAL_DEGRADE_CLEAR_EVENT
@@ -315,7 +315,7 @@
Test RaiseSignalsFailureAlarm
[Documentation] Raise Signals Fail Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Raise Alarm And Get Event SignalsFailure
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event SignalsFailure
... ${onu_sn} ONU_SIGNALS_FAIL_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_SIGNALS_FAIL\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNALS_FAIL_RAISE_EVENT
@@ -324,7 +324,7 @@
Test ClearSignalsFailureAlarm
[Documentation] Clear Signals Fail Alarm and verify event received
[Tags] active
- ${header} ${deviceEvent} Clear Alarm And Get Event SignalsFailure
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event SignalsFailure
... ${onu_sn} ONU_SIGNALS_FAIL_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_SIGNALS_FAIL\.(\\d+) ${EMPTY}
Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNALS_FAIL_CLEAR_EVENT
@@ -334,7 +334,7 @@
# Not Implemented
[Documentation] Raise Startup Failure Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Raise Alarm And Get Event StartupFailure
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event StartupFailure
... ${onu_sn} ONU_STARTUP_FAILURE_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_STARTUP_FAILURE\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_STARTUP_FAILURE_RAISE_EVENT
@@ -344,7 +344,7 @@
# Not Implemented
[Documentation] Clear Startup Failure Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Clear Alarm And Get Event StartupFailure
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event StartupFailure
... ${onu_sn} ONU_STARTUP_FAILURE_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_STARTUP_FAILURE\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_STARTUP_FAILURE_CLEAR_EVENT
@@ -354,7 +354,7 @@
# Not Implemented
[Documentation] Raise Transmission Interference Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Raise Alarm And Get Event TransmissionInterference
+ ${header} ${deviceEvent} Raise Onu Alarm And Get Event TransmissionInterference
... ${onu_sn} ONU_TRANSMISSION_INTERFERENCE_RAISE_EVENT
Verify Header ${header} Voltha.openolt.ONU_TRANSMISSION_INTERFERENCE\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_TRANSMISSION_INTERFERENCE_RAISE_EVENT
@@ -364,7 +364,7 @@
# Not Implemented
[Documentation] Clear Transmission Interference Alarm and verify event received
[Tags] not-active
- ${header} ${deviceEvent} Clear Alarm And Get Event TransmissionInterference
+ ${header} ${deviceEvent} Clear Onu Alarm And Get Event TransmissionInterference
... ${onu_sn} ONU_TRANSMISSION_INTERFERENCE_CLEAR_EVENT
Verify Header ${header} Voltha.openolt.ONU_TRANSMISSION_INTERFERENCE\.(\\d+) ONU
Should Be Equal ${deviceEvent}[deviceEventName] ONU_TRANSMISSION_INTERFERENCE_CLEAR_EVENT
@@ -391,36 +391,72 @@
Run Keyword If ${teardown_device} Execute ONOS CLI Command ${ONOS_SSH_IP} ${ONOS_SSH_PORT}
... device-remove ${of_id}
-Raise Alarm And Get Event
+# Onu Alarms
+
+Raise Onu Alarm And Get Event
[Documentation] Raise an Alarm and return event
[Arguments] ${name} ${sn} ${deviceEventName}
${since} Get Current Time
- Raise Alarm ${name} ${sn}
+ Raise Onu Alarm ${name} ${sn}
${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since}
${LastEventPostTimestamp} Set Variable ${since}
Set Suite Variable ${LastEventPostTimestamp}
[return] ${header} ${deviceEvent}
-Clear Alarm And Get Event
+Clear Onu Alarm And Get Event
[Documentation] Clear an Alarm and return event
[Arguments] ${name} ${sn} ${deviceEventName}
${since} Get Current Time
- Clear Alarm ${name} ${sn}
+ Clear Onu Alarm ${name} ${sn}
${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since}
${LastEventPostTimestamp} Set Variable ${since}
Set Suite Variable ${LastEventPostTimestamp}
[return] ${header} ${deviceEvent}
-Raise Alarm
+Raise Onu Alarm
[Documentation] Raise an Alarm
[Arguments] ${name} ${sn}
- ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl alarm raise ${name} ${sn}
+ ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl onu alarms raise ${name} ${sn}
Should Contain ${raiseOutput} Alarm Indication Sent
-Clear Alarm
+Clear Onu Alarm
[Documentation] Raise an Alarm
[Arguments] ${name} ${sn}
- ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl alarm clear ${name} ${sn}
+ ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl onu alarms clear ${name} ${sn}
+ Should Contain ${raiseOutput} Alarm Indication Sent
+
+# Olt Alarms
+
+Raise Olt Alarm And Get Event
+ [Documentation] Raise an Alarm and return event
+ [Arguments] ${name} ${intf_id} ${deviceEventName}
+ ${since} Get Current Time
+ Raise Olt Alarm ${name} ${intf_id}
+ ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since}
+ ${LastEventPostTimestamp} Set Variable ${since}
+ Set Suite Variable ${LastEventPostTimestamp}
+ [return] ${header} ${deviceEvent}
+
+Clear Olt Alarm And Get Event
+ [Documentation] Clear an Alarm and return event
+ [Arguments] ${name} ${intf_id} ${deviceEventName}
+ ${since} Get Current Time
+ Clear Olt Alarm ${name} ${intf_id}
+ ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since}
+ ${LastEventPostTimestamp} Set Variable ${since}
+ Set Suite Variable ${LastEventPostTimestamp}
+ [return] ${header} ${deviceEvent}
+
+Raise Olt Alarm
+ [Documentation] Raise an Alarm
+ [Arguments] ${name} ${intf_id}
+ ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl olt alarms raise ${name} ${intf_id}
+ Should Contain ${raiseOutput} Alarm Indication Sent
+
+Clear Olt Alarm
+ [Documentation] Raise an Alarm
+ [Arguments] ${name} ${intf_id}
+ ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} bbsimctl olt alarms clear ${name} ${intf_id}
Should Contain ${raiseOutput} Alarm Indication Sent
Get Device Event