Page MenuHomeVyOS Platform

VRF name up is reserved and should not be used
Open, NormalPublicBUG

Description

VRF name up is reserved and must not be used:
https://github.com/vyos/vyos-1x/blob/8cdad51c19b77ced39ace8286749fa559d4d8824/src/conf_mode/vrf.py#L152C1-L153C71

set vrf name up table 1000
set vrf name up description userplane

commit:

vyos@r14# commit
[ vrf ]
Error: Table is used by another VRF.

Report time:      2025-01-07 12:55:41
Image version:    VyOS 1.4.1
Release train:    sagitta


Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/vrf.py", line 361, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/vrf.py", line 285, in apply
    vrf_if = Interface(name)
             ^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 328, in __init__
    if not self.iftype:
           ^^^^^^^^^^^
AttributeError: 'Interface' object has no attribute 'iftype'



[[vrf]] failed
Commit failed
[edit]
vyos@r14# c

Another bug, after this error the VRF already in the rt_table

vyos@r14# cat /etc/iproute2/rt_tables.d/vyos-vrf.conf 
### Autogenerated by vrf.py ###
#
# Routing table ID to name mapping reference
# id       vrf name         comment
1000       up               # userplane
[edit]
vyos@r14#

Details

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