Re: router_id or source neighbor in import/export filter for dynamic BGP peers

2024-09-27 Thread Alexander Zubkov via Bird-users
Hi all, It seems to me that Mikhail wants to know the protocol information, in context of which the filter is executed. And he also wants it in the export filter, to know protocol/peer/etc. Regards, Alexander On Fri, Sep 27, 2024, 17:23 Ondrej Zajicek wrote: > On Fri, Sep 27, 2024 at 04:06:04P

Re: Issues with parsing config for IPv6 link-local BGP sessions

2024-09-10 Thread Alexander Zubkov via Bird-users
Hi Sander, That is dynamic BGP. You daemon accpets connections from any allowed adress, then it will spawn a dynamic bgp protocol. It works because the other side knows your IP and tries to connect to it. Regards, Alexander On Tue, Sep 10, 2024 at 3:58 PM Sander P wrote: > > Hi Alexander, > > M

Re: Issues with parsing config for IPv6 link-local BGP sessions

2024-09-10 Thread Alexander Zubkov via Bird-users
Hi Sander, Yes, a specific interface often not required, because it can be determined by the routing table. But, for example, in case when you neighbor IP is considered directly reachable (connected) on several interfaces, connection might be initiated not on the interface that you expect. And for

Re: Issues with parsing config for IPv6 link-local BGP sessions

2024-09-09 Thread Alexander Zubkov via Bird-users
Hi Sander, The error indicates that you are missing the neighbor's address in your configuration. Regards, Alexander On Mon, Sep 9, 2024 at 4:54 PM Sander P wrote: > > Hi, > > I'm on Bird 2.0.8 > The background is that I'm trying to configure link local BGP sessions > towards Juniper switches.

Re: PATCH: IO: Avoid calling SO_BINDTODEVICE if not needed

2024-07-30 Thread Alexander Zubkov via Bird-users
Hi, Yes, you are right, it makes another unneeded level of indirection. Because sk_setup() is called from only 2 paces now - sk_open() and sk_passive_connected(). Those are already specific initialization functions. And there is no reason to add additional layer, when VRF code could be moved direc

Re: PATCH: IO: Avoid calling SO_BINDTODEVICE if not needed

2024-07-29 Thread Alexander Zubkov via Bird-users
Hi Ondrej, What do you think about splitting sk_setup() into different flavours? See the example patch attached. This approach may be more beneficial, because it does not count on different internal socket types, but uses direct logic of calling specific initialization function depending how the s

Re: PATCH: IO: Avoid calling SO_BINDTODEVICE if not needed

2024-07-27 Thread Alexander Zubkov via Bird-users
I'm not a BIRD developer, so I cannot decide hare what is the right direction for you to implement the patch. But it seems to me that it is the question that should be raised. As for implementation, I'm not sure, but from a quick glance at a code, it seem that vrf binding might be moved from sk_set

Re: PATCH: IO: Avoid calling SO_BINDTODEVICE if not needed

2024-07-27 Thread Alexander Zubkov via Bird-users
Hi Christian and all! I wonder if it is necessary at all to set a vrf on an accepted connection? It seems to me that setting or checking vrf should be avoided instead for an accepted connection. What do you think? On Sat, Jul 27, 2024, 11:54 Christian Svensson via Bird-users < bird-users@network.

Re: Extended communities ASN wildcard, extraction of eclist.

2024-07-03 Thread Alexander Zubkov via Bird-users
As extended communities have more complex structure than small or large communities. It would be great to hear suggestions how such extractors could look like. At least I do not have much experience with them. On Wed, Jul 3, 2024 at 12:01 PM Ochalski, Radoslaw wrote: > Thanks Alexander. > > > I

Re: Extended communities ASN wildcard, extraction of eclist.

2024-07-02 Thread Alexander Zubkov via Bird-users
Hi, I think you can use "for" loop to work with a list of communities. But for ec there are currently no operators to access its inner components. I think partly because nobody has suggested such operators and their semantics yet. Regards, Alexander On Tue, Jul 2, 2024 at 1:17 PM Ochalski, Rados

Re: IPv6 BFD interop with Huawei, checksum 0 UDP

