Start ponsim as well as part of voltha services start

Change-Id: I4d9f435ad0204ce477f24096ad91741f14ef3cf6
diff --git a/src/test/utils/VolthaCtrl.py b/src/test/utils/VolthaCtrl.py
index 5b57baf..c550020 100644
--- a/src/test/utils/VolthaCtrl.py
+++ b/src/test/utils/VolthaCtrl.py
@@ -84,6 +84,16 @@
         else:
             print('VOLTHA ofagent is already running. Skipped start')
 
+        ponsim_start_cmd = "cd {} && sh -c '. ./env.sh && \
+        nohup python ponsim/main.py -v >/tmp/ponsim.log 2>&1 &'".format(self.voltha_loc)
+        if not self.service_running('python ponsim/main.py'):
+            ret = os.system(ponsim_start_cmd)
+            if ret != 0:
+                raise Exception('PONSIM not started. Failed with return code %d' %ret)
+            time.sleep(3)
+        else:
+            print('PONSIM already running. Skipped start')
+
     def service_running(self, pattern):
         st, _ = getstatusoutput('pgrep -f "{}"'.format(pattern))
         return True if st == 0 else False
@@ -102,6 +112,7 @@
         self.kill_service('python voltha/main.py')
         self.kill_service('python ofagent/main.py')
         self.kill_service('python chameleon/main.py')
+        self.kill_service('python ponsim/main.py')
         service_stop_cmd = 'docker-compose -f {} down'.format(self.compose_file_loc)
         os.system(service_stop_cmd)