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

Show more context in the diff view #91

Open
chris240189 opened this issue Nov 21, 2024 · 0 comments
Open

Show more context in the diff view #91

chris240189 opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chris240189
Copy link

When looking at the diff of switch config, sometimes the usual three lines of context (before and after), don't give enough information in order to find the cause in the config generation.

The name or description of the config block is usually at the start of hierarchical config block and sometimes can get cut off, of the block is long and the change/diff is not within the first four lines.

See this example:
image

From the diff alone, I cannot get enough context which interface or access-list the changes in lines 741,742 and so on come from.

The line numbers do help a lot already, however if the amount of context lines was adjustable to a higher number this would make the diff more usable.

If the context was aware of the hierarchical config context, that would be even better.

In cases where the diff view isn't helpful, I look at the "patch" commands as they are hierarchy aware.

@chris240189 chris240189 added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant