Page MenuHomeVyOS Platform

Configuring wwan with no modem installed causes an unhandled exception
Open, Requires assessmentPublicBUG

Description

An unhandled exception appears when setting up WWAN interface with no modem present in the system

vyos@vyos# commit
[ interfaces wwan wwan0 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 157, in run_script
    script.apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_wwan.py", line 152, in apply
    cmd(f'{base_cmd} --simple-disconnect')
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 189, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: None mmcli --modem 0 --simple-disconnect
returned: 
exit code: 1

[[interfaces wwan wwan0]] failed
Commit failed

Actual error:

vyos@vyos# mmcli --modem 0 --simple-disconnect
error: couldn't find modem

How to reproduce:

set interfaces wwan wwan0 address 'dhcp'
set interfaces wwan wwan0 apn 'internet.telekom'
commit

Details

Version
2025.12.06-0019-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)