]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
18 months agoMerge commit 'v2.13.1-143-g7441ff74' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:39:01 +0000 (14:39 +0100)] 
Merge commit 'v2.13.1-143-g7441ff74' into mq-merge-step-2

18 months agoMerge commit 'e83beb70bd14923cece5b35411606ade6fb8fbee' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:39:00 +0000 (14:39 +0100)] 
Merge commit 'e83beb70bd14923cece5b35411606ade6fb8fbee' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-141-g4f806813' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:29:16 +0000 (14:29 +0100)] 
Merge commit 'v2.13.1-141-g4f806813' into mq-merge-step-2

18 months agoMerge commit '57aa077227d1f2440dc1b2bb6cbbebd418a6b898' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:29:15 +0000 (14:29 +0100)] 
Merge commit '57aa077227d1f2440dc1b2bb6cbbebd418a6b898' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-139-gc9d1ebbd' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:28:09 +0000 (14:28 +0100)] 
Merge commit 'v2.13.1-139-gc9d1ebbd' into mq-merge-step-2

18 months agoMerge commit 'ba01a6f2e66d03eb5d9426fdf4973f30e09c5710' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:28:07 +0000 (14:28 +0100)] 
Merge commit 'ba01a6f2e66d03eb5d9426fdf4973f30e09c5710' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-137-g31e60fd4' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:24:55 +0000 (14:24 +0100)] 
Merge commit 'v2.13.1-137-g31e60fd4' into mq-merge-step-2

18 months agoMerge commit 'de09fda5dcef16bf50663f7ffb56074e6ad20b5a' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:24:54 +0000 (14:24 +0100)] 
Merge commit 'de09fda5dcef16bf50663f7ffb56074e6ad20b5a' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-135-gb560a074' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:22:53 +0000 (14:22 +0100)] 
Merge commit 'v2.13.1-135-gb560a074' into mq-merge-step-2

18 months agoMerge commit 'abae806efdf6ac5f919c93057dd8df1faff1058c' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:22:51 +0000 (14:22 +0100)] 
Merge commit 'abae806efdf6ac5f919c93057dd8df1faff1058c' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-133-g7cc3d300' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:20:45 +0000 (14:20 +0100)] 
Merge commit 'v2.13.1-133-g7cc3d300' into mq-merge-step-2

18 months agoMerge commit 'ab47c2ae466f785212f0519388417ebb31b2cf24' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:20:44 +0000 (14:20 +0100)] 
Merge commit 'ab47c2ae466f785212f0519388417ebb31b2cf24' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-131-g21c3a54d' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 13:20:22 +0000 (14:20 +0100)] 
Merge commit 'v2.13.1-131-g21c3a54d' into mq-merge-step-2

18 months agoMerge commit 'd41b06238dc2167f8e470aa2fb31cb937ff8fb3e' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 13:20:21 +0000 (14:20 +0100)] 
Merge commit 'd41b06238dc2167f8e470aa2fb31cb937ff8fb3e' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-129-g481d3acc' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 12:30:06 +0000 (13:30 +0100)] 
Merge commit 'v2.13.1-129-g481d3acc' into mq-merge-step-2

18 months agoMerge commit '6a242b3ec66f2ab89f9277e67125eab3e3676644' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 12:30:05 +0000 (13:30 +0100)] 
Merge commit '6a242b3ec66f2ab89f9277e67125eab3e3676644' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-127-gdcd0cc08' into mq-merge-step-2
Maria Matejka [Sun, 28 Jan 2024 12:29:24 +0000 (13:29 +0100)] 
Merge commit 'v2.13.1-127-gdcd0cc08' into mq-merge-step-2

18 months agoMerge commit '0bfa216f496279905b843abcfb1242477b86783c' into mq-merge-step-1
Maria Matejka [Sun, 28 Jan 2024 12:29:22 +0000 (13:29 +0100)] 
Merge commit '0bfa216f496279905b843abcfb1242477b86783c' into mq-merge-step-1

