string shell pattern match

2019-06-14 Thread Robert Sander
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 { r

Re: string shell pattern match

2019-06-14 Thread Hansen, Christoffer
On 14/06/2019 12:58, Robert Sander wrote: > according to the documentation for BIRD 1.6 it should be possible to use > "shell patterns" with the ~ operator on strings: If you look here: [0] & note the description in the docs you referred to before. It should be clear enough the operators is mean

Re: string shell pattern match

2019-06-14 Thread Robert Sander
On 14.06.19 13:49, Hansen, Christoffer wrote: > So if you create an function to check if the interface name matches a > certain pattern. And in your if() statement matched against true/false > return value of function. You should be able to do what you want. This does not work neither: function

Re: string shell pattern match

2019-06-14 Thread Hansen, Christoffer
On 14/06/2019 14:06, Robert Sander wrote: > This does not work neither: Could you post a copy of the the full relevant sections of the BIRD configuration? Is easier to give you pointers that way. Of e.g. an alternative way to implement the logic you are looking for. Christoffer

Re: [PATCH] Add CLI command to test reconfiguration status

2019-06-14 Thread Ondrej Zajicek
On Thu, Jun 13, 2019 at 11:29:32AM +, Kenth Eriksson wrote: > The reply text for reply code 3 (CONF_DONE) is "Daemon is up and > running". Is that on purpose? I would have expected something like > "Re-configuration done" or similar. Yes, because the same message is reported after start, when

Re: [PATCH 2/3] Fix issue where cli socket buffer may get full

2019-06-14 Thread Kenth Eriksson
On Tue, 2019-06-11 at 18:14 +0200, Ondrej Zajicek wrote: > On Tue, Jun 11, 2019 at 03:54:21PM +, Kenth Eriksson wrote: > > On Tue, 2019-06-11 at 17:03 +0200, Ondrej Zajicek wrote: > > > CAUTION: This email originated from outside of the organization. > > > Do > > > not click links or open attac