string shell pattern match
Robert Sander
r.sander at heinlein-support.de
Fri Jun 14 12:58:51 CEST 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190614/40fe661e/attachment.sig>
More information about the Bird-users
mailing list