]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
12 months agobgpd: remove ATTR_NEXT_HOP for redistributed ipv6 nexthops
Philippe Guibert [Wed, 1 Feb 2023 15:52:28 +0000 (16:52 +0100)]
bgpd: remove ATTR_NEXT_HOP for redistributed ipv6 nexthops

This commit addresses an issue with an MPLS VPN network
redistributing static routes that are exported to the VPN,
and where the labels are allocated per next-hop.

For that purpose, the nexthop of the static routes is
checked against the nexthop tracking. The validation
of a valid nexthop will trigger the use of a unique
label for all prefixes using that destination.

However, the nexthop fails to be validated, with the
following message:

 > evaluate_paths: prefix 172:31::14/128 (vrf vrf1), ignoring path due to
 > martian or self-next-hop

The reason is due to the way the attr is created.
By default, the ATTR_NEXTHOP attribute is set for
all prefixes, whereas this flag should only be valid
for IPv4. In the case there is an IPv6 nexthop, remove
the ATTR_NEXTHOP flag.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agobgpd: encode_label call, remove unnecessary braces
Philippe Guibert [Sun, 19 Mar 2023 17:26:41 +0000 (18:26 +0100)]
bgpd: encode_label call, remove unnecessary braces

Remove unnecessary braces.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agozebra: mpls nexthop entry displays also interface when available
Philippe Guibert [Thu, 2 Mar 2023 09:46:31 +0000 (10:46 +0100)]
zebra: mpls nexthop entry displays also interface when available

The 'show mpls table json' command displays the outgoing interface
name only when the nexthop type is either NEXTHOP_TYPE_IFINDEX or
NEXTHOP_TYPE_IPV6_IFINDEX. add the interface name for the nexthop
type NEXTHOP_TYPE_IPV4_IFINDEX.

Fixes: ("b78b820d46d6") MPLS: Display enhancements and JSON support
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agozebra: handle nexthop vrf_id in ZEBRA_MPLS_LABELS messages
Philippe Guibert [Thu, 12 Jan 2023 07:44:29 +0000 (08:44 +0100)]
zebra: handle nexthop vrf_id in ZEBRA_MPLS_LABELS messages

This commit addresses the case where a service wants to install
an LSP entry to a next-hop located in a VRF instance. The incoming
MPLS packet is on the namespace and has to be directed to a nexthop
located behind an interface that sits in a specific VRF instance.
The below iproute command can illustrate:

  > ip link add vrf1 type vrf table 10
  > ip link set dev vrf1 up
  > ip link set dev eth0 master vrf1
  > ip a a 192.0.2.1/24 dev eth0
  > ip -f mpls route add 105 via inet 192.0.2.45 dev eth0

If a service uses the ZEBRA_MPLS_LABELS messages, then the LSP
message is ignored: from zebra perspective, the MPLS entries are
visible via the 'show mpls table' command, but no LSP entry is
installed in the kernel.

The issue is in the nhlfe_nexthop_active_ipv[4/6] function: the
outgoing interface mentioned in the nexthop is searched in the
main VRF, whereas the interface is in a separate VRF. The interface
is not found, and the nhlfe to install is considered not active.

To address this issue, reuse the incoming vrf_id parameter transmitted
in the nexthop structure from the ZEBRA_MPLS_LABELS message. When
creating an NHLFE entry, the vrf_id is used instead of the DEFAULT_VRF.
And the nhlfe entry can be considered as active.

One alternate solution to reuse the vrf_id parameter in the mpls network
context would be to modify the search function in nhlfe_nexthop_active..()
function: looking for an existing ifindex in the zns. However, this
solution may not fit later when netns backend would be used.

Note that some changes have not been done yet and are considered
sufficient for now:
- The 'nhlfe_find' API: the assumption is done that only the linux vrf
backend is used for now.

- The 'mpls_lsp_install()' API: It is currently used by the CLI command
which does not handle the interface parameter, and the SRTE service, whih
always sends LSPs towards a nexthop located in the VRF_DEFAULT.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agozebra: accept LSP entries with an mpls-less outgoing interface
Philippe Guibert [Thu, 12 Jan 2023 07:33:50 +0000 (08:33 +0100)]
zebra: accept LSP entries with an mpls-less outgoing interface

The ZEBRA_MPLS_LABELS_[ADD/DELETE/REPLACE] messages may change an
LSP entry based on an incoming MPLS entry, followed by a given
next-hop.
Having a next hop with no label information inside is rejected
by the zebra layer. As illustration, the following ZAPI message
would be rejected, because the next hop does not contain any
label information.

  > ip -f mpls route add 105 via inet 192.0.2.45

At the same time, such configuration is desirable to be
supported:

An attempt has been done to configure the next-hop with an implicit-
null label. But the message is rejected by the kernel:

  > ip -f mpls route add 104 as 3 via inet 192.0.2.45
  > Error: Implicit NULL Label (3) can not be used in encapsulation.

The commit proposes to accept ZEBRA_MPLS_LABELS_[XX] messages with
a nexthop that does not contain any label information.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agoMerge pull request #13429 from opensourcerouting/feature/mark_pr_as_need_rebase
Donald Sharp [Tue, 9 May 2023 17:39:38 +0000 (13:39 -0400)]
Merge pull request #13429 from opensourcerouting/feature/mark_pr_as_need_rebase

github: Add rebase label on PR if it's > 50 commits behind

12 months agoMerge pull request #13438 from gpnaveen/vrf_on_loopback
Donald Sharp [Tue, 9 May 2023 17:39:18 +0000 (13:39 -0400)]
Merge pull request #13438 from gpnaveen/vrf_on_loopback

tests: removing un used loopback interface from bgp admin dist.

12 months agoMerge pull request #13460 from Jafaral/ospf-fix2
Donald Sharp [Tue, 9 May 2023 17:37:40 +0000 (13:37 -0400)]
Merge pull request #13460 from Jafaral/ospf-fix2

tests: remove sleep ospf test

12 months agoMerge pull request #13484 from sri-mohan1/srib-ldpd
Donald Sharp [Tue, 9 May 2023 17:30:00 +0000 (13:30 -0400)]
Merge pull request #13484 from sri-mohan1/srib-ldpd

ldpd: changes for code maintainability

12 months agoMerge pull request #13470 from crosser/fix-test-frrscript
Donald Sharp [Tue, 9 May 2023 15:30:17 +0000 (11:30 -0400)]
Merge pull request #13470 from crosser/fix-test-frrscript

test_frrscript: fix dep for out of tree build

12 months agoldpd: changes for code maintainability
sri-mohan1 [Tue, 9 May 2023 13:15:27 +0000 (18:45 +0530)]
ldpd: changes for code maintainability

these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
12 months agoMerge pull request #13445 from donaldsharp/lua_scripting_mem_leak
Donatas Abraitis [Tue, 9 May 2023 12:38:06 +0000 (15:38 +0300)]
Merge pull request #13445 from donaldsharp/lua_scripting_mem_leak

zebra: Reduce creation and fix memory leak of frrscripting pointers

12 months agoMerge pull request #13437 from raja-rajasekar/raja-rajasekar/show_cmd_fix
Donatas Abraitis [Tue, 9 May 2023 09:51:16 +0000 (12:51 +0300)]
Merge pull request #13437 from raja-rajasekar/raja-rajasekar/show_cmd_fix

bgpd: Fixing the show bgp <vrf> <afi> <safi> detail command

12 months agogithub: Add rebase label on PR if it's > 50 commits behind
Donatas Abraitis [Wed, 3 May 2023 20:17:58 +0000 (23:17 +0300)]
github: Add rebase label on PR if it's > 50 commits behind

The idea is to catch some PRs and rerun them in CI to avoid merging PRs that
are based on the stale base branch and causes issues afterwards.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
12 months agoMerge pull request #13471 from opensourcerouting/fix/aigp_non_transitive
Jafar Al-Gharaibeh [Tue, 9 May 2023 04:25:07 +0000 (23:25 -0500)]
Merge pull request #13471 from opensourcerouting/fix/aigp_non_transitive

bgpd: AIGP should be non-transitive

12 months agotests: remove sleep ospf test
Jafar Al-Gharaibeh [Mon, 8 May 2023 05:18:25 +0000 (00:18 -0500)]
tests: remove sleep ospf test

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
12 months agotests: Fix out of tree build for lua scripting
Eugene Crosser [Mon, 8 May 2023 16:38:40 +0000 (18:38 +0200)]
tests: Fix out of tree build for lua scripting

test_frrscript is run from the `tests` directory and expects the sample
lua script `script1.lua` to be present in the `lib` directory. When the
package is built out of tree (which always happens when a debian
package is built), and scripting is enabled, test fails because the lua
file is not present in the `tests/lib/` subdir of the _build_ directory.

Fix this by adding `script1.lua` as an extra dependency for
`test_frrscript`, and a recipe that copies the file from the source tree
to the build tree (note: it needs to be marked ".PHONY" because
otherwise `make` thinks that it already exists, in the source tree).

After this commit, the following command starts to work:

    dpkg-buildpackage --build-profiles=pkg.frr.lua -b -uc

Signed-off-by: Eugene Crosser <crosser@average.org>
12 months agotests: Adjust AIGP metric numbers for iBGP setup
Donatas Abraitis [Mon, 8 May 2023 20:22:26 +0000 (23:22 +0300)]
tests: Adjust AIGP metric numbers for iBGP setup

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
12 months agobgpd: Make sure AIGP attribute is non-transitive
Donatas Abraitis [Mon, 8 May 2023 19:49:10 +0000 (22:49 +0300)]
bgpd: Make sure AIGP attribute is non-transitive

The AIGP attribute is an optional, non-transitive BGP path attribute.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
12 months agodoc: add documentation for show [ip] bgp [vrf] [afi] [safi] detail [json]
Rajasekar Raja [Fri, 5 May 2023 16:28:40 +0000 (09:28 -0700)]
doc: add documentation for show [ip] bgp [vrf] [afi] [safi] detail [json]

Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
12 months agoMerge pull request #13468 from opensourcerouting/ripd-memtype-fix
Donald Sharp [Mon, 8 May 2023 19:15:15 +0000 (15:15 -0400)]
Merge pull request #13468 from opensourcerouting/ripd-memtype-fix

ripd: fix another memtype mismatch

12 months agoMerge pull request #13413 from chiragshah6/fdev2
Mark Stapp [Mon, 8 May 2023 18:36:07 +0000 (14:36 -0400)]
Merge pull request #13413 from chiragshah6/fdev2

zebra: re-install NHG on interface up

12 months agoMerge pull request #13464 from sri-mohan1/srib-ldpd
Donald Sharp [Mon, 8 May 2023 16:42:10 +0000 (12:42 -0400)]
Merge pull request #13464 from sri-mohan1/srib-ldpd

ldpd: changes for code maintainability

12 months agoripd: fix another memtype mismatch
Renato Westphal [Mon, 8 May 2023 14:07:54 +0000 (11:07 -0300)]
ripd: fix another memtype mismatch

Fixes #13447.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
12 months agoMerge pull request #13465 from donaldsharp/ospf_metric_ifindex
Jafar Al-Gharaibeh [Mon, 8 May 2023 14:43:56 +0000 (09:43 -0500)]
Merge pull request #13465 from donaldsharp/ospf_metric_ifindex

tests: ospf_metric_propagation is looking for a specific ifindex and vrfid

12 months agoMerge pull request #13453 from donaldsharp/dplane_memory_leak
Mark Stapp [Mon, 8 May 2023 14:27:08 +0000 (10:27 -0400)]
Merge pull request #13453 from donaldsharp/dplane_memory_leak

Dplane memory leak

