Page MenuHomeVyOS Platform

deleting IPv6 autoconf throws an exception
Closed, ResolvedPublicBUG

Description

Deleting IPv6 autoconf throws an exception
Version:

Version:          VyOS 1.4-stable-202510162108
Release train:    sagitta
Release flavor:   generic

Built by:         autobuild@vyos.net
Built on:         Thu 16 Oct 2025 21:08 UTC
Build UUID:       95450797-41e8-4b3e-a19f-13d70efe69c3
Build commit ID:  ec2afedf34ae24

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    1b95bbd4-5bf0-446a-838b-17bf12a36d5d

Copyright:        VyOS maintainers and contributors

Configuration:

set interfaces ethernet eth1 ipv6 address autoconf

show interfaces

vyos@vyos# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                           MAC                VRF        MTU  S/L    Description
-----------  -----------------------------------  -----------------  -------  -----  -----  -------------
eth0         192.168.139.133/24                   0c:95:bb:d4:00:00  default   1500  u/u
eth1         2001:db8:6783:57:e95:bbff:fed4:1/64  0c:95:bb:d4:00:01  default   1500  u/u
eth2         -                                    0c:95:bb:d4:00:02  default   1500  u/D
eth3         -                                    0c:95:bb:d4:00:03  default   1500  u/D
lo           127.0.0.1/8                          00:00:00:00:00:00  default  65536  u/u
             ::1/128

Deleting ipv6 autoconf

vyos@vyos# delete interfaces ethernet eth1 ipv6 address autoconf
[edit]
vyos@vyos# commit
[ interfaces ethernet eth1 ]
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:      2025-10-17 11:19:32
Image version:    VyOS 1.4-stable-202510162108
Release train:    sagitta

Built by:         autobuild@vyos.net
Built on:         Thu 16 Oct 2025 21:08 UTC
Build UUID:       95450797-41e8-4b3e-a19f-13d70efe69c3
Build commit ID:  ec2afedf34ae24

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    1b95bbd4-5bf0-446a-838b-17bf12a36d5d

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 467, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 444, in apply
    e.update(ethernet)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/ethernet.py", line 469, in update
    super().update(config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1619, in update
    self.del_addr('dhcp')
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1245, in del_addr
    self.set_dhcp(False)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1454, in set_dhcp
    self.del_addr(address)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1249, in del_addr
    self._cmd(f'ip addr del "{addr}" dev "{self.ifname}"')
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 54, in _cmd
    return cmd(command, self.debug)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 155, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip addr del "2001:db8:6783:57:e95:bbff:fed4:1" dev "eth1"
returned:
exit code: 2

noteworthy:
cmd 'ethtool --json --show-pause eth1'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ethtool --json --show-pause eth1'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ethtool --json --show-pause eth1'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ip addr del "2001:db8:6783:57:e95:bbff:fed4:1" dev "eth1"'
returned (out):

returned (err):
Error: ipv6: address not found.

[[interfaces ethernet eth1]] failed
Commit failed
[edit]

This issue appears only if IPv6 is assigned.
Looks like the netmask in cmd is missing. Should be

cmd 'ip addr del "2001:db8:6783:57:e95:bbff:fed4:1/64" dev "eth1"'

I cannot reproduce it on rolling release VyOS 2025.10.17-0019-rolling

Details

Version
VyOS 1.4-stable-202510162108
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

a.apostoliuk triaged this task as Normal priority.
c-po changed the task status from Open to Confirmed.Oct 19 2025, 11:28 AM
c-po raised the priority of this task from Normal to High.
c-po edited projects, added VyOS 1.4 Sagitta (1.4.4); removed VyOS 1.4 Sagitta.
c-po moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.4) board.