New assertion to validate dhcp allocations in ONOS for TT services

Change-Id: I52c4bf62237cd6201ccecda8494a3a2914e16945
diff --git a/libraries/utils.robot b/libraries/utils.robot
index 663265f..abb42ab 100644
--- a/libraries/utils.robot
+++ b/libraries/utils.robot
@@ -313,6 +313,8 @@
     ...    ${src['ip']}    ${src['user']}    ${src['pass']}    ${src['container_type']}    ${src['container_name']}
     ...    ${dst['dp_iface_name']}    ${dst['ip']}    ${dst['user']}    ${dst['pass']}    ${dst['container_type']}
     ...    ${dst['container_name']}
+    Run Keyword And Continue On Failure    Wait Until Keyword Succeeds    ${timeout}    2s
+    ...    Validate Subscriber DHCP Allocation    ${ONOS_SSH_IP}    ${ONOS_SSH_PORT}    ${onu_port}
     Run Keyword and Ignore Error    Get Device Output from Voltha    ${onu_device_id}
     Run Keyword and Ignore Error    Collect Logs
 
@@ -809,6 +811,15 @@
         ...    ${dst['container_type']}    ${dst['container_name']}
     END
 
+Clean dhclient
+    [Documentation]    Kills dhclient processes only for all RGs
+    FOR    ${I}    IN RANGE    0    ${num_onus}
+        ${src}=    Set Variable    ${hosts.src[${I}]}
+        ${dst}=    Set Variable    ${hosts.dst[${I}]}
+        Execute Remote Command    sudo pkill dhclient    ${src['ip']}
+        ...    ${src['user']}    ${src['pass']}    ${src['container_type']}    ${src['container_name']}
+    END
+
 Clean WPA Process
     [Documentation]    Kills wpa_supplicant processes only for all RGs
     FOR    ${I}    IN RANGE    0    ${num_onus}