18 months agoMerge commit 'v2.13.1-125-g90b9e871' into mq-merge-step-2
Maria Matejka [Fri, 26 Jan 2024 22:29:17 +0000 (23:29 +0100)] 
Merge commit 'v2.13.1-125-g90b9e871' into mq-merge-step-2

18 months agoMerge commit 'be09b030ed40c76ee0727dd3980df77094fdc907' into mq-merge-step-1
Maria Matejka [Fri, 26 Jan 2024 22:29:14 +0000 (23:29 +0100)] 
Merge commit 'be09b030ed40c76ee0727dd3980df77094fdc907' into mq-merge-step-1

18 months agoMerge commit '4f2aa1319c1ff80939c656bba7d529d84d1af350' into mq-merge-step-2
Maria Matejka [Fri, 26 Jan 2024 22:26:08 +0000 (23:26 +0100)] 
Merge commit '4f2aa1319c1ff80939c656bba7d529d84d1af350' into mq-merge-step-2

18 months agoMerge commit 'cab5fce2b6822b7f3a892103077f26e197fecfbc' into mq-merge-step-1
Maria Matejka [Fri, 26 Jan 2024 22:25:25 +0000 (23:25 +0100)] 
Merge commit 'cab5fce2b6822b7f3a892103077f26e197fecfbc' into mq-merge-step-1

18 months agoMerge commit 'd5fd7ec6' into mq-aggregator-for-v3
Maria Matejka [Fri, 26 Jan 2024 22:24:14 +0000 (23:24 +0100)] 
Merge commit 'd5fd7ec6' into mq-aggregator-for-v3

18 months agoMerge commit '8a70885694c5a3b384deba0f8cd25b7f63b99fcd' into HEAD
Maria Matejka [Fri, 26 Jan 2024 22:23:56 +0000 (23:23 +0100)] 
Merge commit '8a70885694c5a3b384deba0f8cd25b7f63b99fcd' into HEAD

19 months agoMerge commit 'bb094fb6' into mq-aggregator-for-v3 mq-aggregator-for-v3
Maria Matejka [Fri, 8 Dec 2023 11:09:17 +0000 (12:09 +0100)] 
Merge commit 'bb094fb6' into mq-aggregator-for-v3

19 months agoRefactoring also net_roa_check
Maria Matejka [Fri, 8 Dec 2023 11:07:46 +0000 (12:07 +0100)] 
Refactoring also net_roa_check

Having 4 functions doing almost the same is more mess than three macros.

19 months agoMerge commit '54ddf90f6370f06efc71c3ffd6e02d031a86866f' into mq-aggregator-for-v3
Maria Matejka [Fri, 8 Dec 2023 08:08:38 +0000 (09:08 +0100)] 
Merge commit '54ddf90f6370f06efc71c3ffd6e02d031a86866f' into mq-aggregator-for-v3

19 months agoConf: debug tables
Maria Matejka [Thu, 7 Dec 2023 13:38:05 +0000 (14:38 +0100)] 
Conf: debug tables

For now just a dummy config but it is needed for forward
compatibility with v3.

19 months agoRefactoring of net_route
Maria Matejka [Thu, 7 Dec 2023 13:10:11 +0000 (14:10 +0100)] 
Refactoring of net_route

19 months agoTable: Adding route refresh begin and end debug messages
Maria Matejka [Thu, 7 Dec 2023 12:54:41 +0000 (13:54 +0100)] 
Table: Adding route refresh begin and end debug messages

20 months agoC Compiler Attribute Cleanup Test
Maria Matejka [Thu, 26 Oct 2023 21:09:20 +0000 (23:09 +0200)] 
C Compiler Attribute Cleanup Test

There is a long-known CC attribute cleanup which allows to call a custom
cleanup function when an auto-storage variable ceases to exist. We're
gonna use it for end-of-loop and leave-locked-block macros.

This commit adds a static unit test for this compiler feature to be sure
that it really does what we want. We're looking forward to the next ISO
C norm where this may finally get a nice syntax and standardization.

20 months agoMerge commit '8f5511da' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 15:53:45 +0000 (16:53 +0100)] 
Merge commit '8f5511da' into mq-aggregator-for-v3

