Skip to content

simulation data for issue #3477 #3484

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

simulation data for issue #3477 #3484

wants to merge 1 commit into from

Conversation

cetjcm
Copy link

@cetjcm cetjcm commented Apr 8, 2025

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

Simulation data for issue #3477

@cetjcm
Copy link
Author

cetjcm commented Apr 8, 2025

This is working with the device, there is still an issue with pager white spaces
`class Broadcom < Oxidized::Model
using Refinements

prompt /^([\w.@()-]+[#>]\s?)$/

cmd :all do |cfg|
cfg.gsub! /\cH+\s{8}/, '' # example how to handle pager
cfg.gsub! /\cH+/, '' # example how to handle pager
cfg.gsub! /\r/, '' # Remove carriage return (^M) characters
cfg.cut_both
end

cmd 'enable'
cmd 'show running-config'

expect /^--More--\s+.*$/ do |data, re|
send ' '
data.sub re, ''
end

cfg :ssh do
pre_logout 'quit'
end
end
`

@robertcheramy robertcheramy self-assigned this Apr 9, 2025
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.

2 participants