count = 0
import reboot
+from reboot import pcu_name
import soltesz
import plc
import threadpool
import syncplcdb
-def pcu_name(pcu):
- if pcu['hostname'] is not None and pcu['hostname'] is not "":
- return pcu['hostname']
- elif pcu['ip'] is not None and pcu['ip'] is not "":
- return pcu['ip']
- else:
- return None
-
def nmap_portstatus(status):
ps = {}
l_nmap = status.split()