Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial: T3397: Remove --keep-baud which could result in unexpected baud rate #4201

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

sarthurdev
Copy link
Member

Change Summary

Prevents serial terminals from using unexpected baud rate

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

serial, console

Proposed changes

This change removes --keep-baud which can result in an unexpected baud rate for serial terminals.

When a specific baud rate speed is defined, or it is falling back to the VyOS default value of 115200. --keep-baud can result in the config value not being honoured.

If the terminal was created with a baud rate other than the config defined value, the config value will not be applied.

How to test

Tested on a Supermicro SOL serial port mapped to /dev/ttyS1. BIOS/IPMI is set to 115200.

stty -aF /dev/ttyS1 default output:
speed 9600 baud; rows 24; columns 80; ...

After set system console device ttyS1 speed 115200:
speed 9600 baud; rows 24; columns 80; ...

Removing --keep-baud:
speed 115200 baud; rows 24; columns 80; ...

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

👍
No issues in PR Title / Commit Title

Copy link

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests (no interfaces) 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@sarthurdev sarthurdev merged commit 1a291b4 into vyos:current Nov 20, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants