Skip to content

Conversation

@clement-ldr
Copy link

New template to add support for juniper junos show ethernet-switching interfaces 🤠

Use the normalized VLAN_ID capture group name for the VLAN tag.
Make the ethernet-switching regex pattern match another existing
command (where there are optional characters for the shortened version.)
@mjbear
Copy link
Collaborator

mjbear commented Dec 23, 2025

@clement-ldr
I made a couple of tweaks.

  • Fix the index order
  • Simplify the template to reduce some duplication (since the raw cli output is simple enough)
  • Shorten the TAGGING pattern via regex
  • Use the normalized VLAN_ID instead of TAG from data model
  • Adjust the ethernet-switching word pattern to match another instance (the "table")

Note to self:
Command output details via a Juniper ethernet-switching CLI reference doc.

@mjbear mjbear removed the question label Dec 31, 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