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

Add option to hide prefix in the diff output #125

Open
XioNoX opened this issue Jun 8, 2023 · 1 comment
Open

Add option to hide prefix in the diff output #125

XioNoX opened this issue Jun 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@XioNoX
Copy link
Contributor

XioNoX commented Jun 8, 2023

For example in this diff output, it might be cleaner and easier to understand by the operator if the prefixes were stripped.

- /openconfig-interfaces:interfaces/interface[name=Ethernet1]/openconfig-interfaces:interface[name=Ethernet1]/config/description sretest1003
+ /openconfig-interfaces:interfaces/interface[name=Ethernet1]/openconfig-interfaces:interface[name=Ethernet1]/config/description DISABLED
- /openconfig-interfaces:interfaces/interface[name=Ethernet1]/openconfig-interfaces:interface[name=Ethernet1]/config/enabled True
+ /openconfig-interfaces:interfaces/interface[name=Ethernet1]/openconfig-interfaces:interface[name=Ethernet1]/config/enabled False
- /openconfig-interfaces:interfaces/interface[name=Ethernet1]/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config/access-vlan 1038

To something like:

- /interfaces/interface[name=Ethernet1]/interface[name=Ethernet1]/config/description sretest1003
+ /interfaces/interface[name=Ethernet1]/interface[name=Ethernet1]/config/description DISABLED
- /interfaces/interface[name=Ethernet1]/interface[name=Ethernet1]/config/enabled True
+ /interfaces/interface[name=Ethernet1]/interface[name=Ethernet1]/config/enabled False
- /interfaces/interface[name=Ethernet1]/ethernet/switched-vlan/config/access-vlan 1038
@akarneliuk
Copy link
Owner

I'd say, that is matter of choice. I think, maintaining the origin is important, so that you precisely know where comes the branch from. Having said that, I saw some vendors drop that entirely. PR is welcome.

@akarneliuk akarneliuk added the enhancement New feature or request label Jul 24, 2023
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

2 participants