2024-06-27 Thread Alexander Zubkov via Bird-users
e75f80e9e545a#aa0b6ef7f4f7e5b9ffe1c80813d128cb4568fa53_140_140 On Thu, Jun 27, 2024 at 4:08 PM Ondrej Zajicek wrote: > > On Thu, Jun 27, 2024 at 10:26:17AM +0200, Alexander Zubkov via Bird-users > wrote: > > Hi all, > > > > Slightly modified the patch (names & description) in spite of the > > ch

Re: IPv6 BFD interop with Huawei, checksum 0 UDP

2024-06-27 Thread Alexander Zubkov via Bird-users
Hi all, Slightly modified the patch (names & description) in spite of the checksum verify semantics. On Wed, Jun 26, 2024 at 9:03 AM Ville O wrote: > > Hello All, > > On Tue, Jun 25, 2024 at 9:05 PM Alexander Zubkov via Bird-users > wrote: > > On Tue, Jun 25, 2024

Re: IPv6 BFD interop with Huawei, checksum 0 UDP

2024-06-25 Thread Alexander Zubkov via Bird-users
Hi, On Tue, Jun 25, 2024 at 3:04 PM Ondrej Zajicek wrote: > > On Sat, Jun 22, 2024 at 07:44:34PM +0200, Alexander Zubkov via Bird-users > wrote: > > Hello, > > > > Nobody has done it yet, so I've tried to implement it. The patch is > > attached. Of course f

Re: IPv6 BFD interop with Huawei, checksum 0 UDP

2024-06-22 Thread Alexander Zubkov via Bird-users
Hello, Nobody has done it yet, so I've tried to implement it. The patch is attached. Of course feel free to alter naming, wording, add credits for the reported, etc. as you wish. Ville, could you check that it works for you? PS. 1) I also noticed there is "strict bind" example is missing in BFD

nl_allow_replace check for primary key

2024-06-16 Thread Alexander Zubkov via Bird-users
Hi all, I've noticed this patch: https://gitlab.nic.cz/labs/bird/-/commit/00b139bd25c77b401d2065283cb970d9d8c1aa02 It says that "(net, metric) is the primary key". But for my understanding the primary key in linux routing table also includes tos. It seems that BIRD currently does not support rout

Re: bird BFD is DOWN

2024-06-08 Thread Alexander Zubkov via Bird-users
Hi, Could it be issue with a source port? It is described in the documentation, btw: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.3 On Sat, Jun 8, 2024, 03:51 Maria Matejka via Bird-users < bird-users@network.cz> wrote: > Hello! > > On first sight this looks like Fortinet ignoring th

Re: [Routing Issue] There are two same net range routing on routing table.

2024-06-02 Thread Alexander Zubkov via Bird-users
Hi, Do you alter krt_metric in you kernel protocol export filter? That could cause such problem. There was recently a question about it in this mailing list. Regards, Alexander On Mon, Jun 3, 2024, 03:40 이재용 wrote: > Hello, > > We use BIRD for communication with servers with higher-level switc

Re: Route matching filter not exported

2024-05-17 Thread Alexander Zubkov via Bird-users
Say you have router A having routes with localpref 50, and router B with localpref 100. When A receives a prefix from B, it will be the best in A's table. Router A will not try to propagate routes with localpref 50, because only the best route are propagated (usually). And as the best route is that

Re: Route matching filter not exported

2024-05-17 Thread Alexander Zubkov via Bird-users
That looks different from the output in the first email. There best routes were received not only from ibgp, but from the same peer, so it seems ok that they were not sent back. For this output you have now session with your ibgp peer eatablished, but it still do not see the routes. Localpref shoul

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,

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: " 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: 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: 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: [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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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-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-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: 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: 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: 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: 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: 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: 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: 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: 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: [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: [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: 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: 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 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: 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: 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: 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: [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: [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-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: 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-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

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-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

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: 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: 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: [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: [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-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-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
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-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-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-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: 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-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: [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-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-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-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
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
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
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

[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: 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

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: 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: 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: 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: 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: 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: 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: 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: [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: [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

  1   2   >