Hey, looking for some advice. Struggling to figure out how I want to do this. I need a compliance rule that is able to search an interface config block for IP helper-addresses. I need it to match:
"ip helper-address"
But not match if the full string is one of the following:
"ip helper-address 192.168.1.1",
"ip helper-address 192.168.1.1"
"ip helper-address 192.168.1.1"
Normally this would be a simple job for regex negative lookaheads, but NCM does not support those…
My config block start is ^interface, config block end is ! so that I'm able to find the interface config blocks that contain the unapproved helper addresses…