aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py
diff options
context:
space:
mode:
authorrajendrajaiswal <rajendra.jaiswal@ericsson.com>2020-03-09 15:41:41 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2020-03-12 08:20:52 +0000
commit318533f684d73f94eb626902bcf7ff1dd3ad92e4 (patch)
tree01187e88dd3e83d261eaf6a05a025914f1e0aa03 /test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py
parent769a79125d17ded007894464a7151eafbd65f355 (diff)
Added python3 and Updated netopeer image
Change-Id: Ib7c21353cff267b847a4d1d7fdcb322e22772062 Issue-ID: INT-1312 Signed-off-by: rajendrajaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py')
-rw-r--r--test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py b/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py
index ecbd74417..2c6c587ed 100644
--- a/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py
+++ b/test/mocks/pmsh-pnf-sim/docker-compose/schedulepmjob.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
import time
import schedule
from pnf import PNF
@@ -6,7 +8,7 @@ import pnfconfig
if __name__ == "__main__":
try:
pnf = PNF()
- schedule.every(pnfconfig.rop).seconds.do(lambda: pnf.pm_job(pnfconfig.VES_IP, pnfconfig.VES_PORT))
+ schedule.every(pnfconfig.ROP).seconds.do(pnf.pm_job)
while True:
schedule.run_pending()
time.sleep(1)