Skip to content

Add Extreme EXOS show switch - #2383

Open
aaronaxvig wants to merge 6 commits into
networktocode:masterfrom
aaronaxvig:master
Open

aaronaxvig wants to merge 6 commits into
networktocode:masterfrom
aaronaxvig:master

Conversation

@aaronaxvig

Copy link
Copy Markdown

First time contributing, hoping to get this in for use downstream in NetBox Orb.

Open to any feedback, of course.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

The whitespace after the colon in the test data is always one
or more spaces.
Rather than have the optional non-capturing group in the
middle, we can leverage the .* regex. The data is more than
one character when it isn't blank (and thus set to optional
on the rule line).
Similar to the line for 'show fdb', it's possible to shorten
'show' to 'sh' and 'switch' to 'sw'.
@mjbear

mjbear commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

I pushed a couple of changes to this branch/PR.

  • Changed the whitespace regex after the colons since the test data has one or more space
  • Simplified several capture group regexes
    • Used the existing .* for the optional part in the center
    • The data is consistently more than one character (or is blank and then optional in the rule)
  • Modified the index rule to allow abbreviated or short forms of the commands
    • Based decisions off an ExtremeXOS command guide
    • As for any others that can be shortened, I can pick that up in another PR

…ow switch

The value in parentheses after "SysHealth check:" is the configured
sys-health-check level (Normal or Strict), not a health status. Use the
Strict level in the X440-G2 test data.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@aaronaxvig

Copy link
Copy Markdown
Author

Sorry this got kind of messy with that force push. I mistakenly didn't use a branch in my repo for this PR and was working on some other EXOS fixes that ended up getting into master. So had to undo some stuff!

Anyways, the health check fix is in.

Thanks for all the help and guidance on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants