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

Config Diff showing multiple filtered lines as mismatched #90

Open
Dz3015 opened this issue Nov 18, 2024 · 2 comments
Open

Config Diff showing multiple filtered lines as mismatched #90

Dz3015 opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Dz3015
Copy link

Dz3015 commented Nov 18, 2024

NetBox version
v4.0.6

Describe the bug
On many devices I am showing large blocks of empty lines that are marked as diffed
updated module to 2.8.0, no change

To Reproduce
Steps to reproduce the behavior:

Go to ConfigDiffScript
Click on 'Run script'
Then go to 'Config Compliances'
See results in diff

Expected behavior
Diff only for lines containing config

Screenshots
image

Additional context
Filters are applied on the Platform settings

@Dz3015 Dz3015 added the bug Something isn't working label Nov 18, 2024
@miaow2
Copy link
Owner

miaow2 commented Dec 1, 2024

Hi @Dz3015 thanks for opening the issue

tell me more please about your exclude regexes in Platform settings

  1. How many regexes are set in platform settings?
  2. Do your regexes match different parts of the config or sequential sections?
  3. Can you provide your regex and examples of actual and rendered configurations? so I can test the plugin with your data because on my data I don't catch this behavior

@Dz3015
Copy link
Author

Dz3015 commented Jan 15, 2025

Hello and sorry for the delay in response!

  1. I have about 14 regex statements in the platform settings (I could probably clean these up into less statements
  2. Both, some are sequential to each other and some are in different parts of the config.
  3. Below are the regex statements, I will work on providing config samples

set version.*
set poe.*
set interfaces interface-range.*
set interfaces ge.*
set interfaces et.*
set interfaces xe.*
set interfaces ae.*
set interfaces vlan.*
set interfaces vme.*
set interfaces me0.*
set interfaces lo0 unit 0 family inet address .*
set virtual-chassis member.*
set virtual-chassis preprovisioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants