Page MenuHomeVyOS Platform

VRF name "up" is reserved and should not be used
Closed, ResolvedPublicBUG

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?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.
c-po moved this task from Open to Finished on the VyOS 1.5 Circinus board.
c-po moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.2) board.
dmbaturin renamed this task from VRF name up is reserved and should not be used to VRF name "up" is reserved and should not be used.Wed, Mar 12, 3:35 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.