12 months agotests: ospf_metric_propagation should not look for a specific vrfId
Donald Sharp [Mon, 8 May 2023 12:06:30 +0000 (08:06 -0400)]
tests: ospf_metric_propagation should not look for a specific vrfId

There is no guarantee that the vrfId is going to be the same across
tests, as that the vrfId is chosen based upon the ifindex of the
vrf device.  As such we should not be looking for the vrfId, but
the correct vrf name.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agotests: ospf_metric_propagation is looking for a specific ifindex
Donald Sharp [Mon, 8 May 2023 11:47:49 +0000 (07:47 -0400)]
tests: ospf_metric_propagation is looking for a specific ifindex

The test ospf_metric_propagation is looking for a specific ifindex
this ifindex is not guaranteed to be any particular value by the underlying
OS.  So let's remove this test for it.  As a side note I am seeing
tests fail in upstream CI because of this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agoMerge pull request #13446 from louis-6wind/fix-ext-comm
Donatas Abraitis [Mon, 8 May 2023 10:44:56 +0000 (13:44 +0300)]
Merge pull request #13446 from louis-6wind/fix-ext-comm

bgpd: fix show running of nt extcommunity

12 months agoldpd: changes for code maintainability
sri-mohan1 [Mon, 8 May 2023 09:58:50 +0000 (15:28 +0530)]
ldpd: changes for code maintainability

these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
12 months agoMerge pull request #13440 from zice312963205/bgpfix
Donatas Abraitis [Mon, 8 May 2023 08:47:14 +0000 (11:47 +0300)]
Merge pull request #13440 from zice312963205/bgpfix

bgpd: fix the issue of connected tag error when BGP subscribes to NHT…

12 months agoMerge pull request #13458 from sri-mohan1/srib-ldpd
Donatas Abraitis [Mon, 8 May 2023 07:22:27 +0000 (10:22 +0300)]
Merge pull request #13458 from sri-mohan1/srib-ldpd

ldpd: changes for code maintainability

12 months agoldpd: changes for code maintainability
sri-mohan1 [Sun, 7 May 2023 15:30:52 +0000 (21:00 +0530)]
ldpd: changes for code maintainability

these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
12 months agoMerge pull request #13455 from sri-mohan1/srib-ldpd
Donatas Abraitis [Sat, 6 May 2023 19:47:27 +0000 (22:47 +0300)]
Merge pull request #13455 from sri-mohan1/srib-ldpd

ldpd: changes for code maintainability

12 months agoldpd: changes for code maintainability
sri-mohan1 [Sat, 6 May 2023 14:22:34 +0000 (19:52 +0530)]
ldpd: changes for code maintainability

these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
12 months agoMerge pull request #13451 from sri-mohan1/srib-ldpd
Donald Sharp [Sat, 6 May 2023 12:49:24 +0000 (08:49 -0400)]
Merge pull request #13451 from sri-mohan1/srib-ldpd

ldpd: changes for code maintainability

12 months agoMerge pull request #13424 from LabNConsulting/chopps/log-config-file-cmds
Donald Sharp [Sat, 6 May 2023 10:47:05 +0000 (06:47 -0400)]
Merge pull request #13424 from LabNConsulting/chopps/log-config-file-cmds

12 months agobgpd: fix the issue of connected tag error when BGP subscribes to NHT from Zebra
Jack.zhang [Fri, 5 May 2023 06:58:32 +0000 (14:58 +0800)]
bgpd: fix the issue of connected tag error when BGP subscribes to NHT from Zebra

Imagine the following scenario:
1.Create a multihop ebgp peer and config the ttl as 254 for both side.
2.Call bgp_start and start an active connection.
Bgp will send a nht register with non-connected flag.
3.The function bgp_accept be called by remote connection.
Bgp will create a accept peer as a passive connection with default ttl(1). And then will send a nht register again with connected flag. This register result will cover the first one.
4.The active connection come to establish first. In funciton "peer_xfer_conn", check for "PEER_FLAG_CONFIG_NODE" flag of "from_peer->doppelganger" will not be pass, so we can not repair the nht register error forever.
Then the bgp nexthop will be like this:
2000::60 invalid, #paths 0, peer 2000::60
Must be Connected
Last update: Thu May 4 09:35:14 2023

The route from this peer can not be treat with a vaild nexthop forever.
This change will fix this error.

Signed-off-by: Jack.zhang <hanyu.zly@alibaba-inc.com>
12 months agozebra: dplane_gre_set could return while leaking ctx
Donald Sharp [Fri, 5 May 2023 23:03:40 +0000 (19:03 -0400)]
zebra: dplane_gre_set could return while leaking ctx

Prevent this function from leaking the ctx memory.
Also properly record that something has gone wrong.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agozebra: Dplane ctx allocation cannot fail
Donald Sharp [Fri, 5 May 2023 22:57:21 +0000 (18:57 -0400)]
zebra: Dplane ctx allocation cannot fail

Having tests for memory allocation success makes no sense
given what happens when frr fails to allocate memory.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agozebra:re-install dependent nhgs on interface up
Chirag Shah [Sat, 29 Apr 2023 02:09:55 +0000 (19:09 -0700)]
zebra:re-install dependent nhgs on interface up

Upon interface up associated singleton NHG's
dependent NHGs needs to be reinstalled as
kernel would have deleted if there is no route
referencing it.

Ticket:#3416477
Issue:3416477
Testing Done:
flap interfaces which are part of route NHG,
upon interfaces up event, NHGs are resynced
into dplane.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
12 months agozebra: re-install nhg on interface up
Ashwini Reddy [Wed, 19 Apr 2023 18:35:25 +0000 (11:35 -0700)]
zebra: re-install nhg on interface up

Intermittently zebra and kernel are out of sync
when interface flaps and the add's/dels are in
same processing queue and zebra assumes no change in nexthop.
Hence we need to bring in a reinstall to kernel
of the nexthops and routes to sync their states.

