Re: Unexpected behavior of static routes

2017-05-09 Thread Ondrej Zajicek
On Tue, May 09, 2017 at 06:39:04PM +0200, Alexander Demenshin wrote: > Hi, > > I have something like this in my config (bird 1.6.3 @linux): > > protocol static { > route 10.1.0.0/24 via "eth1"; > route 10.2.0.0/24 via 10.1.0.1; > } > > Route to 10.1.0.0/24 is installed as expected, but, rout

Re: Unexpected behavior of static routes

2017-05-09 Thread Michael McConnell
Right, what you are doing is something I do all day long. I’ve looked over my configs and the only thing I can see that might be missing related to kernel. protocol kernel { export all; Sorry I’m not more help, but I can tell you that is definitely not the expected behaviour. Mike -- Michae

Re: Unexpected behavior of static routes

2017-05-09 Thread Alexander Demenshin
On 2017-05-09 20:18, Michael McConnell wrote: You have a physical interface (e.g. eth0) with an address assigned to the 10.1.0.1/24 on the system? No, I don't - this is exactly the problem. It has a completely different address in different network, and I do not want a router to have an addr

Re: Unexpected behavior of static routes

2017-05-09 Thread Michael McConnell
Alexander, You have a physical interface (e.g. eth0) with an address assigned to the 10.1.0.1/24 on the system? You shouldn’t need an address in the 10.2.0.0/24 subnet assigned to an interface. Cheers Mike -- Michael McConnell WINK Streaming; email: mich...@winkstreaming.com

Unexpected behavior of static routes

2017-05-09 Thread Alexander Demenshin
Hi, I have something like this in my config (bird 1.6.3 @linux): protocol static { route 10.1.0.0/24 via "eth1"; route 10.2.0.0/24 via 10.1.0.1; } Route to 10.1.0.0/24 is installed as expected, but, route to 10.2.0.0/24 is not showing up anywhere, while it seems logical that once its cover

Re: Import directly connected routes

2017-05-09 Thread Ondrej Zajicek
On Tue, May 09, 2017 at 08:28:26AM -0400, Damien Clabaut wrote: > Hello, > > Thank you for your answer. > > Are there some reserved variable names in function arguments ? Yes, unfortunately each keyword is reserved and cannot be used as symbol (variable, argument, protocol, table, ... name). 's'

Re: Import directly connected routes

2017-05-09 Thread Damien Clabaut
Hello, Thank you for your answer. Are there some reserved variable names in function arguments ? If I do (as per example in filter.conf in git repo): function onef(string s) { return 1; } I get syntax error in the first line of the function. However, function onef(string a) { return 1; }

Re: Import directly connected routes

2017-05-09 Thread Ondrej Zajicek
On Mon, May 08, 2017 at 04:43:32PM -0400, Damien Clabaut wrote: > Hello again, > > Is there any way to declare a list of interfaces in a string set or > something ? No, string sets are not implemented. Although it is something that makes sense to add. You could define functions that match a set