Skip to content

Add SROS multiline show port support#2304

Open
mjbear wants to merge 4 commits intonetworktocode:masterfrom
mjbear:alc_sros_sh_port_issue2301
Open

Add SROS multiline show port support#2304
mjbear wants to merge 4 commits intonetworktocode:masterfrom
mjbear:alc_sros_sh_port_issue2301

Conversation

@mjbear
Copy link
Copy Markdown
Collaborator

@mjbear mjbear commented Apr 5, 2026

resolves #2301

  • Add support for multiline show port lines
  • As a side-effect of regenerating the test data, keys in the YAML are in alphabetical order
  • Simplify states (since Port state could be collapsed into the Start state)

Example:

esat-11/1/c65 Up         Link Up                          conn   100GBASE-LR4*
esat-11/1/c65/u1
              Up    Yes  Up      9212 9212    - accs dotq cgige  

Notes:

  • We could move the two new patterns below the = sign separator pattern instead of negating the presence of an equal sign in PORT_ID. The equal sign negation will continue to function even if pattern lines are moved around in future template edits, so the negation pattern is probably most ideal.

mjbear added 2 commits April 4, 2026 21:46
Rather than add an Error directive to a simple Start state and
also have duplicate regex in the other state, collapse them
into one (only have a Start state).
Remove the unnecessary Filldown keyword I added a couple
commits ago. Phew!
@mjbear mjbear marked this pull request as ready for review April 9, 2026 01:59
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.

SROS22 multi-line issue in templates/alcatel_sros_show_port.textfsm

1 participant