Upon interface flap kernel would have deleted NHGs
associated to a interface (the one flapped),
zebra retains NHGs for 3 mins even though upper
layer protocol removes the nexthops (associated NHG).
As part of interface address add ,
re-add singleton NHGs associated to interface.

Ticket: #3173663
Issue: 3173663

Signed-off-by: Ashwini Reddy <ashred@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
12 months agoldpd: changes for code maintainability
sri-mohan1 [Fri, 5 May 2023 18:11:01 +0000 (23:41 +0530)]
ldpd: changes for code maintainability

these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
12 months agozebra: Reduce creation and fix memory leak of frrscripting pointers
Donald Sharp [Fri, 5 May 2023 15:05:12 +0000 (11:05 -0400)]
zebra: Reduce creation and fix memory leak of frrscripting pointers

There are two issues being addressed:

a) The ZEBRA_ON_RIB_PROCESS_HOOK_CALL script point
was creating a fs pointer per dplane ctx in
rib_process_dplane_results().

b) The fs pointer was not being deleted and directly
leaked.

For (a) Move the creation of the fs to outside
the do while loop.

For (b) At function end ensure that the pointer
is actually deleted.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agobgpd: fix show running of nt extcommunity
Louis Scalbert [Fri, 5 May 2023 14:05:42 +0000 (16:05 +0200)]
bgpd: fix show running of nt extcommunity

Setting

> bgp extcommunity-list standard EXT seq 5 permit nt 192.168.1.3:0

results in:

> bgp extcommunity-list standard EXT seq 5 permit NT:192.168.1.3

Fix the display

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoMerge pull request #13436 from donaldsharp/ospf_json_mem_leak
Donatas Abraitis [Fri, 5 May 2023 12:14:16 +0000 (15:14 +0300)]
Merge pull request #13436 from donaldsharp/ospf_json_mem_leak

ospfd: Fix memory leaks w/ `show ip ospf int X json` commands

12 months agoMerge pull request #13428 from opensourcerouting/ripd-bfd-fixes
Donald Sharp [Fri, 5 May 2023 12:04:57 +0000 (08:04 -0400)]
Merge pull request #13428 from opensourcerouting/ripd-bfd-fixes

ripd: fix problemas

12 months agoMerge pull request #13435 from mjstapp/fix_pim_cpp_notice
Donald Sharp [Fri, 5 May 2023 12:04:23 +0000 (08:04 -0400)]
Merge pull request #13435 from mjstapp/fix_pim_cpp_notice

pimd: replace CPP_NOTICE lines with TODO comments

12 months agoMerge pull request #13423 from LabNConsulting/chopps/coverity-string-fix
Donald Sharp [Fri, 5 May 2023 11:35:06 +0000 (07:35 -0400)]
Merge pull request #13423 from LabNConsulting/chopps/coverity-string-fix

mgmtd: simplify commit id to just be a timeval string

12 months agobgpd: Fixing the show bgp <vrf> <afi> <safi> detail command
Rajasekar Raja [Thu, 27 Apr 2023 21:03:03 +0000 (14:03 -0700)]
bgpd: Fixing the show bgp <vrf> <afi> <safi> detail command

Adding support to show cmds like  show bgp vrf all detail, show bgp
<afi> <safi> detail & show bgp <vrf> <afi> <safi> detail

Issue:3168406
Ticket:#3168406

Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
12 months agotests: removing un used loopback interface from bgp admin dist.
Naveen Guggarigoud [Fri, 5 May 2023 05:20:40 +0000 (05:20 +0000)]
tests: removing un used loopback interface from bgp admin dist.

Signed-off-by: Naveen Guggarigoud <nguggarigoud@vmware.com>
12 months agolib: log commands read from config file
Christian Hopps [Wed, 3 May 2023 04:41:19 +0000 (00:41 -0400)]
lib: log commands read from config file

When the user specifies `--command-log-always` in CLI arguments then also log
commands executed from loading the config file.

Signed-off-by: Christian Hopps <chopps@labn.net>
12 months agomgmtd: simplify commit id to just be a timeval string
Christian Hopps [Tue, 2 May 2023 21:17:51 +0000 (17:17 -0400)]
mgmtd: simplify commit id to just be a timeval string

Also fixes coverity warning

Signed-off-by: Christian Hopps <chopps@labn.net>
12 months agoMerge pull request #13357 from Jafaral/fix_ospf_prop
Christian Hopps [Thu, 4 May 2023 18:46:56 +0000 (14:46 -0400)]
Merge pull request #13357 from Jafaral/fix_ospf_prop

tests: clear the ospf neighbor to force a state change

12 months agoospfd: Fix memory leaks w/ `show ip ospf int X json` commands
Donald Sharp [Thu, 4 May 2023 16:53:42 +0000 (12:53 -0400)]
ospfd: Fix memory leaks w/ `show ip ospf int X json` commands

FRR has a memory leak in the case when int X does not
exist and a memory leak when int X does exist.  Fix
these

Fixes: #13434
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agopimd: replace CPP_NOTICE lines with TODO comments
Mark Stapp [Thu, 4 May 2023 14:26:33 +0000 (10:26 -0400)]
pimd: replace CPP_NOTICE lines with TODO comments

Replace the noisy CPP_NOTICE lines with TODO comments.

Signed-off-by: Mark Stapp <mjs@labn.net>
12 months agotests: clear the ospf neighbor to force a state change
Jafar Al-Gharaibeh [Sat, 22 Apr 2023 18:10:16 +0000 (13:10 -0500)]
tests: clear the ospf neighbor to force a state change

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
12 months agoripd: use correct memory type when freeing BFD profile
Renato Westphal [Wed, 3 May 2023 20:02:58 +0000 (17:02 -0300)]
ripd: use correct memory type when freeing BFD profile

Fixes #13415.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
12 months agoripd: fix null-pointer dereference
Renato Westphal [Wed, 3 May 2023 20:01:36 +0000 (17:01 -0300)]
ripd: fix null-pointer dereference