20 months agoMerge commit 'd8130da8' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 15:36:54 +0000 (16:36 +0100)] 
Merge commit 'd8130da8' into mq-aggregator-for-v3

20 months agoMerge commit 'a7a9df86' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 15:34:20 +0000 (16:34 +0100)] 
Merge commit 'a7a9df86' into mq-aggregator-for-v3

20 months agoMerge commit '9b775859' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 15:00:44 +0000 (16:00 +0100)] 
Merge commit '9b775859' into mq-aggregator-for-v3

20 months agoMerge commit 'e915f99e' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 15:00:09 +0000 (16:00 +0100)] 
Merge commit 'e915f99e' into mq-aggregator-for-v3

20 months agoMerge commit 'b6385dec' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:58:58 +0000 (15:58 +0100)] 
Merge commit 'b6385dec' into mq-aggregator-for-v3

20 months agoMerge commit '81a20ca5' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:50:39 +0000 (15:50 +0100)] 
Merge commit '81a20ca5' into mq-aggregator-for-v3

20 months agoMerge commit '35726051' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:50:28 +0000 (15:50 +0100)] 
Merge commit '35726051' into mq-aggregator-for-v3

20 months agoMerge commit 'fcf22586' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:50:02 +0000 (15:50 +0100)] 
Merge commit 'fcf22586' into mq-aggregator-for-v3

20 months agoMerge commit '8e9e013b' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:35:18 +0000 (15:35 +0100)] 
Merge commit '8e9e013b' into mq-aggregator-for-v3

20 months agoMerge commit '3397ca51' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:35:08 +0000 (15:35 +0100)] 
Merge commit '3397ca51' into mq-aggregator-for-v3

20 months agoMerge commit 'e338c4b6' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 14:34:54 +0000 (15:34 +0100)] 
Merge commit 'e338c4b6' into mq-aggregator-for-v3

20 months agoMerge commit 'bcff3ae7' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 10:06:07 +0000 (11:06 +0100)] 
Merge commit 'bcff3ae7' into mq-aggregator-for-v3

20 months agoMerge commit '9ca86ef6' into mq-aggregator-for-v3
Maria Matejka [Thu, 9 Nov 2023 09:52:53 +0000 (10:52 +0100)] 
Merge commit '9ca86ef6' into mq-aggregator-for-v3

20 months agoMerge commit '9d456d53' into mq-aggregator-for-v3
Maria Matejka [Wed, 8 Nov 2023 21:14:58 +0000 (22:14 +0100)] 
Merge commit '9d456d53' into mq-aggregator-for-v3

20 months agoMerge commit '15c86ed0' into mq-aggregator-for-v3
Maria Matejka [Wed, 8 Nov 2023 20:56:58 +0000 (21:56 +0100)] 
Merge commit '15c86ed0' into mq-aggregator-for-v3

20 months agoMPLS: Fix issue with recursive MPLS routes
Ondrej Zajicek [Mon, 16 Oct 2023 13:21:36 +0000 (15:21 +0200)] 
MPLS: Fix issue with recursive MPLS routes

Recursive MPLS routes used hostentry from the original route, which
triggered different table than MPLS table, and therefore were not
updated.

21 months agoMerge commit '333ddd4f' into mq-aggregator-for-v3
Maria Matejka [Wed, 1 Nov 2023 17:34:06 +0000 (18:34 +0100)] 
Merge commit '333ddd4f' into mq-aggregator-for-v3

21 months agoMerge commit 'e55696a4' into mq-aggregator-for-v3
Maria Matejka [Wed, 1 Nov 2023 17:08:34 +0000 (18:08 +0100)] 
Merge commit 'e55696a4' into mq-aggregator-for-v3

21 months agoMerge commit '21213be5' into mq-aggregator-for-v3
Maria Matejka [Wed, 1 Nov 2023 16:49:12 +0000 (17:49 +0100)] 
Merge commit '21213be5' into mq-aggregator-for-v3

21 months agoMerge commit '8ad9c4bb' into mq-aggregator-for-v3
Maria Matejka [Wed, 1 Nov 2023 16:46:52 +0000 (17:46 +0100)] 
Merge commit '8ad9c4bb' into mq-aggregator-for-v3

