#opt: retrieve "number-of-alarms" and check if the number increases after the mute of the ODU
Log${alarms}console=yes
Mute ODU${t}${transmitter["testInterface"]}#Interface name to mute #On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
${SNR}=Get Iface Metrics${m}${par["testInterface"]}"actual-snir"#99.8 for Nokia
# Should Be Equal ${SNR} 0
${ok}=Evaluatefloat(${SNR}) < 15
${ok_nokia}=Evaluatefloat(${SNR}) == 99.8
Should Be True${ok}msg=SNR (${SNR}) must be less than 15
Close Current Session${m}
Close Current Session${t}
@@ -63,9 +66,10 @@ Mute ODU and Receive RSL Alarms
Unmute ODU${t}${transmitter["testInterface"]}#Interface name to mute #On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transmitter["testInterface"]}${transmitter["maxTxPower"]}
${m}=Connect With Key${par["host"]}${par["port"]}${par["username"]}${par["key_filename"]}
#${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]}
${t}=Connect With Key${transimitter["host"]}${transimitter["port"]}${transimitter["username"]}${transimitter["key_filename"]}
#${t}= Connect With Credentials ${transimitter["host"]} ${transimitter["port"]} ${transimitter["username"]} ${transimitter["password"]}
Set TX Power${t}${transimitter["testInterface"]}${transimitter["maxTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
${t}=Connect With Key${transmitter["host"]}${transmitter["port"]}${transmitter["username"]}${transmitter["key_filename"]}
#${t}= Connect With Credentials ${transmitter["host"]} ${transmitter["port"]} ${transmitter["username"]} ${transmitter["password"]}
Set TX Power${t}${transmitter["testInterface"]}${transmitter["maxTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transimitter["testInterface"]}${transimitter["minTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transmitter["testInterface"]}${transmitter["minTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
${m}=Connect With Key${par["host"]}${par["port"]}${par["username"]}${par["key_filename"]}
# ${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]}
${t}=Connect With Key${transimitter["host"]}${transimitter["port"]}${transimitter["username"]}${transimitter["key_filename"]}
# ${t}= Connect With Credentials ${transimitter["host"]} ${transimitter["port"]} ${transimitter["username"]} ${transimitter["password"]}
Set TX Power${t}${transimitter["testInterface"]}${transimitter["maxTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
${t}=Connect With Key${transmitter["host"]}${transmitter["port"]}${transmitter["username"]}${transmitter["key_filename"]}
# ${t}= Connect With Credentials ${transmitter["host"]} ${transmitter["port"]} ${transmitter["username"]} ${transmitter["password"]}
Set TX Power${t}${transmitter["testInterface"]}${transmitter["maxTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transimitter["testInterface"]}${transimitter["minTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transmitter["testInterface"]}${transmitter["minTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
FailNo notification received within timeout period (${TIMEOUT}s)
END
Should Be True${final_SNR}<${init_SNR}
Close Current Session${m}
Close Current Session${t}
Reaction to Alarm
[Arguments]${par}${transimitter}
[Arguments]${par}${transmitter}
${m}=Connect With Key${par["host"]}${par["port"]}${par["username"]}${par["key_filename"]}
# ${m}= Connect With Credentials ${par["host"]} ${par["port"]} ${par["username"]} ${par["password"]}
${t}=Connect With Key${transimitter["host"]}${transimitter["port"]}${transimitter["username"]}${transimitter["key_filename"]}
# ${t}= Connect With Credentials ${transimitter["host"]} ${transimitter["port"]} ${transimitter["username"]} ${transimitter["password"]}
Set TX Power${m}${transimitter["testInterface"]}${transimitter["maxTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set RSL Threshold${m}${par["testInterface"]}-20.0
${resp}=Evaluate${m}.create_subscription()
Set TX Power${t}${transimitter["testInterface"]}${transimitter["minTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
${t}=Connect With Key${transmitter["host"]}${transmitter["port"]}${transmitter["username"]}${transmitter["key_filename"]}
# ${t}= Connect With Credentials ${transmitter["host"]} ${transmitter["port"]} ${transmitter["username"]} ${transmitter["password"]}
Set TX Power${t}${transmitter["testInterface"]}${transmitter["maxTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transmitter["testInterface"]}${transmitter["minTxPower"]}#On transmitter node: need to connect to the TX and change ${m} with the reference to the transmitter
Set TX Power${t}${transimitter["testInterface"]}${transimitter["maxTxPower"]}#On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
# Safely evaluate the Python object type.
# Using $notif (not ${notif}) avoids Robot expanding the object into an invalid string.