Page MenuHomeVyOS Platform

vrf: dhcp does not work when VRF name contains a hyphen
Closed, ResolvedPublicBUG

Description

An issue was discovered while testing T7927 - if the VRF name contains a hyphen, the DHCPv4 default route is not installed in the VRF context but rather in the default VRF instance.

Reproduce

set vrf name red-15 table 44444
set interfaces ethernet eth1 vif 10 vrf red-15
set interfaces ethernet eth1 vif 10 address dhcp

Results in the generated FRR configuration file:

!
ip route 0.0.0.0/0 172.16.33.254 eth1.10 tag 210 210
!
vrf red-15
exit-vrf
!
cpo@LR1.wue3# 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         -                  00:50:56:bf:c5:6d  default   1500  u/u
eth1         -                  00:50:56:b3:38:c5  default   1500  u/u
eth1.10      172.16.33.118/24   00:50:56:b3:38:c5  red-15    1500  u/u

lo           127.0.0.1/8        00:00:00:00:00:00  default  65536  u/u
             ::1/128

Where the default route is not placed inside the vrf block

Details

Version
1.4.3
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Revisions and Commits

rVYOSONEX vyos-1x