Page MenuHomeVyOS Platform

Static table description should not contain white-space
Closed, ResolvedPublicBUG

Description

The description for the static table x route should not contain white-spaces as it actually used as alias to the table

set protocols static table 10 description "mytable"
commit

Check:

vyos@r-left# sudo ip route show table mytable
100.64.22.0/24 nhid 22 via 192.168.122.15 dev eth1 proto bgp metric 20
[edit]
vyos@r-left# cat /etc/iproute2/rt_tables.d/vyos-static.conf
# Generated by VyOS (protocols_static.py), do not edit by hand
10     mytable
[edit]
vyos@r-left#

Set some odd description:

vyos@r-left# set protocols static table 10 description "my table"
[edit]
vyos@r-left# commit
[edit]
vyos@r-left# cat /etc/iproute2/rt_tables.d/vyos-static.conf
# Generated by VyOS (protocols_static.py), do not edit by hand
10     my table
[edit]
vyos@r-left# sudo ip route show table 'my table'
Error: argument "my table" is wrong: table id value is invalid

[edit]
vyos@r-left#
vyos@r-left# sudo ip route show table my
100.64.22.0/24 nhid 22 via 192.168.122.15 dev eth1 proto bgp metric 20
[edit]
vyos@r-left#

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.5-rolling-202404190019
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav renamed this task from Static table description. should not contain white-space to Static table description should not contain white-space.Sat, Apr 20, 5:48 AM
Viacheslav created this task.
Viacheslav updated the task description. (Show Details)
Viacheslav triaged this task as Normal priority.Mon, Apr 22, 9:05 AM
Viacheslav changed the task status from Open to In progress.Mon, Apr 22, 9:26 AM
Viacheslav assigned this task to Embezzle.
Embezzle changed the task status from In progress to Needs testing.Tue, Apr 23, 8:07 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa3) board.