From 50d1811aa37b3f95c5ea65873e36fb5348496d93 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 11 Jun 2020 15:53:15 +0200 Subject: wwan: T2241: bugfix VRF assignment --- src/conf_mode/interfaces-wirelessmodem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/interfaces-wirelessmodem.py') 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 -- cgit v1.2.3