21 months agoAggregator: fixed route source unlocking on shutdown and withdraw
Maria Matejka [Wed, 1 Nov 2023 13:30:46 +0000 (14:30 +0100)] 
Aggregator: fixed route source unlocking on shutdown and withdraw

21 months agoAggregator: Fixed bugs in filter usage
Maria Matejka [Wed, 1 Nov 2023 09:57:43 +0000 (10:57 +0100)] 
Aggregator: Fixed bugs in filter usage

21 months agoMerge commit 'a4adb09f5a5c3806488fb121eafc0e6c969135e7' into HEAD
Maria Matejka [Wed, 1 Nov 2023 09:15:32 +0000 (10:15 +0100)] 
Merge commit 'a4adb09f5a5c3806488fb121eafc0e6c969135e7' into HEAD

21 months agoAggregator: Expressed most of the attribute logic in filter language
Maria Matejka [Tue, 31 Oct 2023 10:37:54 +0000 (11:37 +0100)] 
Aggregator: Expressed most of the attribute logic in filter language

21 months agoBasic route aggregation
Igor Putovny [Wed, 21 Jun 2023 11:15:07 +0000 (13:15 +0200)] 
Basic route aggregation

Add a new protocol offering route aggregation.

User can specify list of route attributes in the configuration file and
run route aggregation on the export side of the pipe protocol. Routes are
sorted and for every group of equivalent routes new route is created and
exported to the routing table. It is also possible to specify filter
which will run for every route before aggregation.

Furthermore, it will be possible to set attributes of new routes
according to attributes of the aggregated routes.

This is a work in progress.

Original work by Igor Putovny, subsequent cleanups and finalization by
Maria Matejka.

This is a split-commit of the neighboring aggregator branch
with a bit improved lvalue handling, to have easier merge into v3.

21 months agoFilters: allowing to return any number of values
Maria Matejka [Tue, 31 Oct 2023 11:03:49 +0000 (12:03 +0100)] 
Filters: allowing to return any number of values

21 months agoFilter: value hashing
Maria Matejka [Tue, 31 Oct 2023 10:52:30 +0000 (11:52 +0100)] 
Filter: value hashing

Added a code for computing hash of filter values.

This is a split-commit of the neighboring aggregator branch
with improved lvalue and attribute handling.

21 months agoFilter: predefined variables for specific blocks
Maria Matejka [Mon, 30 Oct 2023 09:44:45 +0000 (10:44 +0100)] 
Filter: predefined variables for specific blocks

This is a split-commit of the neighboring aggregator branch
with a bit improved lvalue handling, to have easier merge into v3.

21 months agoFilter: adding explicit route-block type
Maria Matejka [Mon, 30 Oct 2023 08:49:20 +0000 (09:49 +0100)] 
Filter: adding explicit route-block type

This is a split-commit of the neighboring aggregator branch
with a bit improved lvalue handling, to have easier merge into v3.

21 months agoFilter: adding explicit route type
Maria Matejka [Sun, 29 Oct 2023 18:53:09 +0000 (19:53 +0100)] 
Filter: adding explicit route type

This is a split-commit of the neighboring aggregator branch
with a bit improved lvalue handling, to have easier merge into v3.

22 months agoKRT: Allow to learn routes with RTPROT_KERNEL
Pavel Šorejs [Fri, 6 Oct 2023 02:31:19 +0000 (04:31 +0200)] 
KRT: Allow to learn routes with RTPROT_KERNEL

The Kernel protocol, even with the option 'learn' enabled, ignores
direct routes created by the OS kernel (on Linux these are routes
with rtm_protocol == RTPROT_KERNEL).

Implement optional behavior where both OS kernel and third-party routes
are learned, it can be enabled by 'learn all' option.

Minor changes by committer.

22 months agoBGP: Improve custom BGP attributes
Ondrej Zajicek [Thu, 5 Oct 2023 19:29:04 +0000 (21:29 +0200)] 
BGP: Improve custom BGP attributes

 - Implement EA_GET for custom BGP attributes
 - Forbid EA_SET on existing opaque attributes
 - Forbid redefining existing attributes
 - Document possible compatibility problems

