summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-01-06 05:04:42 +0100
committerDaniil Baturin <daniil@baturin.org>2019-01-06 05:04:42 +0100
commitbdf528272a0d7e40dc46ada08ccad75bd8debae9 (patch)
tree024e0382b77755f1f8b54156a3183f1fbc9b6a4a /src
parenta174b2c76b538a670df8a3b798631d7be4cb83b5 (diff)
parent2d6be4238e3c46ae84e8b44cad9e3d60600a882c (diff)
downloadvyos-1x-bdf528272a0d7e40dc46ada08ccad75bd8debae9.tar.gz
vyos-1x-bdf528272a0d7e40dc46ada08ccad75bd8debae9.zip
Merge branch 'crux' of https://github.com/vyos/vyos-1x into crux
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 026f6d2f7..d21a2b603 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -21,6 +21,7 @@ import os
import shutil
import stat
import pwd
+import time
import jinja2
import random
@@ -793,6 +794,9 @@ def apply(snmp):
# snmpd, which we see when a magic line appears in this file.
snmpReady = False
while not snmpReady:
+ while not os.path.exists(config_file_user):
+ time.sleep(1)
+
with open(config_file_user, 'r') as f:
for line in f:
# Search for our magic string inside the file