Page MenuHomeVyOS Platform

adding IPv6 EUI64 address fails commit in 1.3.0-rc6
Closed, ResolvedPublicBUG

Description

Unable to add an IPv6 EUI64 address in VyOS 1.3.0-rc6 This worked previously in 1.3-rolling-202008301444. To reproduce:

set interfaces ethernet eth0 ipv6 address eui64 2001:db8::/64 (doesn't matter what prefix is used)
commit


Report Time: 2021-08-25 03:18:56
Image Version: VyOS 1.3.0-rc6
Release Train: equuleus

Built by: Sentrium S.L.
Built on: Sun 22 Aug 2021 15:37 UTC
Build UUID: 965518de-857d-4e61-ab09-381aadf24eb1
Build Commit ID: 75b37b28b2e9ab

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

Hardware vendor: Red Hat
Hardware model: KVM
Hardware S/N:
Hardware UUID: 19049165-3eee-d9a7-5f70-b5c0bdb37149

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 151, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 140, in apply
  e.update(ethernet)
File "/usr/lib/python3/dist-packages/vyos/ifconfig/ethernet.py", line 376, in update
  super().update(config)
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1259, in update
  self.del_ipv6_eui64_address(addr)
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 592, in del_ipv6_eui64_address
  prefixlen = prefix.split('/')[1]

IndexError: list index out of range

noteworthy:
cmd 'ethtool --show-pause eth0'
returned (out):
Pause parameters for eth0:
returned (err):
Cannot get device pause settings: Operation not supported
cmd 'ethtool -K eth0 lro off'
returned (out):

returned (err):
Cannot change large-receive-offload
cmd 'ethtool -K eth0 ufo off'
returned (out):

returned (err):
Cannot change udp-fragmentation-offload

interfaces ethernet eth0 failed
Commit failed

Details

Difficulty level
Unknown (require assessment)
Version
1.3.0-rc6
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

PR https://github.com/vyos/vyos-1x/pull/981

vyos@r4-1.3# set interfaces ethernet eth0 ipv6 address eui64 2001:db8::/64
[edit]
vyos@r4-1.3# commit
ru[edit]
vyos@r4-1.3# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.14/24                 u/u  
                 2001:db8::5054:ff:fe5d:4609/64
Viacheslav changed the task status from Open to Needs testing.Aug 29 2021, 5:18 PM
Viacheslav claimed this task.

Fixed in VyOS 1.3-beta-202108300342

vyos@r4-1.3# set interfaces ethernet eth0 ipv6 address eui64 2001:db8::/64
[edit]
vyos@r4-1.3# commit
Adapter does not support changing large-receive-offload settings!
[edit]
vyos@r4-1.3# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.14/24                 u/u  FOO-BAR
                 2001:db8::5054:ff:fe5d:4609/64

The patch worked up through vyos-1.3-beta-202108311126. It stopped

I can not reproduce this issue in 1.3-beta-202109050342 and 1.4-rolling-202109050613

vyos@vyos# set interfaces ethernet eth1 ipv6 address eui64 2001:db8::/64
vyos@vyos# commit
vyos@vyos# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
dum0             172.18.254.202/32                 u/u
eth0             -                                 u/u
eth1             2001:db8::250:56ff:feb3:cdba/64   u/u