22 months agoMPLS: Handle compatibility with old configs
Ondrej Zajicek [Thu, 5 Oct 2023 15:54:43 +0000 (17:54 +0200)] 
MPLS: Handle compatibility with old configs

Old configs do not define MPLS domains and may use a static protocol
to define static MPLS routes.

When MPLS channel is the only channel of static protocol, handle it
as a main channel. Also, define implicit MPLS domain if needed and
none is defined.

22 months agoFilter: Fix scope handling in for loops
Ondrej Zajicek [Thu, 5 Oct 2023 12:26:22 +0000 (14:26 +0200)] 
Filter: Fix scope handling in for loops

Changes in scope implementation broke scope handling in for loops.
The term in for loops is supposed to be parsed in the parent scope.

22 months agoConf: Fix 'show symbols'
Ondrej Zajicek [Wed, 4 Oct 2023 18:14:12 +0000 (20:14 +0200)] 
Conf: Fix 'show symbols'

Seems like the root scope was not marked as active.

22 months agoBGP: Custom attribute definitions should use cfg_alloc(), not malloc()
Ondrej Zajicek [Wed, 4 Oct 2023 17:45:00 +0000 (19:45 +0200)] 
BGP: Custom attribute definitions should use cfg_alloc(), not malloc()

Otherwise we would get memory leaks.

22 months agoFilter: explicitly forbidden for-loop with pre-defined variable
Maria Matejka [Wed, 4 Oct 2023 17:57:55 +0000 (19:57 +0200)] 
Filter: explicitly forbidden for-loop with pre-defined variable

22 months agoIO: Fix race condition in event processing
Ondrej Zajicek [Wed, 4 Oct 2023 15:36:03 +0000 (17:36 +0200)] 
IO: Fix race condition in event processing

When regular event was added from work event, we did remember that
regular event list was empty and therefore we did not use zero time
in poll(). This leads to ~3 s latency in route reload during
reconfiguration.

22 months agoDoc: Fix syntax errors in SGML
Ondrej Zajicek [Wed, 4 Oct 2023 13:25:05 +0000 (15:25 +0200)] 
Doc: Fix syntax errors in SGML

22 months agoMPLS: Update to support and use 64bit source id
Ondrej Zajicek [Wed, 4 Oct 2023 13:00:24 +0000 (15:00 +0200)] 
MPLS: Update to support and use 64bit source id

22 months agoDoc: L3VPN documentation
Ondrej Zajicek [Wed, 4 Oct 2023 11:00:06 +0000 (13:00 +0200)] 
Doc: L3VPN documentation

22 months agoDoc: MPLS documentation
Ondrej Zajicek [Tue, 3 Oct 2023 14:11:18 +0000 (16:11 +0200)] 
Doc: MPLS documentation

22 months agoL3VPN: Import/export target reconfiguration
Ondrej Zajicek [Sun, 1 Oct 2023 03:02:46 +0000 (05:02 +0200)] 
L3VPN: Import/export target reconfiguration

22 months agoBGP, L3VPN: Fix MPLS channel reload mq-master-merged-to-v3
Ondrej Zajicek [Sat, 30 Sep 2023 21:18:04 +0000 (23:18 +0200)] 
BGP, L3VPN: Fix MPLS channel reload

When a MPLS channel is reloaded, it should reload all regular MPLS-aware
channels. This causes re-evaluation of routes in FEC map and possibly
reannouncement of MPLS routes.

22 months agoMPLS: Implement FEC map reconfiguration
Ondrej Zajicek [Sat, 30 Sep 2023 18:07:40 +0000 (20:07 +0200)] 
MPLS: Implement FEC map reconfiguration

This allows changing label policy or label range without restart.

22 months agoMPLS: Handle label allocation failures
Ondrej Zajicek [Tue, 26 Sep 2023 16:50:20 +0000 (18:50 +0200)] 
MPLS: Handle label allocation failures

22 months agoL3VPN: Fix bug in reconfiguration
Ondrej Zajicek [Sat, 23 Sep 2023 22:24:50 +0000 (00:24 +0200)] 
L3VPN: Fix bug in reconfiguration

