summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wirelessmodem.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-11 15:53:15 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-11 15:53:15 +0200
commit50d1811aa37b3f95c5ea65873e36fb5348496d93 (patch)
tree91ffce89141a2fc9a110d1b0371f5a7bfa3cf978 /src/conf_mode/interfaces-wirelessmodem.py
parent5c94168a7fa6dc7a82e307240bf7fde8bbece82c (diff)
downloadvyos-1x-50d1811aa37b3f95c5ea65873e36fb5348496d93.tar.gz
vyos-1x-50d1811aa37b3f95c5ea65873e36fb5348496d93.zip
wwan: T2241: bugfix VRF assignment
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