summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-18 17:58:10 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-18 18:01:50 +0100
commit7650052e1725cc3897488c16c5088c695fc79843 (patch)
tree1aac573885df4e6c6d7900f0b48db12a3fee250f /src/conf_mode
parent676e0a7b282b6408f4e91fbdedab8b95c4a5f2af (diff)
downloadvyos-1x-7650052e1725cc3897488c16c5088c695fc79843.tar.gz
vyos-1x-7650052e1725cc3897488c16c5088c695fc79843.zip
wwan: T3795: do not fail config-load when signal is missing
(cherry picked from commit 4747e944233de14b5c66ca3d7004d1174554681a)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-wwan.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-wwan.py b/src/conf_mode/interfaces-wwan.py
index faa5eb628..f013e5411 100755
--- a/src/conf_mode/interfaces-wwan.py
+++ b/src/conf_mode/interfaces-wwan.py
@@ -25,7 +25,9 @@ from vyos.configverify import verify_interface_exists
from vyos.configverify import verify_vrf
from vyos.ifconfig import WWANIf
from vyos.util import cmd
+from vyos.util import call
from vyos.util import dict_search
+from vyos.util import DEVNULL
from vyos import ConfigError
from vyos import airbag
airbag.enable()
@@ -88,7 +90,7 @@ def apply(wwan):
options += ',user={user},password={password}'.format(**wwan['authentication'])
command = f'{base_cmd} --simple-connect="{options}"'
- cmd(command)
+ call(command, stdout=DEVNULL)
w.update(wwan)
return None