Fields import_target / export_target link to config structures, must be
updated during reconfiguration.

22 months agoMPLS: Improve handling of static label allocations
Ondrej Zajicek [Sat, 23 Sep 2023 15:55:01 +0000 (17:55 +0200)] 
MPLS: Improve handling of static label allocations

Use mpls_new_label() / mpls_free_label() also for static labels, to keep
track of allocated labels and to enforce label ranges.

Static label allocations always use static label range, regardless of
configured label range.

22 months agoStatic: Add syntax for static MPLS labels
Ondrej Zajicek [Fri, 22 Sep 2023 17:49:15 +0000 (19:49 +0200)] 
Static: Add syntax for static MPLS labels

Instead of just using route attributes, static routes with
static MPLS labels can be defined just by e.g.:

  route 10.1.1.0/24 mpls 100 via 10.1.2.1 mpls 200;

22 months agoMPLS: Label range non-intersection check
Ondrej Zajicek [Fri, 22 Sep 2023 13:47:48 +0000 (15:47 +0200)] 
MPLS: Label range non-intersection check

22 months agoMPLS: Improve label range reconfiguration
Ondrej Zajicek [Mon, 18 Sep 2023 15:47:17 +0000 (17:47 +0200)] 
MPLS: Improve label range reconfiguration

Allow to shorten label range over unused area.

22 months agoMPLS: Add command 'show mpls ranges'
Ondrej Zajicek [Mon, 18 Sep 2023 15:32:24 +0000 (17:32 +0200)] 
MPLS: Add command 'show mpls ranges'

Add command to show MPLS label ranges and their stats.

22 months agoNest: Fix missing RTS_* values in filters
Ondrej Zajicek [Mon, 18 Sep 2023 12:19:20 +0000 (14:19 +0200)] 
Nest: Fix missing RTS_* values in filters

22 months agoLib: Extend MPLS label allocator bitmap
Ondrej Zajicek [Mon, 18 Sep 2023 12:12:22 +0000 (14:12 +0200)] 
Lib: Extend MPLS label allocator bitmap

Add function lmap_last_one_in_range() for finding the last active label
in a label range.

22 months agoL3VPN: BGP/MPLS VPNs using MPLS backbone
Ondrej Zajicek [Mon, 3 Oct 2022 18:06:13 +0000 (20:06 +0200)] 
L3VPN: BGP/MPLS VPNs using MPLS backbone

The L3VPN protocol implements RFC 4364 BGP/MPLS VPNs using MPLS backbone.
It works similarly to pipe. It connects IP table (one per VRF) with (global)
VPN table. Routes passed from VPN table to IP table are stripped of RD and
filtered by import targets, routes passed in the other direction are extended
with RD, MPLS labels and export targets in extended communities. A separate
MPLS channel is used to announce MPLS routes for the labels.

22 months agoMPLS: Add support for per-VRF labeling policy
Ondrej Zajicek [Sat, 1 Oct 2022 20:38:49 +0000 (22:38 +0200)] 
MPLS: Add support for per-VRF labeling policy

The new labeling policy MPLS_POLICY_VRF assigns one label to all routes
(from the same FEC map associated with one VRF), while replaces their
next hops with a lookup to a VRF table. This is useful for L3VPN
protocol.

22 months agoBGP: Add MPLS support
Ondrej Zajicek [Thu, 15 Sep 2022 00:30:15 +0000 (02:30 +0200)] 
BGP: Add MPLS support

When MPLS is active, received routes on MPLS-aware SAFIs (ipvX-mpls,
vpnX-mpls) are automatically labeled according to active label policy and
corresponding MPLS routes are automatically generated. Also routes sent
on MPLS-aware SAFIs announce local labels when it should be done.

22 months agoStatic: Add MPLS support
Ondrej Zajicek [Thu, 15 Sep 2022 00:29:12 +0000 (02:29 +0200)] 
Static: Add MPLS support

When MPLS is active, static IP/VPN routes are automatically labeled
according to active label policy and corresponding MPLS routes are
automatically generated.

