Page MenuHomeVyOS Platform

CLI TAB issue with values with '-' at the beginning in conf mode
Closed, ResolvedPublicBUG

Description

If I set the parameter with '-' at the beginning, the next command to this parameter with TAB shows an error
For example

vyos@vyos# set policy route-map TEST rule 10 set metric
Possible completions:
   <+/-metric>  Add or subtract metric
   <0-4294967295>
                Metric value



[edit]
vyos@vyos# set policy route-map TEST rule 10 set metric -10
[edit]
vyos@vyos# set policy route-map TEST rule 10 set metric [TAB] cli-shell-api: invalid option -- '1'
cli-shell-api: invalid option -- '0'

Possible completions:
   <+/-metric>  Add or subtract metric
   <0-4294967295>
                Metric value
   -10


[edit]

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.4-rolling-202210090955; VyOS 1.3.2
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
Viacheslav added a subscriber: Viacheslav.

Fixed

[edit]
vyos@r1# set policy route-map TEST rule 10 set metric -10
[edit]
vyos@r1# commit
[edit]
vyos@r1# sudo vtysh -c "show run"
Building configuration...

Current configuration:
!
frr version 7.5.1-20230529-02-gba1778129
frr defaults traditional
hostname r1
log syslog
log facility local7
service integrated-vtysh-config
!
ip route 0.0.0.0/0 192.168.122.1
!
router bgp 65001
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor 192.168.122.14 remote-as 65001
!
route-map TEST permit 10
 set metric -10
!
line vty
!
end
[edit]
vyos@r1# 
[edit]
vyos@r1# run show ver

Version:          VyOS 1.3-stable-202308240442
Release train:    equuleus
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.4) board.