Fixes #13416.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
12 months agoMerge pull request #13425 from FRRouting/revert-12646-mpls_alloc_per_nh
Donald Sharp [Wed, 3 May 2023 11:35:37 +0000 (07:35 -0400)]
Merge pull request #13425 from FRRouting/revert-12646-mpls_alloc_per_nh

Revert "MPLS allocation mode per next hop"

12 months agoRevert "MPLS allocation mode per next hop"
Donatas Abraitis [Wed, 3 May 2023 10:50:26 +0000 (13:50 +0300)]
Revert "MPLS allocation mode per next hop"

Broken tests, let's revert now.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
12 months agoMerge pull request #13422 from donaldsharp/pim_thread_off_fix
Mark Stapp [Tue, 2 May 2023 18:57:25 +0000 (14:57 -0400)]
Merge pull request #13422 from donaldsharp/pim_thread_off_fix

pimd: Fix old commit that got in

12 months agopimd: Fix old commit that got in
Donald Sharp [Tue, 2 May 2023 18:49:32 +0000 (14:49 -0400)]
pimd: Fix old commit that got in

An old fix that used THREAD_OFF was pushed in, should
have used EVENT_OFF instead.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
12 months agoMerge pull request #13020 from SaiGomathiN/2462808-3
Donald Sharp [Tue, 2 May 2023 15:55:34 +0000 (11:55 -0400)]
Merge pull request #13020 from SaiGomathiN/2462808-3

pimd: PIM not sending register packets after changing from non DR to DR

12 months agoMerge pull request #12646 from pguibert6WIND/mpls_alloc_per_nh
Donatas Abraitis [Tue, 2 May 2023 15:36:45 +0000 (18:36 +0300)]
Merge pull request #12646 from pguibert6WIND/mpls_alloc_per_nh

MPLS allocation mode per next hop

12 months agoMerge pull request #13376 from louis-6wind/fix-flex-algo-mem-leak
Russ White [Tue, 2 May 2023 15:33:38 +0000 (11:33 -0400)]
Merge pull request #13376 from louis-6wind/fix-flex-algo-mem-leak

isisd, lib: fix flex-algo memory leak

12 months agoMerge pull request #13366 from zmw12306/rte_tag
Donatas Abraitis [Tue, 2 May 2023 14:56:09 +0000 (17:56 +0300)]
Merge pull request #13366 from zmw12306/rte_tag

ripd: add non-zero check for RIPv1 reserved field

12 months agoMerge pull request #13403 from anlancs/fix/zebra-missing-vrf-flag
Russ White [Tue, 2 May 2023 14:47:41 +0000 (10:47 -0400)]
Merge pull request #13403 from anlancs/fix/zebra-missing-vrf-flag

zebra: Fix missing VRF flag

12 months agoMerge pull request #13404 from louis-6wind/fix-flex-algo-race-condition
Russ White [Tue, 2 May 2023 14:42:39 +0000 (10:42 -0400)]
Merge pull request #13404 from louis-6wind/fix-flex-algo-race-condition

isisd: fix a flex algo race condition and a minor fix

12 months agoMerge pull request #13235 from Orange-OpenSource/link-state
Russ White [Tue, 2 May 2023 14:31:10 +0000 (10:31 -0400)]
Merge pull request #13235 from Orange-OpenSource/link-state

lib: Fix memory leaks in Link State library

12 months agoMerge pull request #13270 from pguibert6WIND/better_srv6_output_seg6local
Russ White [Tue, 2 May 2023 14:30:15 +0000 (10:30 -0400)]
Merge pull request #13270 from pguibert6WIND/better_srv6_output_seg6local

zebra: display seg6local only when specified

12 months agoMerge pull request #13354 from zmw12306/parse_request_subtlv
Russ White [Tue, 2 May 2023 14:28:20 +0000 (10:28 -0400)]
Merge pull request #13354 from zmw12306/parse_request_subtlv

babeld: add parse_request_subtlv into parse_packet

12 months agoMerge pull request #13377 from donaldsharp/ospf_dead_interval
Russ White [Tue, 2 May 2023 14:25:46 +0000 (10:25 -0400)]
Merge pull request #13377 from donaldsharp/ospf_dead_interval

tests: Increase the dead interval to be longer for neighbor testing

12 months agoMerge pull request #13389 from anlancs/fix/pimd-wrong-mrt-sockopt
Donald Sharp [Tue, 2 May 2023 13:21:24 +0000 (09:21 -0400)]
Merge pull request #13389 from anlancs/fix/pimd-wrong-mrt-sockopt

pimd: Fix wrong setsockopt() call

12 months agoMerge pull request #13393 from opensourcerouting/fix/topotest_bgp_bfd_down_cease_noti...
Donald Sharp [Tue, 2 May 2023 12:42:43 +0000 (08:42 -0400)]
Merge pull request #13393 from opensourcerouting/fix/topotest_bgp_bfd_down_cease_notification

tests: Do not try establishing a connection from r1 to r2

12 months agoMerge pull request #13395 from LabNConsulting/chopps/mgmtd-debug-flags
Donald Sharp [Tue, 2 May 2023 12:17:17 +0000 (08:17 -0400)]
Merge pull request #13395 from LabNConsulting/chopps/mgmtd-debug-flags

mgmtd: fully implement debug flags for mgmtd and clients

12 months agoMerge pull request #13405 from dmytroshytyi-6WIND/srv6_bgp_no_sid_export_auto
Donatas Abraitis [Mon, 1 May 2023 19:07:03 +0000 (22:07 +0300)]
Merge pull request #13405 from dmytroshytyi-6WIND/srv6_bgp_no_sid_export_auto

bgpd, tests: srv6 "no sid vpn export auto" per AF in vtysh

12 months agoMerge pull request #13408 from pguibert6WIND/flowspec_sanity
Donatas Abraitis [Mon, 1 May 2023 18:58:53 +0000 (21:58 +0300)]
Merge pull request #13408 from pguibert6WIND/flowspec_sanity

bgpd: add some flowspec sanity returns

