-
Notifications
You must be signed in to change notification settings - Fork 91
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
edgeos_config - added diff result #184
edgeos_config - added diff result #184
Conversation
f0bd643
to
6df976c
Compare
I'm not at all familiar with the edgeos code, but it looks like it should not break something. So if it works for you I'm happy to assume it works. If nobody complains, I'll merge this before the next release. I hope that someone who knows edgeos will take a closer look though... |
I'll try and give it a rigorous test across the couple of device variants we have here. So far it looks good. One question on the preferred diff output format, currently it prints the whole router config with markers (like '>') to indicate changed lines as generated by the 'show' command. An alternative is to only print the changed lines using the 'compare' command. Examples below, but I think my preference is for the latter The full router config in annotated json(ish) format from the 'show' command prior to 'commit'
Or the 'compare' output
|
The full output looks a big excessive, but I'm not using this module (or edgeos in general), so no idea how useful or annoying that is. In general, I think a shorter output concentrating on the changes is more useful. Since you seem to agree here, it's probaly better to change it that way :) |
@virtualguy do you still plan to do this change? Otherwise I will merge soon, so it gets into community.network 2.0.0 (to be released next week). |
ce0f172
to
331f0b7
Compare
Co-authored-by: Felix Fontein <[email protected]>
331f0b7
to
af8b621
Compare
Thanks for the reminder, done now and tested working for me on an EdgePoint R8 |
@virtualguy thanks for contributing! |
@virtualguy hi, would you like to have your GH login added to |
@virtualguy my OS doesn't allow me to see who added a thumbs up:) So the same question to you ^ |
Hah fair enough. Yes please add me :) |
@virtualguy great, thanks! done #256 could you please approve the PR? To see what it gives, see #199 (comment) |
SUMMARY
Add diff output when applying changes using edgeos_config
ISSUE TYPE
COMPONENT NAME
edgeos_config
ADDITIONAL INFORMATION
This will print the full router config with changes shown in the edgeos json format (using the 'show' command)