Skip to content

Show more context in the diff view #91

@chris240189

Description

@chris240189

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions