summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/salt-minion.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_mode/salt-minion.py b/src/conf_mode/salt-minion.py
index 89df3b48a..d296bc202 100755
--- a/src/conf_mode/salt-minion.py
+++ b/src/conf_mode/salt-minion.py
@@ -25,6 +25,7 @@ from vyos.configdict import dict_merge
from vyos.template import render
from vyos.util import call
from vyos.util import chown
+from vyos.verify import verify_interface_exists
from vyos.xml import defaults
from vyos import ConfigError
@@ -66,6 +67,12 @@ def get_config(config=None):
return salt
def verify(salt):
+ if not salt:
+ return None
+
+ if 'source_interface' in salt:
+ verify_interface_exists(salt['source_interface'])
+
return None
def generate(salt):