blob: ecbd74417c4c13e625a9d5d7578599c7d8116bf7 [file] [log] [blame]
rajendrajaiswal6a61ad82019-12-16 14:24:02 +00001import time
2import schedule
3from pnf import PNF
4import pnfconfig
5
6if __name__ == "__main__":
7 try:
8 pnf = PNF()
9 schedule.every(pnfconfig.rop).seconds.do(lambda: pnf.pm_job(pnfconfig.VES_IP, pnfconfig.VES_PORT))
10 while True:
11 schedule.run_pending()
12 time.sleep(1)
13 except Exception as error:
14 print(error)