Closed JustinAzoff closed 2 months ago
Hmm, hmm - pattern_table[/test.*/]
~would do~ does the expected thing. It's the special string lookup matching doesn't take &default
into account.
I could see two reasons for keeping it, but at least documenting the behavior. One, &default_insert
can't be made to work (we wouldn't know what pattern to insert on mismatch), so that may be surprising asymmetric. The other, the special lookup of pattern tables is comparable to the matching_subnets()
bif behavior for table[subnet]
- it doesn't take &default
into account either.
But that's just my hunch. Paging @ckreibich / @vpax :-)
Ah, I didn't know table[subnet]
also didn't support a default, I guess I've done that in the past by adding a catch-all for 0.0.0.0/0
Yeah I think your points @awelzel are apt. This is additional functionality on top of the usual functionality, so it doesn't fit readily into the overall &default
framework
outputs