22 months agoMPLS subsystem
Ondrej Zajicek [Wed, 14 Sep 2022 23:38:18 +0000 (01:38 +0200)] 
MPLS subsystem

The MPLS subsystem manages MPLS labels and handles their allocation to
MPLS-aware routing protocols. These labels are then attached to IP or VPN
routes representing label switched paths -- LSPs.

There was already a preliminary MPLS support consisting of MPLS label
net_addr, MPLS routing tables with static MPLS routes, remote labels in
next hops, and kernel protocol support.

This patch adds the MPLS domain as a basic structure representing local
label space with dynamic label allocator and configurable label ranges.
To represent LSPs, allocated local labels can be attached as route
attributes to IP or VPN routes with local labels as attributes.

There are several steps for handling LSP routes in routing protocols --
deciding to which forwarding equivalence class (FEC) the LSP route
belongs, allocating labels for new FECs, announcing MPLS routes for new
FECs, attaching labels to LSP routes. The FEC map structure implements
basic code for managing FECs in routing protocols, therefore existing
protocols can be made MPLS-aware by adding FEC map and delegating
most work related to local label management to it.

22 months agoLib: Indirect bitmap for MPLS label allocator
Ondrej Zajicek (work) [Sat, 22 May 2021 10:31:47 +0000 (12:31 +0200)] 
Lib: Indirect bitmap for MPLS label allocator

22 months agoNest: Expand rte_src.private_id to u64
Ondrej Zajicek [Mon, 2 Oct 2023 13:09:30 +0000 (15:09 +0200)] 
Nest: Expand rte_src.private_id to u64

In general, private_id is sparse and protocols may want to map some
internal values directly into it. For example, L3VPN needs to
map VPN route discriminators to private_id.

OTOH, u32 is enough for global_id, as these identifiers are dense.

22 months agoBGP config: Splitting Route Refresh and Enhanced Route Refresh
Maria Matejka [Wed, 27 Sep 2023 10:51:55 +0000 (12:51 +0200)] 
BGP config: Splitting Route Refresh and Enhanced Route Refresh

Both toggles are on by default but if some implementation needs one or
another to be switched off separately, then it's possible now.

22 months agoAggregator: brief documentation
Maria Matejka [Fri, 22 Sep 2023 13:10:45 +0000 (15:10 +0200)] 
Aggregator: brief documentation

22 months agoAggregator: Forbidden dangerous filter computations
Maria Matejka [Fri, 22 Sep 2023 12:21:21 +0000 (14:21 +0200)] 
Aggregator: Forbidden dangerous filter computations

22 months agoAggregator: Fixed hashing of adata
Maria Matejka [Wed, 12 Jul 2023 13:11:00 +0000 (15:11 +0200)] 
Aggregator: Fixed hashing of adata

22 months agoBasic route aggregation
Igor Putovny [Wed, 21 Jun 2023 11:15:07 +0000 (13:15 +0200)] 
Basic route aggregation

Add a new protocol offering route aggregation.

User can specify list of route attributes in the configuration file and
run route aggregation on the export side of the pipe protocol. Routes are
sorted and for every group of equivalent routes new route is created and
exported to the routing table. It is also possible to specify filter
which will run for every route before aggregation.

Furthermore, it will be possible to set attributes of new routes
according to attributes of the aggregated routes.

This is a work in progress.

Original work by Igor Putovny, subsequent cleanups and finalization by
Maria Matejka.

22 months agoSimple testing of reconfiguration to a slightly different one
Maria Matejka [Fri, 23 Jun 2023 07:05:48 +0000 (09:05 +0200)] 
Simple testing of reconfiguration to a slightly different one

22 months agoBGP: Setting and unsetting unknown attributes kk-bgp-unknown-attributes
katerina.kubecova [Tue, 19 Sep 2023 09:11:24 +0000 (11:11 +0200)] 
BGP: Setting and unsetting unknown attributes

All these must be declared as bytestring. Allows operators to delete
unwanted attributes breaking the Internet:

    https://blog.benjojo.co.uk/post/bgp-path-attributes-grave-error-handling