Page MenuHomeVyOS Platform

cleanup SLAAC assigned address and default route when interface goes down
Open, NormalPublicBUG

Description

Running VyOS 1.4.4 in a VM under ProxMox, I found that a SLAAC address and default router remain on the router when I turn down the interface in the hypervisor. This appears to be similar to T7375.

set interfaces ethernet eth0 ipv6 address autoconf

$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                              MAC                VRF        MTU  S/L    Description
-----------  --------------------------------------  -----------------  -------  -----  -----  -------------
eth0         2001:db8:202:0:be24:11ff:fede:20e8/64  bc:24:11:de:20:e8  default   1500  u/u

<shutdown interface on Hypervisor>

$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                              MAC                VRF        MTU  S/L    Description
-----------  --------------------------------------  -----------------  -------  -----  -----  -------------
eth0         2001:db8:202:0:be24:11ff:fede:20e8/64  bc:24:11:de:20:e8  default   1500  u/D

$ show ipv6 route
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

K>* ::/0 [0/1024] via fe80::c6ad:34ff:fe7f:f965, eth0, 00:01:59

Things appear to work properly when the hypervisor port is enabled, and VyOS config disables the interface:

set interfaces ethernet eth0 disable

$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address          MAC                VRF        MTU  S/L    Description
-----------  ------------------  -----------------  -------  -----  -----  -------------
eth0         -                   bc:24:11:de:20:e8  default   1500  A/D

delete interfaces ethernet eth0 disable

$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                              MAC                VRF        MTU  S/L    Description
-----------  --------------------------------------  -----------------  -------  -----  -----  -------------
eth0         2001:db8:202:0:be24:11ff:fede:20e8/64  bc:24:11:de:20:e8  default   1500  u/u

Details

Version
1.4.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)