Skip to content

model/fastiron: answer pager prompt and strip ANSI escape sequences - #3886

Open
FusionBrah wants to merge 1 commit into
ytti:masterfrom
FusionBrah:3819-fastiron-pager
Open

model/fastiron: answer pager prompt and strip ANSI escape sequences#3886
FusionBrah wants to merge 1 commit into
ytti:masterfrom
FusionBrah:3819-fastiron-pager

Conversation

@FusionBrah

@FusionBrah FusionBrah commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

On Ruckus ICX devices, the pager cannot always be disabled with skip-page-display, for example when the user has no enable rights. This adds two expect blocks to the fastiron model, as proposed and tested by @cr-bruderer in #3819: answer the pager prompt with a space and strip the ANSI escape sequences the pager uses to redraw the screen. The existing skip-page-display post_login is kept, as it still works for users with sufficient rights.

Tests:

  • pass_with_expect prompt tests with ANSI-prefixed prompts
  • a simulation of an ICX 7150-48P where skip-page-display is rejected and show running-config is interrupted by a --More-- pager prompt

Note: the simulation is hand-built, not captured from a real device with device2yaml, as I have no access to an affected device. I will ask the reporter to test this branch on real hardware.

Fixes #3819

@robertcheramy

Copy link
Copy Markdown
Collaborator

Should we wait for a reaction of @cr-bruderer ?

The pager cannot always be disabled with 'skip-page-display', for example
when the user has no enable rights. Answer the pager prompt with a space
and strip the ANSI escape sequences used to redraw the screen.

Fixes ytti#3819
@FusionBrah
FusionBrah force-pushed the 3819-fastiron-pager branch from 0456c57 to 28e9a5d Compare August 18, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle pager in FastIron model

2 participants