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

Some diff fixes #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

btobolaski
Copy link
Contributor

With empty diffs, I was getting errors instead of a diff. The first commit addresses this.

It also appears that the diff direction was reversed. If I added

!
interface ethernet 1/1/30
 port-name testing-port

to my replacement config, the diff would show:

- interface ethernet 1/1/30
-  port-name testing-port

Which is opposite of the behavior that I would expect (as applying the diff would add those to the running config, not remove them).

Without these, empty diffs would result in an error instead of empty diffs
Previous if you added something to the replace candidate, it would
appear in the diff output with a - prefix instead of a plus
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