diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-11 15:53:15 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-11 15:53:15 +0200 |
commit | 50d1811aa37b3f95c5ea65873e36fb5348496d93 (patch) | |
tree | 91ffce89141a2fc9a110d1b0371f5a7bfa3cf978 | |
parent | 5c94168a7fa6dc7a82e307240bf7fde8bbece82c (diff) | |
download | vyos-1x-50d1811aa37b3f95c5ea65873e36fb5348496d93.tar.gz vyos-1x-50d1811aa37b3f95c5ea65873e36fb5348496d93.zip |
wwan: T2241: bugfix VRF assignment
-rwxr-xr-x | src/conf_mode/interfaces-wirelessmodem.py | 2 |
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 |