netbox-config-diff icon indicating copy to clipboard operation
netbox-config-diff copied to clipboard

Config Diff showing multiple filtered lines as mismatched

Open Dz3015 opened this issue 1 year ago • 2 comments

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 avatar Nov 18 '24 15:11 Dz3015

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

miaow2 avatar Dec 01 '24 12:12 miaow2

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

Dz3015 avatar Jan 15 '25 14:01 Dz3015