Hi,

according to the documentation for BIRD 1.6 it should be possible to use
"shell patterns" with the ~ operator on strings:

https://bird.network.cz/?get_doc&v=16&f=bird-5.html#ss5.2

I tried to apply this within a filter but the expression does not match:

if ifname ~ "bond0.4[2345]" then {
  reject;
}

I can only match if I "unroll" the expression and create four different
if statements.

What does "shell pattern" from the documentation mean in this case?
Are [ and ] not valid here?

Regards
-- 
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

https://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to