summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wirelessmodem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/interfaces-wirelessmodem.py')
-rwxr-xr-xsrc/conf_mode/interfaces-wirelessmodem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-wirelessmodem.py b/src/conf_mode/interfaces-wirelessmodem.py
index c05ca684e..35e3c583c 100755
--- a/src/conf_mode/interfaces-wirelessmodem.py
+++ b/src/conf_mode/interfaces-wirelessmodem.py
@@ -147,7 +147,7 @@ def verify(wwan):
if not os.path.exists('{device}'.format(**wwan)):
raise ConfigError('Device "{device}" does not exist'.format(**wwan))
- if wwan['vrf'] not in interfaces():
+ if wwan['vrf'] and wwan['vrf'] not in interfaces():
raise ConfigError('VRF "{vrf}" does not exist'.format(**wwan))
return None