kernel protocol ignores default preference during scan

2022-09-20 Thread Alexander Zubkov via Bird-users
Hi, Bird from master branch ignores the default preference set in channel for a kernel protocol, like that: protocol kernel { learn yes; ipv4 { preference 200; import all; export none; }; } Version 2.0.10 seems ok. I suppose

Re: kernel protocol ignores default preference during scan

2022-09-21 Thread Alexander Zubkov via Bird-users
I made a trivial patch for the case. On Tue, Sep 20, 2022 at 6:23 PM Alexander Zubkov wrote: > > Hi, > > Bird from master branch ignores the default preference set in channel > for a kernel protocol, like that: > > protocol kernel { > learn yes; > ipv4 { > preferen

Re: kernel protocol ignores default preference during scan

2022-09-22 Thread Alexander Zubkov via Bird-users
Bird-users wrote: > > Hello! > > Thank you for finding and fixing. Will check and include. > > Maria > > On 9/21/22 17:15, Alexander Zubkov via Bird-users wrote: > > I made a trivial patch for the case. > > > > On Tue, Sep 20, 2022 at 6:23 PM Alexander Z

Re: Link local vs global v6 next hop for BGP rotuer

2022-10-10 Thread Alexander Zubkov via Bird-users
Hi, In documentation part it is written that the default for the option is "disabled". But in the code I see it chooses the value based on "gw_mode": > Different default for next_hop_prefer Am I missing something or there is a typo? On Mon, Oct 10, 2022 at 5:44 AM Ondrej Zajicek via Bird-users

Re: Notification on network update (BABEL)

2022-10-14 Thread Alexander Zubkov via Bird-users
Hi, In the meanwhile you can "catch" route changes by exporting them to some kernel table and monitoring netlink. Or exporting them via BGP to some software that will perform custom action on changes. There are BGP implementations in Python and Go to my knowledge. But I'm not sure if that is enoug

refresh bgp routes with import table enabled

2022-10-16 Thread Alexander Zubkov via Bird-users
Hi, When import table is enabled for bgp, "reload in" uses the table and one cannot force refresh from the peer. I suggest to add refresh functions to reload routes on a protocol level, and "reload receive" command to call them. I used "reload receive" not to add additional keywords and it seems d

add documentation for show route (import|export) table

2022-10-16 Thread Alexander Zubkov via Bird-users
Hi, I found out that one can "show route" for import and export tables. But that syntax is not documented. Patch is attached. commit 78e3218dd572207e8dd64de902fc92e0a836326e Author: Alexander Zubkov Date: Sun Oct 16 15:57:26 2022 +0200 add documentation for "show route (import|export) tabl

Re: Multiple ebgp neighbours to the same peer

2023-01-21 Thread Alexander Zubkov via Bird-users
Hi, I had the same issue some time before. I agree that this lock is too restrictive. Because in some cases you cannot change remote IP or port. I tried to make 2 multihop sessions to a remote bgp monitoring service. And its IP is fixed for me and cannot be changed. On Sat, Jan 21, 2023, 19:49 On

Re: Multiple ebgp neighbours to the same peer

2023-01-22 Thread Alexander Zubkov via Bird-users
Hi all, A quick try to fix the problem. But I'm not sure in complete correctness though. On Sat, Jan 21, 2023 at 8:17 PM Prem Anand wrote: > Hi Ondrej, > Thanks for your quick reply. > I tried after adding another ip address to the interface on the FRR side > and can confirm that both my bgp ne

small fix of indenting

2023-01-22 Thread Alexander Zubkov via Bird-users
Hello, I found some bad indenting of if/else statements. Please see the attached patch. commit 55ef93b9773f1f92d4d6f67cdbc40f98795d00fc Author: Alexander Zubkov Date: Mon Jan 23 02:44:47 2023 +0100 fix confusing spacing "else" clause was indented to the wrong "if" statement diff

Re: [PATCH] feature to keep protocol's state while configuring

2023-01-22 Thread Alexander Zubkov via Bird-users
Hello, Not sure if those are forgotten or are unwanted modifications. Please let me know. And I also have another idea regarding the subject. The idea is to configure the file where bird will keep the states of the protocols (I mean enabled/disabled states). Then during loading the configuration

Re: Multiple ebgp neighbours to the same peer

2023-01-23 Thread Alexander Zubkov via Bird-users
On Mon, Jan 23, 2023 at 3:06 PM Ondrej Zajicek wrote: > On Mon, Jan 23, 2023 at 12:40:30AM +0100, Alexander Zubkov wrote: > > Hi all, > > > > A quick try to fix the problem. But I'm not sure in complete correctness > > though. > > Hi > > That looks more-or-less OK, will merge. > > > -ipa_equa

rename symbols

2023-01-23 Thread Alexander Zubkov via Bird-users
Hi all, Some weird idea. I'm not sure it needs to be in the mainstream version, but somebody might find it helpful. For example I may want to refactor the naming scheme for protocols/tables in my bird config. But when I apply the new config with the new names, such renamed protocols will be recre

Re: rename symbols

2023-01-23 Thread Alexander Zubkov via Bird-users
On Tue, Jan 24, 2023 at 7:59 AM Ondrej Zajicek wrote: > On Tue, Jan 24, 2023 at 07:44:47AM +0100, Maria Matejka wrote: > > >Hello > > > > > >I thing that the most elegant way how to handle renaming of objects > > >during reconfiguration is to allow multiple names / aliases. There could > > >be be

Re: rename symbols

2023-01-23 Thread Alexander Zubkov via Bird-users
On Tue, Jan 24, 2023 at 7:05 AM Maria Matejka via Bird-users < bird-users@network.cz> wrote: > Hello! > > > For example I may want to refactor the naming scheme for > > protocols/tables in my bird config. But when I apply the new config with > > the new names, such renamed protocols will be recrea

Re: Multiple ebgp neighbours to the same peer

2023-01-23 Thread Alexander Zubkov via Bird-users
On Mon, Jan 23, 2023 at 3:17 PM Alexander Zubkov wrote: > > > On Mon, Jan 23, 2023 at 3:06 PM Ondrej Zajicek > wrote: > >> On Mon, Jan 23, 2023 at 12:40:30AM +0100, Alexander Zubkov wrote: >> > Hi all, >> > >> > A quick try to fix the problem. But I'm not sure in complete correctness >> > though

Re: rename symbols

2023-01-24 Thread Alexander Zubkov via Bird-users
On Tue, Jan 24, 2023 at 8:12 AM Alexander Zubkov wrote: > > > On Tue, Jan 24, 2023 at 7:59 AM Ondrej Zajicek > wrote: > >> On Tue, Jan 24, 2023 at 07:44:47AM +0100, Maria Matejka wrote: >> > >Hello >> > > >> > >I thing that the most elegant way how to handle renaming of objects >> > >during reco

Re: rename symbols

2023-01-25 Thread Alexander Zubkov via Bird-users
Hi, I did some more experimenting with making aliases from cli. As I understand, cli has its own "config" structure and memory pool, where its symbols are allocated. So I need to copy it to the current config, but I did not find suitable functions for doing that. And I make a copy for cf_new_symbo

SYM_MAX_LEN

2023-01-26 Thread Alexander Zubkov via Bird-users
Hi, If I do not mistake, cf_new_symbol() has incorrect check of symbol length. In other places where SYM_MAX_LEN is used, it is expected that leading zero is counted in it. But the check in cf_new_symbol() allows symbol length equal to SYM_MAX_LEN. This does not cause a problem (as I unederstand),

Re: [PATCH] feature to keep protocol's state while configuring

2023-01-26 Thread Alexander Zubkov via Bird-users
Updated the patch for keeping state in the file. Moved the read/write functions to sysdep/unix/main.c and made better parsing. So it is not a draft anymore, but something more or less "stable". I can add documentation patch in case there is interest to include that into upstream. On Tue, Jan 24, 2

Re: [PATCH] feature to keep protocol's state while configuring

2023-01-29 Thread Alexander Zubkov via Bird-users
Further update. Do not write to the file the states of dynamic protocols as it does not have much sence. On Fri, Jan 27, 2023 at 2:53 AM Alexander Zubkov wrote: > Updated the patch for keeping state in the file. Moved the read/write > functions to sysdep/unix/main.c and made better parsing. So i

Re: BGP Route Aggregation - latest status ???

2023-01-30 Thread Alexander Zubkov via Bird-users
Hi, With current bird's abilities you can try something like this (with correct IPs of course): protocol static aggr1 { ipv4 { table master4; } route 103.1035.59.0/24 recursive 103.1035.59.0; route 103.1035.59.0/24 recursive 103.1035.59.1; ... route 103.1035.59.0/24 recursive

Re: Binding to some interfaces only for multihop bgp

2023-02-19 Thread Alexander Zubkov via Bird-users
Hi, I doubt that strict bind option is incompatible with multihop. Do you have some problems with it? On Sun, Feb 19, 2023 at 4:17 PM Sebastian Hahn wrote: > Hi, > > I would like bird to bind to some interfaces only, but use some multihop > neighbours. Is there any easy way to achieve such a co

Re: iBGP RR IPv6 link-local next-hop not kept

2023-02-28 Thread Alexander Zubkov via Bird-users
Hi, As far as I remember, you can set in your income filter the interface, then the gateway (in that order) to force the interface you want. On Wed, Mar 1, 2023, 02:18 Mirai Azayaka wrote: > Wow, thank you so much! Setting bgp_next_hop = gw; works for me! (yeah > I was worried that because link

Re: BIRD continues exporting routes but reports no exports

2023-03-03 Thread Alexander Zubkov via Bird-users
Hi, It is documented in recent versions and on the bird's site too. Pay attention to this: [(import|export) table p.c] On Fri, Mar 3, 2023, 18:32 Hugo Slabbert via Bird-users < bird-users@network.cz> wrote: > Right, so, > > I've gone ahead and enabled export tables on the channels for the relev

Re: Route attributes available when using export tables

2023-03-07 Thread Alexander Zubkov via Bird-users
Hi, I remembered reading this thread. You might have the similar problem: https://bird.network.cz/pipermail/bird-users/2022-October/016348.html On Tue, Mar 7, 2023 at 9:14 PM Hugo Slabbert via Bird-users < bird-users@network.cz> wrote: > Hi folks, > > On bird 2.0.7. We've been debugging some exp

Re: Force bird to update bgp route configuration after X seconds

2023-03-27 Thread Alexander Zubkov via Bird-users
Hi, If you mean you insert routes into the config file, than yes, you have to call the configuration reload yourself. Bird doesn't reload the configuration by itself as far as I know. On Tue, Mar 28, 2023, 01:03 Pedro Henrique de Araújo Marques < pedroa...@hotmail.com> wrote: > Good evening, I'

Re: Is there any way to set different communities while importing prefixes?

2023-04-12 Thread Alexander Zubkov via Bird-users
Hi, Just look at the docs: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.14 On Wed, Apr 12, 2023, 23:57 Valery Lutoshkin wrote: > Hi, > > I use Bird 2.0.9 to spread a special list of prefixes (about 100k) via BGP > to an unknown list of users (around 1k). > > The prefixes are suppose

Re: BIRD 3.0alpha1

2023-04-24 Thread Alexander Zubkov via Bird-users
Hi Douglas, Come to CSNOG 2023. Maria should give a presentation on Bird 3 there too! :) On Mon, Apr 24, 2023 at 3:48 PM Douglas Fischer wrote: > I was looking for a live stream of @Maria Matejka > presentation about Bird > 3 on 38º Euro-IX. > But I was not able to find anyone. > This event w

Re: Adding more then one bgp community at once

2023-05-05 Thread Alexander Zubkov via Bird-users
I think one can now write a custom function using "for" to obtain that functionality. On Fri, May 5, 2023 at 3:40 PM Ondrej Zajicek wrote: > On Fri, May 05, 2023 at 01:10:10PM +0300, Mikhail Grishin wrote: > > Hi, > > > > I tried the same at BIRD 2.13 . It reports "Can't add set". > > > > At th

[PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
Hi, Currently one can use only a predefined set of advertised options in radv protocol, that are supported by bird's configuration. It would be convenient to be able to specify other possible options at least manually as a blob so one should not wait until it is supported in the code, released, et

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
looks like a clever solution for such a problem. Thank you for the > patch! > > Regarding the bytestring syntax, what about adding some syntax like > hex(deadbeef12345678) or even base64(...) where the user could write byte > blob of any length? > > Maria > On 6/12/23 13:08, Al

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
rote: > >> Hello! >> >> This looks like a clever solution for such a problem. Thank you for the >> patch! >> >> Regarding the bytestring syntax, what about adding some syntax like >> hex(deadbeef12345678) or even base64(...) where the user could write byte &g

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
On Mon, Jun 12, 2023 at 3:04 PM Toke Høiland-Jørgensen wrote: > Alexander Zubkov via Bird-users writes: > > > Hello, Maria! > > > > You suggestion for blob syntax seems good to me. I think I can try to > > prepare patches for that. Only one concern is that i

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
On Mon, Jun 12, 2023 at 3:17 PM Ondrej Zajicek wrote: > On Mon, Jun 12, 2023 at 01:08:15PM +0200, Alexander Zubkov via Bird-users > wrote: > > Hi, > > > > The main concern is that a 6-byte bytestring conflicts with the MAC > address > > representation. B

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-12 Thread Alexander Zubkov via Bird-users
Some additional ideas for decorating binary strings so that they do not resemble other statements: @hex(...) bin:hex(...) BTW, if we put a string literal inside the brackets, we can mimic a function call without dirty lexer/parser hacks: hex("...") Or maybe you have already agreed on something?

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-13 Thread Alexander Zubkov via Bird-users
On Tue, Jun 13, 2023, 16:07 Ondrej Zajicek wrote: > On Mon, Jun 12, 2023 at 05:55:34PM +0200, Alexander Zubkov wrote: > > BTW, if we put a string literal inside the brackets, we can mimic a > > function call without dirty lexer/parser hacks: > > hex("...") > > > > Or maybe you have already agreed

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-13 Thread Alexander Zubkov via Bird-users
Hi, Please look at these patches: bytestring-hex-prefix.patch - syntax with "hex:" prefix I allowed mixed colons with no-divider there, so hex:12:345678:90 is allowed. As there is a distinguishing prefix here, this should not be a problem. Empty bytestrings are allowed too: "hex:" bytestring-hex

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-14 Thread Alexander Zubkov via Bird-users
Hi, While waiting for the fate of the previous patches, I was thinking about that thing about using keywords as symbols. So here is another longread. :) Now it is not possible to mix a keyword and a keyword as a symbol together. Here is what I mean. With current master bird if I use config: prot

Re: Graceful shutdown request signal

2023-06-21 Thread Alexander Zubkov via Bird-users
Hello Maria, Regarding restarts, I think the killer feature might be some sort of restart, when bird execs a new binary, keeping all the file descriptors open and its state somehow. So the new instance could transparently catch up with all the running sessions, etc. It can serialize the internal s

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-22 Thread Alexander Zubkov via Bird-users
Hi, Please give some feedback. On Thu, Jun 15, 2023 at 3:57 AM Alexander Zubkov wrote: > > Hi, > > While waiting for the fate of the previous patches, I was thinking > about that thing about using keywords as symbols. So here is another > longread. :) > > Now it is not possible to mix a keyword

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-23 Thread Alexander Zubkov via Bird-users
On Fri, Jun 23, 2023, 17:47 Ondrej Zajicek wrote: > On Mon, Jun 12, 2023 at 01:08:15PM +0200, Alexander Zubkov via Bird-users > wrote: > > Hi, > > > > Currently one can use only a predefined set of advertised options in radv > > protocol, that are supported by bir

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-23 Thread Alexander Zubkov via Bird-users
On Fri, Jun 23, 2023, 18:30 Ondrej Zajicek wrote: > On Wed, Jun 14, 2023 at 12:40:47AM +0200, Alexander Zubkov wrote: > > Hi, > > > > Please look at these patches: > > > > bytestring-hex-prefix.patch - syntax with "hex:" prefix > > I allowed mixed colons with no-divider there, so hex:12:345678:90

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-25 Thread Alexander Zubkov via Bird-users
Attached the patch with the new syntax for custom options and to use WALK_LIST. On Sat, Jun 24, 2023 at 3:32 PM Ondrej Zajicek wrote: > > On Sat, Jun 24, 2023 at 02:03:08AM +0200, Alexander Zubkov wrote: > > On Fri, Jun 23, 2023, 17:47 Ondrej Zajicek wrote: > > > The only objection from me is th

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-25 Thread Alexander Zubkov via Bird-users
Hello! On Sat, Jun 24, 2023 at 3:30 PM Maria Matejka wrote: > > Hello! > > On 6/24/23 15:13, Ondrej Zajicek wrote: > > On Thu, Jun 15, 2023 at 03:57:10AM +0200, Alexander Zubkov wrote: > > Also, I think that the current realization in bird relies on the fact > that lexer would not have symbols pa

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-25 Thread Alexander Zubkov via Bird-users
On Sat, Jun 24, 2023 at 3:16 PM Ondrej Zajicek wrote: > > On Sat, Jun 24, 2023 at 02:20:03AM +0200, Alexander Zubkov wrote: > > > Yes, the original idea there was to add bytestring as a data type, make > > > hex() a regular (filter) function instead of special function-like > > > syntax, and add e

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-26 Thread Alexander Zubkov via Bird-users
On Mon, Jun 26, 2023 at 5:43 PM Ondrej Zajicek wrote: > > On Mon, Jun 26, 2023 at 03:24:47AM +0200, Alexander Zubkov wrote: > > On Sat, Jun 24, 2023 at 3:16 PM Ondrej Zajicek > > wrote: > > > > > > On Sat, Jun 24, 2023 at 02:20:03AM +0200, Alexander Zubkov wrote: > > > > > Yes, the original idea

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-26 Thread Alexander Zubkov via Bird-users
On Mon, Jun 26, 2023 at 5:54 PM Alexander Zubkov wrote: > > On Mon, Jun 26, 2023 at 5:43 PM Ondrej Zajicek wrote: > > > > On Mon, Jun 26, 2023 at 03:24:47AM +0200, Alexander Zubkov wrote: > > > On Sat, Jun 24, 2023 at 3:16 PM Ondrej Zajicek > > > wrote: > > > > > > > > On Sat, Jun 24, 2023 at 0

Re: Recursive nexthop via kernel route in proto static not working

2023-06-27 Thread Alexander Zubkov via Bird-users
Hi, Not sure, but I would guess it can be related to the local address. It might try to pick the first interface with such network. Could you try your setup with some route that has the nexthop from a unique subnet configured on the interface? At least to check if it will become reachable or not.

Re: Recursive nexthop via kernel route in proto static not working

2023-06-27 Thread Alexander Zubkov via Bird-users
Also try to enable debugging. It might log something about why it cannot resolve the recursive route. On Tue, Jun 27, 2023 at 4:48 PM Alexander Zubkov wrote: > > Hi, > > Not sure, but I would guess it can be related to the local address. It > might try to pick the first interface with such networ

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-29 Thread Alexander Zubkov via Bird-users
On Tue, Jun 27, 2023 at 2:13 AM Alexander Zubkov wrote: > > On Mon, Jun 26, 2023 at 5:54 PM Alexander Zubkov wrote: > > > > On Mon, Jun 26, 2023 at 5:43 PM Ondrej Zajicek > > wrote: > > > > > > On Mon, Jun 26, 2023 at 03:24:47AM +0200, Alexander Zubkov wrote: > > > > On Sat, Jun 24, 2023 at 3:1

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-06-29 Thread Alexander Zubkov via Bird-users
Patch for RAdv documentation for a new custom option. I was also thinking about the new bytestring type. I needed tho change BYTESTRING -> BYTETEXT to avoid collision. But probably the better variant would be to name the new type for example "binary", it might sound better. What do you think? As f

typo in the documentation

2023-06-29 Thread Alexander Zubkov via Bird-users
Hello, I've found a typo in the documenation. The problem is the "/" symbol in the prefix mask that finishes the formatting definition. The patch is attached. Best regards, Alexander Zubkov diff --git a/doc/bird.sgml b/doc/bird.sgml index 81568b95..577f9535 100644 --- a/doc/bird.sgml +++ b/doc/bi

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-07-06 Thread Alexander Zubkov via Bird-users
Hi, And the final patch for the bytestring documentation. Also slightly modified radv documentation patch - added a semicolon in the end of the example. I actually would prefer the "binary" name for the type more than "bytestring". Or maybe you have something else on your mind. So if you would als

Re: Remove all except one community

2023-07-19 Thread Alexander Zubkov via Bird-users
Hi, That is exactly what "filter" function does. Something like this: bgp_community.filter([(64511,*)]); On Wed, Jul 19, 2023, 17:15 Marek Küthe wrote: > Hello, > > I recently discovered a new filter for myself on > https://bgpfilterguide.nlnog.net/guides/many_communities/#bird. In my > eyes i

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-07-27 Thread Alexander Zubkov via Bird-users
Hi, Have you had a chance to look at all this? On Fri, Jul 7, 2023 at 12:55 AM Alexander Zubkov wrote: > > Hi, > > And the final patch for the bytestring documentation. Also slightly > modified radv documentation patch - added a semicolon in the end of > the example. > I actually would prefer th

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-08-24 Thread Alexander Zubkov via Bird-users
Hi, Good news, thanks! On Thu, Aug 24, 2023 at 7:11 PM Ondrej Zajicek wrote: > > On Thu, Jul 27, 2023 at 03:38:27PM +0200, Alexander Zubkov wrote: > > Hi, > > > > Have you had a chance to look at all this? > > Hi > > Sorry for keeping you wait, i finally got to this patchset and merged it. No p

Re: [PATCH] adding custom options in radv protocol, strict ipv6 regex

2023-08-24 Thread Alexander Zubkov via Bird-users
And I forgot to ask about kw_sym. "kw_sym: FROM_HEX" definition is not needed? To provide fallback for someone using such name in config already. On Fri, Aug 25, 2023 at 3:55 AM Alexander Zubkov wrote: > > Hi, > > Good news, thanks! > > On Thu, Aug 24, 2023 at 7:11 PM Ondrej Zajicek wrote: > > >

Re: BGP best path algorithm in RR environment

2023-09-13 Thread Alexander Zubkov via Bird-users
Hi Dariusz, Will ASPATH prepends work for you? Or this feature might help you: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#bgp-aigp Regards, Alexander Zubkov Qrator Labs On Wed, Sep 13, 2023 at 11:43 AM Mazur, Dariusz via Bird-users wrote: > > Hello Bird Users, > > Have a question about

Re: BGP best path algorithm in RR environment

2023-09-13 Thread Alexander Zubkov via Bird-users
Hello Dariusz, On Wed, Sep 13, 2023 at 3:19 PM Mazur, Dariusz wrote: > > Hello Aleksander, > Prepends does not work for me because I would prepending on every leaf so > as-path still will be the same from perespective r01.leaf108 If you prepend announces from every leaf to the spine, then r01.l

Re: Possibly a way to match Kernel.source field?

2023-09-30 Thread Alexander Zubkov via Bird-users
Hi, I'm sure one of the attributes mentioned in the documentation fits your need: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.7 Regards, Alexander Zubkov On Sat, Sep 30, 2023, 22:20 Nigel Kukard via Bird-users < bird-users@network.cz> wrote: > Hi there fellow BIRD users, > > Does an

Re: BIRD 2.14

2023-10-09 Thread Alexander Zubkov via Bird-users
Hi, I want to add that I had the same problem with building bird master branch some time ago for our Arista switches. I also found that reverting f8bcb037b5b71a19209f1b63d52895c8c34c675b helps and maked the build successful. But we did not try it in production yet. Unfortunately, upgrading the ker

Re: Transition from BIRD 1 to 2

2023-10-13 Thread Alexander Zubkov via Bird-users
Hi, You can try to still have separate IPv4/IPv6 daemons and that may help not to repeat the protocol sections. But simple include might not help still, as the syntax requires you sometimes to specify "ipv4"/"ipv6" for tables and channels for example. Some templating might be helpful here though.

Re: bird control socket response

2023-10-18 Thread Alexander Zubkov via Bird-users
Hi, You can find some information about it here: https://bird.network.cz/?get_doc&v=20&f=prog-2.html#ss2.10 I think (IMHO) the reason why it is not implemented as "length+text" is because for that you need to prepare the whole response in some buffer first to calculate its size. In the current a

Re: [Babel-users] [RFC] Replace WireGuard AllowedIPs with IP route attribute

2023-11-09 Thread Alexander Zubkov via Bird-users
Hello all, I heard recently about the lightweight tunnel infrastructure in Linux kernel (ip route ... encap ...). And I think this might be helpful in the context of this thread. Linux kernel allows already to add encapsulation parameters to the route entry in its table. So you do not need to crea

Re: [Babel-users] [RFC] Replace WireGuard AllowedIPs with IP route attribute

2023-11-21 Thread Alexander Zubkov via Bird-users
Hi Daniel, On Mon, Nov 20, 2023, 03:05 Daniel Gröber wrote: > Hi Erin, Juliusz, > > On Sat, Nov 18, 2023 at 11:21:57AM +0100, Erin Shepherd wrote: > > On Sat, 18 Nov 2023, at 03:19, Daniel Gröber wrote: > > > That would be a problem as I specifically want to tie the source > address > > > filter

Re: wireguard + multihop BGP = route rejected, but route created

2023-12-10 Thread Alexander Zubkov via Bird-users
Hi, Looks like it is the check that the route is not returned to the session where it was received from. Regards, Alexander On Sun, Dec 10, 2023 at 2:32 PM Ivan Agarkov wrote: > > Hello! > > I'm creating a BGP lab for my students and found interesting and unexpected > behavior. > > I'm getting

Re: notification scripts ?

2023-12-12 Thread Alexander Zubkov via Bird-users
Hello, Depending on the type of events needed, besides logs or active monitoring with birdc, one can also do things like exporting routes to some kernel table and monitoring them using netlink. Or setup a "monitoring" bgp (or other protocol) sessions with something like exabgp. Regards, Alexander

Re: logging via udp

2023-12-13 Thread Alexander Zubkov via Bird-users
Hi, Thanks! I looked throught your version and it is unclear to me if the sk is still added to the io loop list (sock_list) or not. It seems that sk_insert() still should be called on log udp socket, because I see no exception for it. Didn't you have the same problem with reloads as I had? I unfor

Re: logging via udp

2023-12-13 Thread Alexander Zubkov via Bird-users
Hi, Thank you! On Wed, Dec 13, 2023 at 2:35 PM Ondrej Zajicek wrote: > > On Wed, Dec 13, 2023 at 11:50:42AM +0100, Alexander Zubkov wrote: > > Hi, > > > > Thanks! I looked throught your version and it is unclear to me if the > > sk is still added to the io loop list (sock_list) or not. It seems

Re: Multiple ebgp neighbours to the same peer

2023-12-29 Thread Alexander Zubkov via Bird-users
Hi, Let's resurrect this question. :) I've made a patch to illustrate what I mean about the wildcard address in the lock object. Regards, Alexander On Tue, Jan 24, 2023 at 8:22 AM Alexander Zubkov wrote: > > > > On Mon, Jan 23, 2023 at 3:17 PM Alexander Zubkov wrote: >> >> >> >> On Mon, Jan 23

Re: BGP: Only possible to set neigbor once

2023-12-30 Thread Alexander Zubkov via Bird-users
Hi, >From my understanding, there can be only one neighbor here, but you can set different parts of it with multiple directives, i.e.: neighbor 10.0.1.1; neighbor as 65000; But two different IPs would be two neighbors and you must have two separate bgp protocols for that. Or a dynamic protocol t

Re: BGP,MRTDump: Dumps and Graceful restart

2024-01-05 Thread Alexander Zubkov via Bird-users
Hello, Graceful restart allows not to flush the routes until the sessions are reestablished and converged, it does not save bgp internal state. And when the session is reestablished, the peers do initial exchange of their routes as with a fresh start, what you can see in your mrtdump. That is expe

Re: Exporting a larger prefix if a smaller prefix is being exported

2024-01-13 Thread Alexander Zubkov via Bird-users
Hi, You cannot do "direct" prefix aggregation to a lager prefix in Bird yet. But there are some ways to workaround it. You can define a static route with recursive nex-hop like 192.0.2.x, and filter it out when it is not reachable, but for any subprefix in /24 you would need to define 256 of such

Re: Exporting a larger prefix if a smaller prefix is being exported

2024-01-14 Thread Alexander Zubkov via Bird-users
Hi Lukas, On Sun, Jan 14, 2024 at 6:23 AM Lukas Haase wrote: > > Hi Alex, > > > Gesendet: Samstag, 13. Januar 2024 um 06:31 Uhr > > Von: "Alexander Zubkov" > > An: "Lukas Haase" > > Cc: bird-users@network.cz > > Betreff: Re: Exporting a larger prefix if a smaller prefix is being exported > > >

Re: Re: Exporting a larger prefix if a smaller prefix is being exported

2024-01-14 Thread Alexander Zubkov via Bird-users
Hi Lukas, Two questions. You add dummy interface on another node that propagates it via ospf to your border? And the most important one - you use bird version 1? Regards, Alexander On Mon, Jan 15, 2024 at 6:23 AM Lukas Haase wrote: > > Hi Alexander, > > Thank you again, this is really promising

Re: Exporting a larger prefix if a smaller prefix is being exported

2024-01-15 Thread Alexander Zubkov via Bird-users
Hi, I cannot tell for bird1, unfortunately. It might not work there at all. Here is working example for bird2, I tested it and it seems valid. I export smaller routes to a separate table, so that static protocol use only those routes for recursive resolution, otherwise it will also try to use defa

Re: Re: Exporting a larger prefix if a smaller prefix is being exported

2024-01-15 Thread Alexander Zubkov via Bird-users
On Mon, Jan 15, 2024, 10:15 Lukas Haase wrote: > Hi Alexander, > > Thank you so much! > Debian has bird2 package as well so I migrated and indeed it works!! > There must be a bug in bird1 that causes recursive routes in static > protocol not to resolve... > As just a minor change to your soluti

Re: BFD sessions with FFR (VyOS) won't establish

2024-01-17 Thread Alexander Zubkov via Bird-users
Hi, There were reports here in the list that some BFD peers do not allow connections from non-standard ports and bird do not choose source port specifically. So you might need to tune your sysctl like that: net.ipv4.ip_local_port_range = 49152 65535 Not sure if this is the case, but I would try

Re: Bug in bfd implementation: Wrong TTL on bfd control packets (was: Re: BFD sessions with FFR (VyOS) won't establish)

2024-01-20 Thread Alexander Zubkov via Bird-users
Hi Lukas, Actually I saw support for TTL security in BFD code: https://gitlab.nic.cz/labs/bird/-/blob/master/proto/bfd/packets.c#L496 And I see in your config example that you use multihop BFD, but RFC you refer is talking about single-hop BFD usage. So it does not seem like a bug here. Maybe the

Re: Defines for mixed IPv6/IPv4

2024-01-24 Thread Alexander Zubkov via Bird-users
Hi, I want to also show some example of configuration generation: https://gitlab.com/qratorlabs/example-automatic-filters There are also a couple of links to other similar projects. Jeroen, thanks for the reference to kees, I've added it to the list there too. Regards, Alexander On Wed, Jan 24,

Re: Overloading RTR to load IRR (Was: Defines for mixed IPv6/IPv4)

2024-01-25 Thread Alexander Zubkov via Bird-users
AFAIK in RPKI AS0 means implicit invalid. On Thu, Jan 25, 2024, 14:31 Maria Matejka via Bird-users < bird-users@network.cz> wrote: > On 2024-01-25 11:55, Erin Shepherd wrote: > > Spitballing slightly here, but could you avoid this problem by adding > 0.0.0.0/0+ ::0/0+ AS0 RoAs to the table and ac

Re: Overloading RTR to load IRR (Was: Defines for mixed IPv6/IPv4)

2024-01-25 Thread Alexander Zubkov via Bird-users
But I think the problem with no filters is bigger when the RTR server is out. It is not just the short period of time when the peer can announce anything. If rpki autoreload is on it will cause all bad announces that was rejected before to pass the filter now. And if we turn rpki autoreload off, it

Re: Overloading RTR to load IRR (Was: Defines for mixed IPv6/IPv4)

2024-01-25 Thread Alexander Zubkov via Bird-users
On Thu, Jan 25, 2024 at 6:11 PM Maria Matejka wrote: > > On 2024-01-25 17:08, Alexander Zubkov wrote: > > But I think the problem with no filters is bigger when the RTR server is out. > It is not just the short period of time when the peer can announce anything. > If rpki autoreload is on it wil

Re: Doc suggestion - clarifying behaviour when routes are moving between protocols

2024-02-08 Thread Alexander Zubkov via Bird-users
Hi Mark, Actually the best route selection algorithm can be found here: https://bird.network.cz/?get_doc&v=20&f=bird-2.html#ss2.1 And the preference is clearly noticed there. Have you looked for it in some other place? If you describe how did you try to find it, I believe it might help the develo

Re: upgrade from 2.13 to 2.14

2024-02-08 Thread Alexander Zubkov via Bird-users
Hi Marek, Yes, there is a change of syntax in 2.14. The notifications show you that the return type of the function was automatically inferred. https://gitlab.nic.cz/labs/bird/-/blob/v2.14/NEWS?ref_type=tags#L19 > User-defined filter functions that return values now should have return type > sta

Re: Add random number

2024-02-11 Thread Alexander Zubkov via Bird-users
Maybe not random, but some sorta hash will be useful here? And it should not break the invariant mentioned by Maria. But for the hash we still need some means to convert IP addresses to integer numbers, because including IP into the hash seems to be reasonable. On Sun, Feb 11, 2024 at 3:12 PM Max

Re: Multiple ebgp neighbours to the same peer

2024-02-11 Thread Alexander Zubkov via Bird-users
Hi, For example if you want to establish several sessions over different pathes. Also my use-case is to export routes to a BGP monitoring system, that have fixed remote IP, but I want to send "views" from my several upstreams, each over a separate session. On Thu, Feb 8, 2024 at 9:47 AM Bernd Nau

Re: point to point connection but no routes imported.

2024-02-17 Thread Alexander Zubkov via Bird-users
Hi, Just to be sure. 1.1.1.1 and 1.1.1.2 are not in the single /31. Please also provide more details. What protocol output do you show? What route do you want from R2 to R1. Please look at things like these: show route all show route all export show route all protocol On Sat, Feb 17, 2024, 0

Re: point to point connection but no routes imported.

2024-02-18 Thread Alexander Zubkov via Bird-users
Hi, The information you provide is a bit cryptic. For example you showed logs from r1 and r2, but the protocol names mentioned there do not correspond to the provided configs. As I understand, you want to export full view from R2 to R1, it is supposedly via protocol bgp ccre1_ipv4_1, which has exp

Re: Take Specific Value Inside BGP Community

2024-02-20 Thread Alexander Zubkov via Bird-users
Hi, This statement is wrong: peeras = ([(65535, 1000, *)].data2); You try to pick "data2" from the communty set (= comunity filter). Filter itself does not contain values. You need to apply it to some community list first. Still you'll get a community list as a result. But you can pick "data2" o

Re: Injecting OSPF learned routes (only)

2024-02-27 Thread Alexander Zubkov via Bird-users
Hi all, Maybe it can be solved by having those kernel routes in the bird itself? So that it knows about them and choose them as the "best". In that case it will not reexport them back to the kernel. Recent addition of "learn all" option to kernel protocol should be helpful here. Haven't tried such

Re: non-persistent route via birdcl

2024-03-07 Thread Alexander Zubkov via Bird-users
Hi Robert, You can import route from the kernel table and apply blackhole policy based on its parameters like krt_metric or something else. You can also import such routes from non-default kernel table and add it there temporarily. Regards, Alexander On Thu, Mar 7, 2024 at 5:10 PM Robert Blayzor

show bfd sessions

2024-03-11 Thread Alexander Zubkov via Bird-users
Hi all, I noticed in the new version 'show bfd sessions' was extended with 'all' option. But I also noticed that in case of 'show protocols', 'show ospf state|topology' this option comes before [name], but for 'show bfd sessions' it is the other way. I think it would be better to be consistent her

Re: [PATCH] BSD: macOS Support

2024-03-13 Thread Alexander Zubkov via Bird-users
Hi, Maybe Darwin would be enough for testing this? It seems to me, that is should contain all the necessary staff used by bird. Although, I do not have experience with Darwin. Regards, Alexander On Wed, Mar 13, 2024 at 2:34 PM Tom Herbers wrote: > > Hi, > > GitHub offers free macOS Runners via

Re: Adding a downstream ebgp connection. How to keep it separate?

2024-03-19 Thread Alexander Zubkov via Bird-users
Hi, I think you need to start with explaining why do you want to keep customer and upstream routes in separate tables. Regards, Alexander On Tue, Mar 19, 2024 at 1:39 PM LU wrote: > > Hello. > > I have two BGP routers with bird 2.4. Each router maintains some eBGP > connections to upstreams wh

Re: Problem with uplink network announcment in IPv6

2024-04-02 Thread Alexander Zubkov via Bird-users
Hello, It would be helpful if you showed "ip route show" instead of "ip route get" for your routes, so that one could see actual routes you have in the routing table. Please also show you bird configuration. Regards, Alexander On Fri, Mar 29, 2024 at 8:53 AM Yasen Atanasov wrote: > > Hello, > >

Re: " bfd1: Socket error: Destination address required"

2024-04-29 Thread Alexander Zubkov via Bird-users
Hi, You do not need to define neighbors for BGP sessions explicitly in your BFD config. They are created automatically for BGP sessions with BFD enabled. In that case, I suppose, you won't get errors for the missing neighbors. Regards, Alexander On Mon, Apr 29, 2024 at 1:16 PM Fran via Bird-user

Re: Route matching filter not exported

2024-05-17 Thread Alexander Zubkov via Bird-users
Hello, Just curious. You've done "reload out" to your session after changing the filter, right? Regards, Alexander On Fri, May 17, 2024 at 4:45 PM Nico Schottelius via Bird-users wrote: > > > Hello bird users, > > I've a strange case in which a router does not export routes that are > matched b

Re: Route matching filter not exported

2024-05-17 Thread Alexander Zubkov via Bird-users
OK, I see that routes you showed have best from protocol ibgp. So I suppose they received from ibgp peer, and your are sending them to ibgp peer too. That is not allowed by default. On Fri, May 17, 2024, 17:00 Nico Schottelius wrote: > > Ciao Alexander, > > Alexander Zubkov writes: > > > Hello,

  1   2   >