Page MenuHomeVyOS Platform

console-server: do not allow to spawn a console-server session on serial port used by "system console"
Closed, ResolvedPublicBUG

Description

A user can specify both

set system console device ttyS0 speed '9600'

and

set service console-server device ttyS0 ssh port 4000
set service console-server device ttyS0 speed 9600

A serial interface can not be used multiple times.

Details

Difficulty level
Easy (less than an hour)
Version
1.3.0-rc1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.Mar 13 2021, 5:26 PM
c-po claimed this task.
c-po triaged this task as Low priority.
c-po created this task.
c-po updated the task description. (Show Details)

commit now produces an error:

vyos@vyos# commit
[ service console-server ]
Port "ttyS0" requires speed to be set!
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
SrividyaA set Issue type to Bug (incorrect behavior).Aug 31 2021, 2:53 PM