optimize keyword Wait for ONU Adapter Reconcile

Keyword 'Wait for Onu Adapter Reconcile' was removed and new keyword
'Reconcile Onu Adapter' was introduced instead. New keyword does all
needed actions for reconcilation:
- reboot onu-adapter
- check onu-adapter was really rebooted by ready timestamp comparison
- validate connection rw-core <-> onu-adapter established
- check accessability of onu-adapter
- validate oper-state is same as before reconcile

Change-Id: Ib9e97f2e3662ef34fd658e89270e35ba44f3ee01
diff --git a/libraries/k8s.robot b/libraries/k8s.robot
index d656dfd..f9ce0f3 100755
--- a/libraries/k8s.robot
+++ b/libraries/k8s.robot
@@ -458,6 +458,14 @@
         ...    Pods Are Ready By Label    ${namespace}    app    ${app_name}
     END
 
+Get Pod Ready Timestamp by Label
+    [Arguments]    ${namespace}    ${key}    ${value}
+    [Documentation]    delivers timestamp of pod was ready
+    ${cmd}=    Catenate    kubectl -n ${namespace} get pods -l ${key}=${value} -o=json | jq -r
+    ...    ".items[].status.containerStatuses[].state.running.startedAt"
+    ${output}=    Run   ${cmd}
+    [Return]    ${output}
+
 Check Expected Running Pods Number By Label
     [Arguments]    ${namespace}    ${key}    ${value}    ${number}
     [Documentation]    Succeeds if the desired pod has expected number replicas
@@ -479,6 +487,13 @@
     ...    kubectl get pods -n ${namespace} | grep ${name} | awk 'NR==1{print $4}'
     [Return]    ${count}
 
+Get Pod Age
+    [Arguments]    ${namespace}    ${name}
+    [Documentation]    Returns the age for the given Pod
+    ${rc}    ${age}=    Run and Return Rc and Output
+    ...    kubectl get pods -n ${namespace} | grep ${name} | awk 'NR==1{print $5}'
+    [Return]    ${age}
+
 Verify ONOS Pod Restart
     [Arguments]    ${restarted}=True
     [Documentation]    Verifies if any of the given ONOS instances restarted