forked from IDeletedSystem64/iptables-deploy
sanity check, 3 second wait before ssh cmds
This commit is contained in:
parent
a22c509000
commit
969ae88425
@ -44,6 +44,8 @@ def deploy():
|
||||
sshc.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # so we don't get whined at and crash over a unrecognized host-key
|
||||
sshc.connect(cfg["server"],port=cfg["port"],username=cfg["ssh-user"],password=cfg["ssh-pw"])
|
||||
|
||||
time.sleep(3) # Sleep 3 seconds, so that the ONT is initialized enough
|
||||
|
||||
for command in shcommands:
|
||||
sshc.exec_command(command)
|
||||
print(f'{command} was executed on the ONT')
|
||||
|
Loading…
x
Reference in New Issue
Block a user