summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-18 21:12:45 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-23 20:44:02 +0100
commit704fbfd32ef14ab1c79dc9bdb17c409574f189c9 (patch)
tree0ad4263c5cff475ac52a981eef5966e694277f66 /src
parentdfa2f0e8ecd8a117bf47b64d7099d613f487d799 (diff)
downloadvyos-1x-704fbfd32ef14ab1c79dc9bdb17c409574f189c9.tar.gz
vyos-1x-704fbfd32ef14ab1c79dc9bdb17c409574f189c9.zip
wireless: T1627: RADIUS servers must have a key specified
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 3b270a064..9cfc0bfc5 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -1255,6 +1255,10 @@ def verify(wifi):
if wifi['sec_wpa'] and not (wifi['sec_wpa_passphrase'] or wifi['sec_wpa_radius']):
raise ConfigError('Misssing WPA key or RADIUS server')
+ for radius in wifi['sec_wpa_radius']:
+ if not radius['key']:
+ raise ConfigError('Misssing RADIUS shared secret key for server: {}'.format(radius['server']))
+
conf = Config()
if not conf.exists('system wifi-regulatory-domain'):
raise ConfigError('Wireless regulatory domain is mandatory.\n' \