]>
git.puffer.fish Git - matthieu/frr.git/log
Igor Ryzhov [Thu, 13 May 2021 23:12:55 +0000 (02:12 +0300)]
Revert "bgpd: fix SA warnings in bgp northbound"
This reverts commit
082de39e7155e958416564f65286d4b57434ce4a .
Igor Ryzhov [Thu, 13 May 2021 23:12:49 +0000 (02:12 +0300)]
Revert "bgpd: Use default VRF name if using `router bgp` command"
This reverts commit
5ce106b72bac1c45567159c4dfcc9276164bd18b .
Igor Ryzhov [Thu, 13 May 2021 23:12:33 +0000 (02:12 +0300)]
Revert "bgpd: rename router bgp callbacks"
This reverts commit
feded4118b89eba5a1629f45cfe623277612e404 .
Igor Ryzhov [Thu, 13 May 2021 23:12:29 +0000 (02:12 +0300)]
Revert "bgpd: fix crash in bgp instance creation"
This reverts commit
a5ab756f2483594a19837e0c30f6184cd966940f .
Igor Ryzhov [Thu, 13 May 2021 23:12:24 +0000 (02:12 +0300)]
Revert "bgpd: use common api in bgp_get"
This reverts commit
bdaadb91e8adc103197d8f57a6a3358ff313a23c .
Igor Ryzhov [Thu, 13 May 2021 23:11:51 +0000 (02:11 +0300)]
Revert "yang: update bgp module afi-safi parameters"
This reverts commit
3b66fcef5833da4eeb2dd19922778b108a1c63c1 .
Igor Ryzhov [Thu, 13 May 2021 23:11:43 +0000 (02:11 +0300)]
Revert "bgpd: convert addr-family clis to transactional clis"
This reverts commit
37a87b8f9865fe17a235b9a76a0dc47f03aae3df .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:08:17 +0000 (02:08 +0300)]
Revert "bgpd: add match-med nb support in aggregate cmd"
This reverts commit
fa423774ff303ffc62db91f8aa09995711e81d50 .
Igor Ryzhov [Thu, 13 May 2021 23:08:11 +0000 (02:08 +0300)]
Revert "bgpd: add nb support for suppress-map in aggregate cmd"
This reverts commit
90e21f3535ff2d887cbb52f0e4e6fe4907095d70 .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:06:27 +0000 (02:06 +0300)]
Revert "bgpd: neighbor peergrp config to transactional cli"
This reverts commit
f4b8ec07219cce13c8627efe311247ee06f3a8ab .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 22:52:29 +0000 (01:52 +0300)]
Revert "*: shorten name of prefix-limit options"
This reverts commit
afe03f6094656c9f96150223c1ed5ee8e9a4ba93 .
Igor Ryzhov [Thu, 13 May 2021 22:52:25 +0000 (01:52 +0300)]
Revert "bgpd: convert max prefix clis to transactional"
This reverts commit
04261decb9901c931f1800f27c459f3a0483776c .
Igor Ryzhov [Thu, 13 May 2021 22:52:20 +0000 (01:52 +0300)]
Revert "bgpd: convert neighbor peer config to transactional"
This reverts commit
8611c7f3b6f33cb5ef8687bc126354d06eadbfcf .
Igor Ryzhov [Thu, 13 May 2021 22:52:15 +0000 (01:52 +0300)]
Revert "bgpd: shorten names for default originate nb callbacks"
This reverts commit
cc4440c3177f312294ec0cec836f41e453b367fb .
Igor Ryzhov [Thu, 13 May 2021 22:52:10 +0000 (01:52 +0300)]
Revert "bgpd: default originate transactional callbacks"
This reverts commit
7c54def2926e85d760a7ab42f879a6545630878f .
Igor Ryzhov [Thu, 13 May 2021 22:51:34 +0000 (01:51 +0300)]
Revert "bgpd: Actually return the group peer"
This reverts commit
e5209541f2f425c25ef016be2cade323b327ea17 .
Igor Ryzhov [Thu, 13 May 2021 22:50:56 +0000 (01:50 +0300)]
Revert "bgpd: Check if peer is not NULL before calling peer_as_change()"
This reverts commit
7a68370285ed4d64e1ed9dcab60b17bfb26a0ba4 .
Igor Ryzhov [Thu, 13 May 2021 22:50:05 +0000 (01:50 +0300)]
Revert "bgpd: Respect `-e X` value for multipath"
This reverts commit
76bd07b6881add1fbeafa5dc11c48d9ad6a00f14 .
Igor Ryzhov [Thu, 13 May 2021 22:49:37 +0000 (01:49 +0300)]
Revert "bgpd: fix compiler warnings in nbr cmd"
This reverts commit
555c8ab7ad7a9f60c8d6cc9dd48705f0ee364797 .
Igor Ryzhov [Thu, 13 May 2021 22:49:19 +0000 (01:49 +0300)]
Revert "bgpd: convert to yang modeled nbr cmds"
This reverts commit
232c75cd032a0ff8a6540f03a10cb1ae3143af06 .
Igor Ryzhov [Thu, 13 May 2021 22:44:16 +0000 (01:44 +0300)]
Revert "bgpd: Prevent null deref"
This reverts commit
e80bc08944be7cbe4085c03653818139ccd616d1 .
Igor Ryzhov [Thu, 13 May 2021 22:43:32 +0000 (01:43 +0300)]
Revert "bgpd: convert neighbor plist to transactional cli"
This reverts commit
d9986d26c0a48f9cc2afeaa15fe304b094c041e4 .
Igor Ryzhov [Thu, 13 May 2021 22:43:28 +0000 (01:43 +0300)]
Revert "yang: nbr plist nb conversion for more afi-safis"
This reverts commit
f4eac84c5ac136bc7dd37f2c950d375e94616bc4 .
Igor Ryzhov [Thu, 13 May 2021 22:43:23 +0000 (01:43 +0300)]
Revert "bgpd: convert nbr rmap transactional cli"
This reverts commit
c6685575336566680aeb537e8ed5abb164be0268 .
Igor Ryzhov [Thu, 13 May 2021 22:42:38 +0000 (01:42 +0300)]
Revert "bgpd: fix unsetting of multipath as-set"
This reverts commit
174c5be33c433b9cc586d3aeee178407d282d97f .
Igor Ryzhov [Thu, 13 May 2021 22:42:33 +0000 (01:42 +0300)]
Revert "bgpd: fix removal of rd vpn export"
This reverts commit
c576dc6a4f5c62aeeb5e77e41c0f8efbf7f5797f .
Igor Ryzhov [Thu, 13 May 2021 22:42:19 +0000 (01:42 +0300)]
Revert "bgpd: Temp fix to allow numbered peers to be part of a peer group"
This reverts commit
2a059a5448c37699eabd8802b44427978ec645ac .
Igor Ryzhov [Thu, 13 May 2021 22:42:07 +0000 (01:42 +0300)]
Revert "bgpd: Remove hidden `neighbor X route-map Y <in|out>` command"
This reverts commit
4c3e9f072a415aa02f367aaff1cc90dd6fda5d06 .
Igor Ryzhov [Thu, 13 May 2021 22:41:40 +0000 (01:41 +0300)]
Revert "bgpd: fix 'neighbor X prefix-list Y in' SAFI VPN"
This reverts commit
9fa7a8bf3769914620225826e4ca8ef3f8182106 .
Igor Ryzhov [Thu, 13 May 2021 22:41:27 +0000 (01:41 +0300)]
Revert "bgpd: don't rely on northbound control plane protocol vrf pointer"
This reverts commit
3fa607bebacd4881053414d641e8376b4e4f6e83 .
Igor Ryzhov [Thu, 13 May 2021 22:40:02 +0000 (01:40 +0300)]
Revert "bgpd: convert send-community to transactional cli"
This reverts commit
e48a9a90e07ccdeae8f6bcdff9c433f5d6ea0b39 .
Igor Ryzhov [Thu, 13 May 2021 22:39:29 +0000 (01:39 +0300)]
Revert "bgpd: remove duplicated checks from CLI"
This reverts commit
45d1d7c9a2b7b41125e565af566e10d470349122 .
Igor Ryzhov [Thu, 13 May 2021 22:39:24 +0000 (01:39 +0300)]
Revert "bgpd: don't use operational state in "router bgp" command"
This reverts commit
4062b455a6eacfe3f5107daa68351b18cc0ca7e7 .
Igor Ryzhov [Thu, 13 May 2021 22:39:10 +0000 (01:39 +0300)]
Revert "bgpd: convert l2vpn evpn nbr route-map to nb"
This reverts commit
8be861e60b7f6069c8a1c2aab75bbbbed3b57829 .
Igor Ryzhov [Thu, 13 May 2021 22:39:03 +0000 (01:39 +0300)]
Revert "bgpd: prefix-list and route-map nb fixes"
This reverts commit
68a57089122b22414b04ebc28bd0db81051fdcbd .
Igor Ryzhov [Thu, 13 May 2021 22:38:33 +0000 (01:38 +0300)]
Revert "bgpd: vrf route leaking, fix the bgp instance delete and re-add"
This reverts commit
ef7c53e244d5d0cd7c0ba2536fc931abf28df656 .
Igor Ryzhov [Thu, 13 May 2021 22:38:09 +0000 (01:38 +0300)]
Revert "bgpd: fix bgp_get_vty return values"
This reverts commit
d09328e5991c9f657758921264492825e7081175 .
Igor Ryzhov [Thu, 13 May 2021 22:37:44 +0000 (01:37 +0300)]
Revert "bgpd: fix crash when as/type mismatches in config"
This reverts commit
0d6d0208a55c786513f472ad690bae1788e173fa .
Igor Ryzhov [Thu, 13 May 2021 22:37:38 +0000 (01:37 +0300)]
Revert "bgpd: simplify bgp_global_local_as_modify code"
This reverts commit
debb7b1931cdf5b3e06ca244bf09bb009b5a8677 .
Igor Ryzhov [Thu, 13 May 2021 22:37:27 +0000 (01:37 +0300)]
Revert "bgpd: forbid modification of bgp instance type"
This reverts commit
d3e3677096e5cf30116ca63879caf44e25b080ad .
Igor Ryzhov [Thu, 13 May 2021 22:37:06 +0000 (01:37 +0300)]
Revert "bgpd: don't return error for GR no-op commands"
This reverts commit
895b0d0ad6e39ad54e82e5c3d9060aa390c8bdd8 .
Russ White [Tue, 3 Aug 2021 17:42:48 +0000 (13:42 -0400)]
Merge pull request #9264 from ak503/nhrp_fix
nhrp: fix display of nhs command.
Russ White [Tue, 3 Aug 2021 13:31:17 +0000 (09:31 -0400)]
Merge pull request #9164 from pguibert6WIND/flowspec_vrflite_shortcut
bgpd: flowspec redirect vrf uses vrf table instead of allocated table id
Russ White [Tue, 3 Aug 2021 13:29:09 +0000 (09:29 -0400)]
Merge pull request #9191 from idryzhov/rip-auth
ripd: fix authentication key length
Russ White [Tue, 3 Aug 2021 13:22:18 +0000 (09:22 -0400)]
Merge pull request #9231 from idryzhov/zebra-rmap-set-src
zebra: remove checks for src address existence when using "set src"
Russ White [Tue, 3 Aug 2021 13:21:14 +0000 (09:21 -0400)]
Merge pull request #9239 from idryzhov/ospf-passive-fix
ospfd: fix "no ip ospf passive" command
Russ White [Tue, 3 Aug 2021 13:20:16 +0000 (09:20 -0400)]
Merge pull request #9243 from ton31337/fix/revert_db0e636dc45f9bd2c76528a8368332c56f2c8f1e
bgpd: Revert a couple of BGP dampening related commits
Russ White [Tue, 3 Aug 2021 13:14:27 +0000 (09:14 -0400)]
Merge pull request #9249 from ton31337/fix/dont_capability
bgpd: Use strict AS4 capability when processing parsing/generating pkts
Russ White [Tue, 3 Aug 2021 13:13:12 +0000 (09:13 -0400)]
Merge pull request #9259 from opensourcerouting/moar-json
*: can't get enough JSON
Dmitrii Turlupov [Tue, 3 Aug 2021 11:00:24 +0000 (14:00 +0300)]
nhrp: fix display of nhs command.
Before:
ip nhrp nhs dynamicnbma 192.168.1.1
After:
ip nhrp nhs dynamic nbma 192.168.1.1
Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
Russ White [Tue, 3 Aug 2021 10:59:56 +0000 (06:59 -0400)]
Merge pull request #9056 from askorichenko/test-dont-capability
bgpd: Clear capabilities field when resetting a bgp neighbor
Donatas Abraitis [Tue, 3 Aug 2021 06:12:38 +0000 (09:12 +0300)]
Merge pull request #9258 from mjstapp/fix_rule_strlcpy
zebra: use strlcpy in dplane_rule_init
Renato Westphal [Tue, 3 Aug 2021 00:13:29 +0000 (21:13 -0300)]
Merge pull request #9232 from idryzhov/interface-node-cleanup
*: cleanup interface node installation
Renato Westphal [Mon, 2 Aug 2021 18:38:26 +0000 (15:38 -0300)]
lib: add "json" option to "show ip[v6] prefix-list"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Mon, 2 Aug 2021 18:38:26 +0000 (15:38 -0300)]
zebra: add "json" option to "show interface"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Mon, 2 Aug 2021 18:38:26 +0000 (15:38 -0300)]
lib: add "json" option to "show route-map"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Mon, 2 Aug 2021 18:38:26 +0000 (15:38 -0300)]
lib: add "json" option to "show ip[v6] access-list"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Mon, 2 Aug 2021 18:38:26 +0000 (15:38 -0300)]
bgpd: add "json" option to "show bgp as-path-access-list"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Mark Stapp [Mon, 2 Aug 2021 16:35:50 +0000 (12:35 -0400)]
zebra: use strlcpy in dplane_rule_init
Use strlcpy for safety in dplane rule init api.
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
Donald Sharp [Mon, 2 Aug 2021 16:11:24 +0000 (12:11 -0400)]
Merge pull request #9255 from ton31337/fix/bgp_max_packet_size_no_capabilities
bgpd: Set extended msg size only if we advertised and received capability
Igor Ryzhov [Thu, 29 Jul 2021 17:21:00 +0000 (20:21 +0300)]
zebra: remove checks for src address existence when using "set src"
1. This check is absolutely useless. Nothing keeps user from deleting
the address right after this check.
2. This check prevents zebra from correctly reading the user config with
"set src" because of a race with interface startup (see #4249).
3. NO OPERATIONAL DATA USAGE ON VALIDATION STAGE.
Fixes #7319.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Mon, 2 Aug 2021 15:12:19 +0000 (18:12 +0300)]
Merge pull request #9238 from leonshaw/fix/netns-delete
lib, zebra: Preserve user-configured VRF on netns deletion
Quentin Young [Mon, 2 Aug 2021 13:51:35 +0000 (13:51 +0000)]
Merge pull request #8982 from dlqs/lua-func-stack
Mark Stapp [Mon, 2 Aug 2021 12:34:55 +0000 (08:34 -0400)]
Merge pull request #9211 from donaldsharp/revert_logic_changes
lib: prevent crash in make check in some situations
Donatas Abraitis [Mon, 2 Aug 2021 05:59:24 +0000 (08:59 +0300)]
bgpd: Set extended msg size only if we advertised and received capability
If we don't advertise any capabilities (dont-capability-negotiate), we
shouldn't set msg size to 65k only if received this capability from another
peer.
Before:
```
~/frr# vtysh -c 'show ip bgp update-group' | grep 'Max packet size'
Max packet size: 65535
```
After:
```
~/frr# vtysh -c 'show ip bgp update-group' | grep 'Max packet size'
Max packet size: 4096
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Philippe Guibert [Fri, 26 Mar 2021 09:48:38 +0000 (10:48 +0100)]
bgpd: flowspec redirect vrf uses vrf table instead of allocated table id
Until now, when bgp flowspec entry action was to redirect to a vrf, a
default route was installed in a specific table. that route was a vrf
route leak one. The process can be simplified, as vrf-lite already
has a table identifier. Actually, because policy routing is used to
redirect traffic to a defined table (with ip rule command), use
the table identifier of the VRF.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Donatas Abraitis [Sun, 1 Aug 2021 06:44:27 +0000 (09:44 +0300)]
tests: Check if BGP connection established if using no capabilities adv
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Sun, 1 Aug 2021 06:29:31 +0000 (09:29 +0300)]
bgpd: Use strict AS4 capability when processing parsing/generating pkts
PeerA sets `dont-capability-negotiate` for PeerB. It does not send any
capabilities to PeerB. This leads to situation when PeerA received AS4 cap,
while it doesn't send AS4 to PeerB and tries parsing AS_PATH using 32bits.
[GTTPK-RX2GP][EC
33554436 ] Malformed AS path from 192.168.0.2, length is 4
[SM0KX-WXMGK] bgp_attr_malformed: attributes: , origin ?
[P7TRR-4J6XT][EC
33554487 ] 192.168.0.2: Attribute AS_PATH, parse error - treating as withdrawal
[WX70K-6XXVF][EC
33554454 ] 192.168.0.2 rcvd UPDATE with errors in attr(s)!! Withdrawing route.
[Z2KFR-ZGJC8] 192.168.0.2 rcvd UPDATE w/ attr: , origin ?
[P9VY3-5B6NX] 192.168.0.2 rcvd UPDATE wlen 0 attrlen 80 alen 73
[QMZ79-K2DH7][EC
33554454 ] 192.168.0.2 [Error] Update packet error (wrong prefix length 64 for afi 1)
[P9SYB-54XRZ][EC
33554454 ] 192.168.0.2 [Error] Error parsing NLRI
[V1CHF-JSGRR] %NOTIFICATION: sent to neighbor 192.168.0.2 3/10 (UPDATE Message Error/Invalid Network Field) 0 bytes
[HTHRX-GQYGJ][EC
33554454 ] bgp_process_packet: BGP UPDATE receipt failed for peer: 192.168.0.2
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donald Sharp [Sun, 1 Aug 2021 01:37:22 +0000 (21:37 -0400)]
Merge pull request #9244 from LabNConsulting/chopps/fix-bgp-list-test
tests: add early interface config for topojson and fix test
Donatas Abraitis [Sat, 31 Jul 2021 17:16:39 +0000 (20:16 +0300)]
Merge pull request #9246 from mjstapp/fix_doc_bgp_colons
doc: fix bgp user doc colons
Christian Hopps [Fri, 30 Jul 2021 14:00:27 +0000 (14:00 +0000)]
tests: add early interface config for topojson and fix test
- A more general fix for the bgp listener test which requires interfaces be
configured in the kernel when the bgpd daemons are launched.
Signed-off-by: Christian Hopps <chopps@labn.net>
David Lamparter [Sat, 31 Jul 2021 10:09:40 +0000 (12:09 +0200)]
Merge pull request #9228 from LabNConsulting/chopps/scapy-sendpkt
tests: add scapy_sendpkt.py util, replace arping use with it
Christian Hopps [Thu, 29 Jul 2021 05:33:20 +0000 (05:33 +0000)]
tests: add scapy_sendpkt.py util, replace arping use with it
Signed-off-by: Christian Hopps <chopps@labn.net>
Mark Stapp [Fri, 30 Jul 2021 17:54:01 +0000 (13:54 -0400)]
doc: fix bgp user doc
Too many colons in the bgp doc source file.
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
Donatas Abraitis [Fri, 30 Jul 2021 15:05:45 +0000 (18:05 +0300)]
Merge pull request #9196 from donaldsharp/test_queued
tests: Increase timeout for loaded systems
Donatas Abraitis [Fri, 30 Jul 2021 13:50:37 +0000 (16:50 +0300)]
Revert "bgpd: fix memory leak in dampening"
This reverts commit
322e1085fe52540261864bd73a3ecdb37f7203d3 .
Donatas Abraitis [Fri, 30 Jul 2021 13:50:05 +0000 (16:50 +0300)]
Revert "bgpd: fix missing delete from the list in dampening"
This reverts commit
755a977b8aef231bae28994159eef2ffcfd5b599 .
Donatas Abraitis [Fri, 30 Jul 2021 13:48:36 +0000 (16:48 +0300)]
Revert "bgpd: use double-linked list instead of single-linked list in dampening"
Tested with full feed, this stucks and bgpd even stops responding.
```
[T58XM-TP956][EC
268435457 ] bgpd state -> unresponsive : no response yet to ping sent 90 seconds ago
```
This reverts commit
db0e636dc45f9bd2c76528a8368332c56f2c8f1e .
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Mark Stapp [Fri, 30 Jul 2021 13:21:46 +0000 (09:21 -0400)]
Merge pull request #9214 from donaldsharp/assert_cleanup
zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE
Donatas Abraitis [Fri, 30 Jul 2021 12:19:31 +0000 (15:19 +0300)]
Merge pull request #9217 from idryzhov/bgp-damp-leaks
bgpd: fix various memory leaks in dampening
Igor Ryzhov [Fri, 30 Jul 2021 11:11:33 +0000 (14:11 +0300)]
ospfd: fix "no ip ospf passive" command
This command is currently always treated as an "unset" command, assuming
that active is the default type of the interface. In reality, the default
type of the interface can be changed using "passive-interface default"
command. Both "no" and regular commands can be "set" commands, depending
on the default value. They are treated as an "unset" when there's already
a config of the opposite type.
All this logic is in ospf_passive_interface_update.
Fixes #9240.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Russ White [Fri, 30 Jul 2021 10:37:50 +0000 (06:37 -0400)]
Merge pull request #9028 from mobash-rasool/ospfv3-asbr-summarisation
Ospfv3 ASBR summarisation feature
Donatas Abraitis [Fri, 30 Jul 2021 07:18:14 +0000 (10:18 +0300)]
Merge pull request #9237 from donaldsharp/code_block
doc: Fix code-block display for example shell commands
Xiao Liang [Fri, 30 Jul 2021 05:00:06 +0000 (13:00 +0800)]
lib, zebra: Preserve user-configured VRF on netns deletion
Don't clear VRF's user-configured flag when netns is deleted.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Donald Sharp [Fri, 30 Jul 2021 01:42:06 +0000 (21:42 -0400)]
doc: Fix code-block display for example shell commands
the code-block was jumbled and not displaying properly.
Reported by: Drew Bloechl
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Igor Ryzhov [Thu, 29 Jul 2021 12:31:34 +0000 (15:31 +0300)]
bgpd: use double-linked list instead of single-linked list in dampening
This code always used double-linked list before this rework in 8.0 that
introduced all these crashes and memory leaks. Using single-linked list
is actually a performance regression, because there are frequent removes
here and single-linked list obviously handles removes much worse.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 28 Jul 2021 22:54:03 +0000 (01:54 +0300)]
bgpd: fix missing damp info free when cleaning bgp path
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 28 Jul 2021 22:43:59 +0000 (01:43 +0300)]
bgpd: fix missing delete from the list in dampening
When bgp_damp_info_free is called from bgp_route.c, we were never
deleting the BDI from the list.
Move the deletion inside bgp_damp_info_free to cover all cases.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 28 Jul 2021 22:39:38 +0000 (01:39 +0300)]
bgpd: cleanup bgp_damp_info_free
bgp_damp_config, afi and safi are never used.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 28 Jul 2021 22:27:18 +0000 (01:27 +0300)]
bgpd: fix memory leak in dampening
bdi->path is never NULL, therefore the structure was never freed.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 28 Jul 2021 22:17:50 +0000 (01:17 +0300)]
bgpd: fix incorrect usage of slist in dampening
Current code is a complete misuse of SLIST structure. Instead of just
adding a SLIST_ENTRY to struct bgp_damp_info, it allocates a separate
structure to be a node in the list.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Russ White [Thu, 29 Jul 2021 19:04:49 +0000 (15:04 -0400)]
Merge pull request #9216 from donaldsharp/simple_snmp_fix
tests: Set addresses before we use snmpd
Russ White [Thu, 29 Jul 2021 19:03:17 +0000 (15:03 -0400)]
Merge pull request #9225 from idryzhov/bgp-damp-list-readd
bgpd: fix missing list add in dampening
Russ White [Thu, 29 Jul 2021 19:00:55 +0000 (15:00 -0400)]
Merge pull request #9193 from mobash-rasool/ospfv3-bug-fixes
ospf6d: Type-7 LSA originated with wrong sequence number
Igor Ryzhov [Thu, 29 Jul 2021 18:34:56 +0000 (21:34 +0300)]
*: cleanup interface node installation
The only difference in daemons' interface node definition is the config
write function. No need to define the node in every daemon, just pass
the callback as an argument to a library function and define the node
there.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 29 Jul 2021 15:28:06 +0000 (18:28 +0300)]
Merge pull request #9222 from ton31337/fix/bgp_dampening_clear
bgpd: Drop double-pointer for bgp_damp_info_free()
Igor Ryzhov [Thu, 29 Jul 2021 11:42:16 +0000 (14:42 +0300)]
bgpd: fix missing list add in dampening
One more crash in dampening code...
When bgp_damp_withdraw is called, if there's already a BDI structure,
bgp_damp_info_claim is called to re-assign the bdi->config in case it
was changed. The problem is that bgp_damp_info_claim actually removes
the BDI from the reuse list of the old config and never adds it to the
reuse list of the new config. We must do this to prevent the crash
because all the code assumes that BDI is always in some list.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Rafael Zalamena [Thu, 29 Jul 2021 10:10:29 +0000 (07:10 -0300)]
Merge pull request #9212 from idryzhov/pim-crash
pimd: fix missing list remove when deleting mesh group
Donatas Abraitis [Thu, 29 Jul 2021 08:47:56 +0000 (11:47 +0300)]
Merge pull request #9215 from idryzhov/bgp-damp-crash
bgpd: fix double free in dampening code
Donatas Abraitis [Thu, 29 Jul 2021 08:11:15 +0000 (11:11 +0300)]
bgpd: Drop double-pointer for bgp_damp_info_free()
This causes a crash using `clear ip bgp dampening <prefix>`.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>