12 months agoMerge pull request #13409 from chiragshah6/fdev1
Donatas Abraitis [Mon, 1 May 2023 18:55:38 +0000 (21:55 +0300)]
Merge pull request #13409 from chiragshah6/fdev1

zebra:add df flag into evpn esi json output

12 months agomgmtd: fully implement debug flags for mgmtd and clients
Christian Hopps [Wed, 26 Apr 2023 21:50:46 +0000 (17:50 -0400)]
mgmtd: fully implement debug flags for mgmtd and clients

Signed-off-by: Christian Hopps <chopps@labn.net>
12 months agoMerge pull request #13406 from LabNConsulting/chopps/log-timestamp-buildopt
Donald Sharp [Mon, 1 May 2023 13:51:46 +0000 (09:51 -0400)]
Merge pull request #13406 from LabNConsulting/chopps/log-timestamp-buildopt

startup log timestamp precision build option

12 months agozebra: Fix missing VRF flag
anlan_cs [Fri, 28 Apr 2023 05:39:59 +0000 (13:39 +0800)]
zebra: Fix missing VRF flag

1. No any configuration in FRR, and `ip link add vrf1 type vrf ...`.
Currently, everything is ok.

2.  `ip link del vrf1`.
`zebra` will wrongly/redundantly notify clients to add "vrf1" as a normal
interface after correct deletion of "vrf1".

```
ZEBRA: [KMXEB-K771Y] netlink_parse_info: netlink-listen (NS 0) type RTM_DELLINK(17), len=588, seq=0, pid=0
ZEBRA: [TDJW2-B9KJW] RTM_DELLINK for vrf1(93) <- Wrongly as normal interface, not vrf
ZEBRA: [WEEJX-M4HA0] interface vrf1 vrf vrf1(93) index 93 is now inactive.
ZEBRA: [NXAHW-290AC] MESSAGE: ZEBRA_INTERFACE_DELETE vrf1 vrf vrf1(93)
ZEBRA: [H97XA-ABB3A] MESSAGE: ZEBRA_INTERFACE_VRF_UPDATE/DEL vrf1 VRF Id 93 -> 0
ZEBRA: [HP8PZ-7D6D2] MESSAGE: ZEBRA_INTERFACE_VRF_UPDATE/ADD vrf1 VRF Id 93 -> 0 <-
ZEBRA: [Y6R2N-EF2N4] interface vrf1 is being deleted from the system
ZEBRA: [KNFMR-AFZ53] RTM_DELLINK for VRF vrf1(93)
ZEBRA: [P0CZ5-RF5FH] VRF vrf1 id 93 is now inactive
ZEBRA: [XC3P3-1DG4D] MESSAGE: ZEBRA_VRF_DELETE vrf1
ZEBRA: [ZMS2F-6K837] VRF vrf1 id 4294967295 deleted
OSPF: [JKWE3-97M3J] Zebra: interface add vrf1 vrf default[0] index 0 flags 480 metric 0 mtu 65575 speed 0 <- Wrongly add interface
```

`if_handle_vrf_change()` moved the interface from specific vrf to default
vrf. But it doesn't skip interface of vrf type. So, the wrong/redundant
add operation is done.

Note, the wrong add operation is regarded as an normal interface because
the `ifp->status` is cleared too early, so it is without VRF flag
( `ZEBRA_INTERFACE_VRF_LOOPBACK` ). Now, ospfd will initialize `ifp->type`
to `OSPF_IFTYPE_BROADCAST`.

3. `ip link add vrf1 type vrf ...`, add "vrf1" again. FRR will be with
wrong display:

```
interface vrf1
 ip ospf network broadcast
exit
```

Here, zebra will send `ZEBRA_INTERFACE_ADD` again for "vrf1" with
correct `ifp->status`, so it will be updated into vrf type. But
it can't update `ifp->type` from `OSPF_IFTYPE_BROADCAST` to
`OSPF_IFTYPE_LOOPBACK` because it had been already configured in above
step 2.

Two changes to fix it:

1. Skip the procedure of switching VRF for interfaces of vrf type.
It means, don't send `ZEBRA_INTERFACE_ADD` to clients when deleting vrf.

2. Put the deletion of this flag at the last.
It means, clients should get correct `ifp->status`.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
12 months agotests: change topotest log timestamp precision to 6.
Christian Hopps [Fri, 28 Apr 2023 15:11:41 +0000 (11:11 -0400)]
tests: change topotest log timestamp precision to 6.

- Often millisecond precision is not good enough to differentiate things that
occur directly one after another, and things that have some pause in between,
increase to microsecond precision (reporting)

Signed-off-by: Christian Hopps <chopps@labn.net>
12 months agolib: add build option to set startup log timestemp precision
Christian Hopps [Fri, 28 Apr 2023 15:10:56 +0000 (11:10 -0400)]
lib: add build option to set startup log timestemp precision

Signed-off-by: Christian Hopps <chopps@labn.net>
12 months agozebra:add df flag into evpn esi json output
Sindhu Parvathi Gopinathan [Fri, 28 Apr 2023 12:28:58 +0000 (05:28 -0700)]
zebra:add df flag into evpn esi json output

FRR "show evpn es 'esi-id' json" output dont have the 'df' flag.

Modified the code to add the 'df' flag into json output.

Before Fix:

```
torm-11# show evpn es 03:44:38:39:ff:ff:01:00:00:01 json
{
  "esi":"03:44:38:39:ff:ff:01:00:00:01",
  "accessPort":"hostbond1",
  "flags":[
    "local",
    "remote",
    "readyForBgp",
    "bridgePort",
    "operUp",
    "nexthopGroupActive"
 ====================> df is missing
  ],
  "vniCount":10,
  "macCount":13,
  "dfPreference":50000,
  "nexthopGroup":536870913,
  "vteps":[
    {
      "vtep":"27.0.0.16",
      "dfAlgorithm":"preference",
      "dfPreference":32767,
      "nexthopId":268435460
    },
    {
      "vtep":"27.0.0.17",
      "dfAlgorithm":"preference",
      "dfPreference":32767,
      "nexthopId":268435461
    }
  ]
}
torm-11#
```

