Page MenuHomeVyOS Platform

DHCP default route duplicated when moving interface between VRFs
Needs testing, NormalPublicBUG

Description

When moving an interface with a DHCP default route between VRFs, the default route isn't removed from the old VRF.


Setup:

set interfaces ethernet eth0 address dhcp
commit
sleep 10
vtysh -c 'show running-config'
Building configuration...

Current configuration:
!
frr version 8.4.2
frr defaults traditional
hostname vyos
log syslog
log facility local7
service integrated-vtysh-config
!
ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210
!
rpki
exit
!
end

Note the presence of a default route in the default VRF.


Bug:

set vrf name MGMT table 100
set interfaces ethernet eth0 vrf MGMT
commit
vtysh -c 'show running-config'
Building configuration...

Current configuration:
!
frr version 8.4.2
frr defaults traditional
hostname vyos
log syslog
log facility local7
service integrated-vtysh-config
!
ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210
!
vrf MGMT
 ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210
exit-vrf
!
rpki
exit
!
end

Note the default route wasn't removed from the default VRF.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202303170317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)