25 Apr
2018
25 Apr
'18
10:19 a.m.
Hi!
1. bird>show route filter {if format(net) = "0.0.0.0/0" then accept;} //correct result
/* show route filter {if net = "0.0.0.0/0" then accept;} // incorrect result */
compare net = 0.0.0.0/0 – the "0.0.0.0/0" is a string literal, the 0.0.0.0/0 is a prefix literal.
2. config-file:
filter filter_bgp1{
if format(net) = "0.0.0.0/0" then accept; // “format(net) = …” , bird coredump ???
/* if net = "0.0.0.0/0" then accept; // “ net= …” , not bird coredump*/
}
Will check this. Thanks for report. M.