networklore / nelkit

https://networklore.com/nelkit/
44 stars 17 forks source link

regular expressions in baseline #4

Open simplexify opened 8 years ago

simplexify commented 8 years ago

Hi

Very useful piece of software, I like it a lot.

The current implementation seems to only allow for matching against exact lines in the baseline file.

Would it be possible to change the comparison, so it allows for comparing against a regex pattern?

Simple example: check if the loopback100 interface has a description set. The baseline file for this could look like this:

^interface Loopback100$ ^\ description.*$

Thanks

davama commented 7 years ago

This would be a great feature!