Test-Voltha:
    Introducing new test scenarios for dhcp and tls
    with multiple tries and multiple times toggling of olt and onu ports.

Change-Id: Ic5f21d66aa6eb66f5ed8574ffa0507e91a4f32cd
diff --git a/src/test/utils/VolthaCtrl.py b/src/test/utils/VolthaCtrl.py
index 8d88d9f..ccf0c65 100644
--- a/src/test/utils/VolthaCtrl.py
+++ b/src/test/utils/VolthaCtrl.py
@@ -246,6 +246,22 @@
                 return False
         return True
 
+    def restart_device(self, device_id):
+        log.info('Restarting olt or onu device %s' %(device_id))
+        disable_url = '{}/local/devices/{}/restart'.format(self.rest_url, device_id)
+        resp = requests.post(disable_url)
+        if resp.ok is not True or resp.status_code != 200:
+            return False
+        return True
+
+    def pause_device(self, device_id):
+        log.info('Restarting olt or onu device %s' %(device_id))
+        disable_url = '{}/local/devices/{}/pause'.format(self.rest_url, device_id)
+        resp = requests.post(disable_url)
+        if resp.ok is not True or resp.status_code != 200:
+            return False
+        return True
+
     def get_operational_status(self, device_id):
         url = '{}/local/devices'.format(self.rest_url)
         log.info('Checking operational status for device %s' %(device_id))