After Fix:-

```
torm-11# show evpn es 03:44:38:39:ff:ff:01:00:00:01 json
{
  "esi":"03:44:38:39:ff:ff:01:00:00:01",
  "accessPort":"hostbond1",
  "flags":[
    "local",
    "remote",
    "readyForBgp",
    "bridgePort",
    "operUp",
    "nexthopGroupActive",
    "df" ========================> designated-forward flag added
  ],
  "vniCount":10,
  "macCount":13,
  "dfPreference":50000,
  "nexthopGroup":536870913,
  "vteps":[
    {
      "vtep":"27.0.0.16",
      "dfAlgorithm":"preference",
      "dfPreference":32767,
      "nexthopId":268435460
    },
    {
      "vtep":"27.0.0.17",
      "dfAlgorithm":"preference",
      "dfPreference":32767,
      "nexthopId":268435461
    }
  ]
}
torm-11#

```

Ticket:# 3447935

Issue: 3447935

Testing: UT done

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
12 months agotests: validate sid export per-vrf and per-af
Dmytro Shytyi [Fri, 21 Apr 2023 12:24:33 +0000 (14:24 +0200)]
tests: validate sid export per-vrf and per-af

Verify activation and desactivation of per-vrf and per-af
sid export. Modify the configuration of r2 and verify that
changes are reflected in r1 and on connectivity between ce1 and c2.

Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
12 months agobgpd: implement "no sid vpn export auto" per AF in vtysh
Dmytro Shytyi [Fri, 21 Apr 2023 12:00:48 +0000 (14:00 +0200)]
bgpd: implement "no sid vpn export auto" per AF in vtysh

An example of implemented command for IPv4 AF is presented below.

dev-vm(config-router-af)# do show bgp segment-routing srv6
locator_name: Locator1
locator_chunks:
- 2001:db8:2:5::/64
  block-length: 40
  node-length: 24
  func-length: 16
  arg-length: 0
functions:
bgps:
- name: default
  vpn_policy[AFI_IP].tovpn_sid: (null)
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)
- name: red
  vpn_policy[AFI_IP].tovpn_sid: (null)
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)
dev-vm(config-router-af)# sid vpn export auto
^^^<<<<<<<<<<<<<<<<<<<<<< 1. configure sid per af
dev-vm(config-router-af)# do show bgp segment-routing srv6
locator_name: Locator1
locator_chunks:
- 2001:db8:2:5::/64
  block-length: 40
  node-length: 24
  func-length: 16
  arg-length: 0
functions:
- sid: 2001:db8:2:5:1::
  locator: Locator1
bgps:
- name: default
  vpn_policy[AFI_IP].tovpn_sid: (null)
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)
- name: red
  vpn_policy[AFI_IP].tovpn_sid: 2001:db8:2:5:1::
^^^<<<<<<<<<<<<<<<<<<<<< 2. sid is configured
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)
dev-vm(config-router-af)# no sid vpn export auto
^^^<<<<<<<<<<<<<<<<<<<< 3. deconfigure sid per af
dev-vm(config-router-af)# do show bgp segment-routing srv6
locator_name: Locator1
locator_chunks:
- 2001:db8:2:5::/64
  block-length: 40
  node-length: 24
  func-length: 16
  arg-length: 0
functions:
bgps:
- name: default
  vpn_policy[AFI_IP].tovpn_sid: (null)
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)
- name: red
  vpn_policy[AFI_IP].tovpn_sid: (null)
^^^<<<<<<<<<<<<<<<<<<< 4. sid is deconfigured
  vpn_policy[AFI_IP6].tovpn_sid: (null)
  per-vrf tovpn_sid: (null)

Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
12 months agobgpd: add some flowspec sanity returns
Philippe Guibert [Fri, 28 Apr 2023 19:56:19 +0000 (21:56 +0200)]
bgpd: add some flowspec sanity returns

If an error is detected in an NLRI, immediately return
an error, when there is a risk of buffer overflow.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agoMerge pull request #13407 from cscarpitta/fix/fix-srv6l3vpn-topotest
Donald Sharp [Fri, 28 Apr 2023 17:49:06 +0000 (13:49 -0400)]
Merge pull request #13407 from cscarpitta/fix/fix-srv6l3vpn-topotest

tests: Fix `bgp_srv6l3vpn_to_bgp_vrf3` topotest

12 months agotests: Fix `bgp_srv6l3vpn_to_bgp_vrf3` topotest
Carmine Scarpitta [Fri, 28 Apr 2023 15:11:32 +0000 (17:11 +0200)]
tests: Fix `bgp_srv6l3vpn_to_bgp_vrf3` topotest

The `bgp_srv6l3vpn_to_bgp_vrf3` topotest tests the SRv6 L3VPN
functionality. It applies the appropriate configuration in `bgpd` and
`zebra`, and then checks that the RIB is updated correctly.

The topotest expects to find the AS-Path in the RIB, which is only
present if the `bgp send-extra-data zebra` option is enabled in the
`bgpd` configuration.

The `bgp send-extra-data zebra` option has been accidentally commented
out in commit https://github.com/FRRouting/frr/commit/2007e2dbd0d5c42d9fe6cbe92b34be10654834ef.

This commit fixes the `bgp_srv6l3vpn_to_bgp_vrf3` topotest by re-adding
the missing `bgp send-extra-data zebra` option.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
12 months agoMerge pull request #13335 from pguibert6WIND/bgp_lu_explicit_per_afi
Donatas Abraitis [Fri, 28 Apr 2023 13:27:20 +0000 (16:27 +0300)]
Merge pull request #13335 from pguibert6WIND/bgp_lu_explicit_per_afi

bgpd: configure explicit-null for local paths per address family

