fix ssh-reconnect error
Change-Id: If11d82e25a703e628c8f436d647b9f430a8e7056
diff --git a/libraries/onos.robot b/libraries/onos.robot
index c0fde9b..66904b9 100755
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -65,7 +65,7 @@
${pass}= Get From Dictionary ${connection_entry} pass
${oldconndata}= Get Connection ${connection_entry.conn_id}
SSHLibrary.Switch Connection ${connection_entry.conn_id}
- SSHLibrary.Close Connection
+ Run Keyword And Ignore Error SSHLibrary.Close Connection
${conn_id}= SSHLibrary.Open Connection ${oldconndata.host} port=${oldconndata.port}
... timeout=300s alias=ONOS_SSH
SSHLibrary.Login ${user} ${pass}
@@ -80,7 +80,7 @@
${connection_alias}= Get From Dictionary ${connection_entry} conn_id
${oldconndata}= Get Connection ${connection_entry.conn_id}
SSHLibrary.Switch Connection ${connection_alias}
- SSHLibrary.Close Connection
+ Run Keyword And Ignore Error SSHLibrary.Close Connection
Remove From List ${connection_list} ${connection_list_id}
Set Global Variable ${connection_list}