Skip to content
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

fix show isis adjacency show_isis.py #902

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

Conversation

anisdz99
Copy link

@anisdz99 anisdz99 commented Oct 7, 2024

Description

(?P<isis_name>[\w-]+): This group allows both word characters (\w, i.e., letters, digits, underscores) and hyphens (-). This would be used when the isis_name might contain a hyphen, making it more flexible than the first pattern.

Motivation and Context

Purpose:
These patterns are typically used in parsing network outputs, particularly from IS-IS routing protocols, to extract specific information like the IS-IS process name (isis_name) and level (level_name) from lines that follow this structure.

For example, given the string:

vbnet
Copier le code
IS-IS test-Level-1 adjacencies:
In the first pattern, it will capture isis_name = "test".
In the second pattern, it will capture isis_name = "test-Level-1" because it allows for hyphens in the name.

@anisdz99 anisdz99 requested a review from a team as a code owner October 7, 2024 23:02
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.

1 participant