Page MenuHomeVyOS Platform

WWAN commit failed which simple config
Closed, ResolvedPublicBUG

Description

WWAN could not commit.
config is simple.
It seems function return 1 value, but we want to unpack to two value.

[edit interfaces wwan wwan0]
vyos@vyos# set address dh
dhcp    dhcpv6
[edit interfaces wwan wwan0]
vyos@vyos# set address dhcp
[edit interfaces wwan wwan0]
vyos@vyos# set apn internet
[edit interfaces wwan wwan0]
vyos@vyos# show
+address dhcp
+apn internet
[edit interfaces wwan wwan0]
vyos@vyos# commit
[ interfaces wwan wwan0 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report time:      2022-07-29 14:38:22
Image version:    VyOS 1.4-rolling-202207290217
Release train:    sagitta

Built by:         [email protected]
Built on:         Fri 29 Jul 2022 02:17 UTC
Build UUID:       057ad97b-5a3d-4bfe-b91f-f860bae83ba0
Build commit ID:  3327957356be99

Architecture:     x86_64
Boot via:         livecd
System type:      bare metal

Hardware vendor:  Accton
Hardware model:   Default string
Hardware S/N:     AI16073733
Hardware UUID:    03000200-0400-0500-0006-000700080009

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-wwan.py", line 184, in <module>
    c = get_config()
  File "/usr/libexec/vyos/conf_mode/interfaces-wwan.py", line 79, in get_config
    _, wwan['other_interfaces'] = conf.get_config_dict([], key_mangling=('-', '_'),
ValueError: not enough values to unpack (expected 2, got 1)



[[interfaces wwan wwan0]] failed
Commit failed
[edit interfaces wwan wwan0]

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202207290217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)