12 months agolib: fix comparaison of flex-algo definition
Louis Scalbert [Fri, 28 Apr 2023 09:20:50 +0000 (11:20 +0200)]
lib: fix comparaison of flex-algo definition

Fix comparaison of flex-algo definition by comparing all the definition
statements.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoisisd: fix disabled flex-algo on race condition
Louis Scalbert [Fri, 28 Apr 2023 09:20:26 +0000 (11:20 +0200)]
isisd: fix disabled flex-algo on race condition

A particular flex-algo algorithm may remain in disabled state after
configuring it if its flex-algo definition is being spread in the area.

It happens sometimes that, in isis_sr_flex_algo_topo1 topotest, r3
flex-algo 203 is disabled on test8. It depends on the following
sequence on r3:
 1. a LSP containing the flex-algo 203 definition is received from
    either r1 or r2 (or both).
 2. the local LSP is rebuilt by lsp_build() because of the flex-algo 203
    configuration
 3. isis_run_spf() recomputes the algo 203 SPF tree

A 1. 2. 3. sequence results in a working test whereas 2. 1. 3. is not
working. The second case issue is because of an inconsistent flex-algo
definition state between the following:
 - in lsp_build(), isis_flex_algo_elected_supported_local_fad() returns
   false because no flex-algo definition is known.
 - in isis_run_spf(), isis_flex_algo_elected_supported() returns true
   because a flex-algo definition is found.

Set a flex-algo state lsp_build() depending on flex-algo definition
existence that is used later in isis_run_spf().

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoMerge pull request #13379 from pguibert6WIND/bgp_nht_must_equal_zebra_nht
Donatas Abraitis [Fri, 28 Apr 2023 06:32:24 +0000 (09:32 +0300)]
Merge pull request #13379 from pguibert6WIND/bgp_nht_must_equal_zebra_nht

bgpd: keep interface index on bgp nexthop tracking

12 months agobgpd: configure explicit-null for local paths per address family
Philippe Guibert [Wed, 19 Apr 2023 14:40:50 +0000 (16:40 +0200)]
bgpd: configure explicit-null for local paths per address family

Until now, the bgp local paths were using the default null label
defined. It was not possible to select the null label for the ipv4
or the ipv6 address families.

This commit addresses this issues by adding two extra-parameters
to the BGP labeled-unicast command.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agobgpd: keep interface index on bgp nexthop tracking
Philippe Guibert [Mon, 24 Apr 2023 20:33:15 +0000 (22:33 +0200)]
bgpd: keep interface index on bgp nexthop tracking

The following BGP configuration does not show that the
resolved next-hop to 192.0.2.1 has a defined interface.

> router bgp 65500
>  bgp router-id 192.0.2.2
>  neighbor 192.0.2.1 remote-as 65500
>  neighbor 192.0.2.1 update-source loop1
>  neighbor 192.168.0.1 remote-as 65500
>  !
>  address-family ipv4 unicast
>   network 192.0.2.2/32
>   no neighbor 192.168.0.1 activate
>  exit-address-family
>  !
>  address-family ipv4 labeled-unicast
>   neighbor 192.168.0.1 activate
>  exit-address-family
>  !
>  address-family ipv4 vpn
>   neighbor 192.0.2.1 activate
>  exit-address-family

The 'show bgp nexthop' dump does not output the interface
whereas the zebra rnh has the information.

> dut-vm# show bgp nexthop
> [..]
> Current BGP nexthop cache:
>  192.0.2.1 valid [IGP metric 0], #paths 1, peer 192.0.2.1
>   gate 192.168.0.1
>   Last update: Mon Apr 24 22:10:07 2023
>
> dut-vm# show ip nht
> 192.0.2.1
>  resolved via bgp
>  via 192.168.0.1, r2-eth0
>  Client list: bgp(fd 33)

Modify the display of BGP nexthop tracking to also dump
the interface used:

> dut-vm# show bgp nexthop
> [..]
> Current BGP nexthop cache:
>  192.0.2.1 valid [IGP metric 0], #paths 1, peer 192.0.2.1
>   gate 192.168.0.1, r2-eth0
>   Last update: Mon Apr 24 22:10:07 2023

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
12 months agoisisd: fix a memory leak in isis_spftree_clear()
Louis Scalbert [Thu, 27 Apr 2023 12:50:47 +0000 (14:50 +0200)]
isisd: fix a memory leak in isis_spftree_clear()

isis_spftree_clear() calls:
  - _isis_spftree_del() to partially delete a spftree instance
    without freeing spftree->route_table and
    spftree->route_table_backup.
  - then _isis_spftree_init() that allocates new spftree->route_table
    and spftree->route_table_backup.

As a consequence, the previous table instances are not referenced and
not freed.

Free the route tables before allocating new ones.

Fixes: 860b75b40e ("isisd: calculate flex-algo constraint spf")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoisisd, lib: clarify sizeof on flex-algo memory allocation
Louis Scalbert [Thu, 27 Apr 2023 09:52:03 +0000 (11:52 +0200)]
isisd, lib: clarify sizeof on flex-algo memory allocation

Use the struct instead of the pointer for flex-algo memory allocation.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoisisd: fix flex-algo data memory leak at algorithm removal
Louis Scalbert [Tue, 25 Apr 2023 11:08:21 +0000 (13:08 +0200)]
isisd: fix flex-algo data memory leak at algorithm removal

Fix a flex-algo data memory leak when a specific algorithm is removed.

Fixes: 7f198e063c ("isisd: add isis flex-algo base interface")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
12 months agoisisd, lib: fix flex-algo database memory leak at area destruction
Louis Scalbert [Mon, 24 Apr 2023 16:19:03 +0000 (18:19 +0200)]
isisd, lib: fix flex-algo database memory leak at area destruction

Free flex-algorithm database memory when an IS-IS area is destroyed.

Fixes: 735fb37db1 ("lib: add library for igp flexible-algorithm")
Fixes: 7f198e063c ("isisd: add isis flex-algo base interface")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>