]>
git.puffer.fish Git - mirror/frr.git/log
anlan_cs [Wed, 12 Apr 2023 13:40:26 +0000 (21:40 +0800)]
bgpd: Simplify the checking local path
Replace the checking local path code in `update_evpn_type5_route_entry()`
with generic function.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Donald Sharp [Wed, 12 Apr 2023 18:26:22 +0000 (14:26 -0400)]
Merge pull request #13177 from mjstapp/fix_ospf_supoort_typo
ospf,ospf6: fix json key typo supoort
Mark Stapp [Wed, 12 Apr 2023 18:02:14 +0000 (14:02 -0400)]
Merge pull request #13273 from donaldsharp/metaq_not_making_me_meta_happy
zebra: Actually free up memory associated with the mq list
Jafar Al-Gharaibeh [Wed, 12 Apr 2023 15:57:34 +0000 (10:57 -0500)]
Merge pull request #13193 from Keelan10/link_state-memory-leak
lib: link state leak fix
Donald Sharp [Wed, 12 Apr 2023 15:39:26 +0000 (11:39 -0400)]
Merge pull request #13269 from Keelan10/ospf_lsa-memory-leak
ospfd: Fix ospf_lsa memory leak
Donald Sharp [Wed, 12 Apr 2023 15:37:14 +0000 (11:37 -0400)]
Merge pull request #13261 from LabNConsulting/ziemba/rfapi-memleak-cleanup-12478-2
bgpd: rfapi memleak fixes
Mark Stapp [Wed, 12 Apr 2023 15:03:47 +0000 (11:03 -0400)]
Merge pull request #13249 from Pdoijode/connected-route-install-fix
zebra: Mark connected route as installed after interface flap event
Donald Sharp [Mon, 10 Apr 2023 18:12:59 +0000 (14:12 -0400)]
zebra: Actually free up memory associated with the mq list
Free up the link list data structures as well as properly
account for data sizes.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Igor Ryzhov [Wed, 12 Apr 2023 13:06:17 +0000 (16:06 +0300)]
Merge pull request #13242 from LabNConsulting/chopps/no_rip_in_lib
Convert if_rmap to use YANG northbound
Keelan10 [Wed, 12 Apr 2023 09:36:40 +0000 (13:36 +0400)]
ospfd: Fix ospf_lsa memory leak
Free translated LSA when LSA installation fails
Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
Quentin Young [Wed, 12 Apr 2023 05:47:38 +0000 (05:47 +0000)]
Merge pull request #12797 from jvidalallende/ubi8_minimal_dockerfile
docker: reduce ubi8 images size by using ubi8-minimal as base
Jafar Al-Gharaibeh [Wed, 12 Apr 2023 05:05:56 +0000 (00:05 -0500)]
Merge pull request #13122 from rgirada/mgmtd_codecov
mgmtd: Fixing coverity issues and style warnings in the code
Jafar Al-Gharaibeh [Wed, 12 Apr 2023 04:57:40 +0000 (23:57 -0500)]
Merge pull request #13159 from mjstapp/ospf_sockets
ospfd: write socket per interface
Jafar Al-Gharaibeh [Wed, 12 Apr 2023 04:46:18 +0000 (23:46 -0500)]
Merge pull request #13183 from Pdoijode/pdoijode/pim-json-changes
pimd: Option to get IGMP groups and sources for a particular interface
Jafar Al-Gharaibeh [Tue, 11 Apr 2023 21:38:33 +0000 (16:38 -0500)]
Merge pull request #12959 from leonshaw/fix/zif-link-nsid
zebra: Add link_nsid to zebra interface
Mark Stapp [Tue, 11 Apr 2023 20:15:44 +0000 (16:15 -0400)]
Merge pull request #13258 from donaldsharp/evpn_ping
Evpn ping
Mark Stapp [Tue, 11 Apr 2023 20:05:32 +0000 (16:05 -0400)]
Merge pull request #13260 from donaldsharp/bgp_l3vpn_to_vrf_scale_up
tests: Ensure that the scale_up.py script tests for actual sharp inst…
Donatas Abraitis [Tue, 11 Apr 2023 19:48:01 +0000 (22:48 +0300)]
Merge pull request #13090 from pguibert6WIND/explicit_null
bgpd: add cli command to control explicit-null label usage
G. Paul Ziemba [Tue, 11 Apr 2023 17:57:43 +0000 (10:57 -0700)]
bgpd: rfapi memleak fixes
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Christian Hopps [Mon, 10 Apr 2023 10:32:35 +0000 (06:32 -0400)]
ripngd: adapt to new YANG NB if_rmap conversion
- uses YANG grouping and calls if_rmap library code to implement.
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Sun, 9 Apr 2023 09:06:11 +0000 (05:06 -0400)]
ripd: adapt to new YANG NB if_rmap conversion
- uses YANG grouping and calls if_rmap library code to implement.
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Sun, 9 Apr 2023 09:02:51 +0000 (05:02 -0400)]
lib: convert if_rmap to YANG northbound
- nice correspondence between new YANG grouping and shared library code.
- fixes bug with RIPNG use, certainly didn't work before.
- removes rip header from shared library code
- still has uses RIP_NODE/RIPNG_NODE as required by CLI foo.
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Tue, 11 Apr 2023 06:57:48 +0000 (02:57 -0400)]
lib: fix formatting
Signed-off-by: Christian Hopps <chopps@labn.net>
Donatas Abraitis [Tue, 11 Apr 2023 19:24:35 +0000 (22:24 +0300)]
Merge pull request #13213 from mjstapp/fix_dplane_shutdown_event
zebra: fix race during shutdown
Pooja Jagadeesh Doijode [Mon, 10 Apr 2023 21:34:35 +0000 (14:34 -0700)]
pimd: Option to get IGMP groups and sources for a particular interface
1. Added interface name, group address and detail option to existing
"show ip igmp groups" so that user can retrieve all the groups
or a particular group for an interface. Detail option shows the source
information for the group. With that, the show command
looks like:
"show ip igmp [vrf NAME$vrf_name] groups [INTERFACE$ifname [GROUP$grp_str]] [detail$detail] [json$json]"
2. Changed pim_cmd_lookup_vrf() to return empty JSON if VRF is not present
3. Changed "detail" option to print non pretty JSON
4. Added interface name and group address to existing
"show ip igmp sources" so that user can retrieve all the sources for
all the groups or, all the sorces for a particular group for an
interface. With that, the show command looks like:
"show ip igmp [vrf NAME$vrf_name] sourcess [INTERFACE$ifname [GROUP$grp_str]] [json$json]"
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
Donatas Abraitis [Tue, 11 Apr 2023 17:05:34 +0000 (20:05 +0300)]
Merge pull request #13250 from chiragshah6/fdev1
bgpd:add local_es_df_preference into l2vpn-evpn es json output
Donald Sharp [Tue, 11 Apr 2023 14:49:34 +0000 (10:49 -0400)]
tests: Ensure that the scale_up.py script tests for actual sharp installed routes first
The scale_up.py script used by several tests installs 50k routes into the rib from
sharpd. It is first looking for the results in the bgp database. Let's ensure
that the routes are actually installed into the rib first before looking in
the bgp tables. This should help situations where the system is under extreme
load.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donatas Abraitis [Tue, 11 Apr 2023 14:28:55 +0000 (17:28 +0300)]
Merge pull request #13254 from manojvn/remove_startupjson_doc
mgmtd: remove the frr_startup.json related documentation.
Mark Stapp [Wed, 29 Mar 2023 20:59:54 +0000 (16:59 -0400)]
doc: add doc for ospf per-interface write socket
Add a doc entry for the per-interface write socket config.
Signed-off-by: Mark Stapp <mjs@labn.net>
Mark Stapp [Wed, 29 Mar 2023 20:58:25 +0000 (16:58 -0400)]
ospfd: support write socket per interface
Add support for a write socket per interface, enabled by
default at the ospf instance level. An ospf instance-level
config allows this to be disabled, reverting to the older
behavior where a single per-instance socket is used for
sending and receiving packets.
Signed-off-by: Mark Stapp <mjs@labn.net>
Philippe Guibert [Fri, 24 Mar 2023 06:08:48 +0000 (07:08 +0100)]
topotests: add topotest to check bgp lu explicit-null service
The test ensures that the incoming prefixes are received with
the appropriate label value, and that connectivity is ensured
between prefixes.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Fri, 17 Mar 2023 13:46:13 +0000 (14:46 +0100)]
bgpd: add cli command to control explicit-null label usage
In BGP labeled unicast address-family, it is not possible to
send explicit-null label values with redistributed or network
declared prefixes.
A new CLI command is introduced:
> [no] bgp labeled-unicast explicit-null
When used, the explicit-null value for IPv4 ('0' value) or
IPv6 ('2' value) will be used.
It is necessary to reconfigure the networks or the
redistribution in order to inherit this new behaviour.
Add the documentation.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Russ White [Tue, 11 Apr 2023 13:55:24 +0000 (09:55 -0400)]
Merge pull request #13163 from isabelladeleon12/isis_log_drops
isisd: Add support for log-pdu-drops
Russ White [Tue, 11 Apr 2023 13:49:01 +0000 (09:49 -0400)]
Merge pull request #12698 from Orange-OpenSource/isisd
Isisd/Lib: Add new printfrr format facility for Intermediate System ID
Donald Sharp [Tue, 11 Apr 2023 13:16:36 +0000 (09:16 -0400)]
tests: Cleanup formatting in a couple of test scripts
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Tue, 11 Apr 2023 13:15:13 +0000 (09:15 -0400)]
tests: Fix evpn tests to ensure mac addresses will show up
Locally, the bgp_evpn_vxlan_svd_topo1 and bgp_evpn_vxlan_topo1
tests are failing for me. Upon inspection the test is looking
for the mac addresses of the interfaces participating in the
evpn bridging on the hosts. For some reason on my machine
these mac addresses are not in the l2 tables at all on
PE1 or PE2. Adding quick pings solves the problems.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Russ White [Tue, 11 Apr 2023 12:55:47 +0000 (08:55 -0400)]
Merge pull request #13227 from mjstapp/ospf_sock_bufsizes
ospfd: support configuration of socket buffer sizes
Donatas Abraitis [Tue, 11 Apr 2023 11:37:40 +0000 (14:37 +0300)]
Merge pull request #13226 from anlancs/fix/ripd-leak
ripd: Fix memory leak for ripd's route-map
Donatas Abraitis [Tue, 11 Apr 2023 11:34:12 +0000 (14:34 +0300)]
Merge pull request #13240 from chiragshah6/fdev2
bgpd: EVPN-MH ESI is not active suppress EAD-ES Type-1 route
Donatas Abraitis [Tue, 11 Apr 2023 11:31:51 +0000 (14:31 +0300)]
Merge pull request #13245 from anlancs/cleanup/ripd-1
ripd: Cosmetic changes for ripd
Manoj Naragund [Tue, 11 Apr 2023 11:03:58 +0000 (04:03 -0700)]
mgmtd: remove the frr_startup.json related documentation.
Since mgmtd no longer supports the frr_startup.json, removing the
documentation related to that. Proper documentation will be added
when/if the frr_startup.json is ever supported.
Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Christian Hopps [Tue, 11 Apr 2023 06:35:26 +0000 (02:35 -0400)]
Merge pull request #13247 from donaldsharp/evpn_crashes_and_other_ilk
Evpn crashes and other ilk
Sindhu Parvathi Gopinathan [Mon, 10 Apr 2023 11:54:09 +0000 (04:54 -0700)]
bgpd:add local_es_df_preference into l2vpn-evpn es json output
Added "Local ES DF preference" into bgp l2vpn evpn es json output.
- show bgp l2vpn evpn es <es-id> json
- show bgp l2vpn evpn es detail json
Before Fix:-
```
cumulus@torm-11:mgmt:~$ sudo vtysh -c "show bgp l2vpn evpn es
03:44:38:39:ff:ff:01:00:00:01 json"
{
"esi":"03:44:38:39:ff:ff:01:00:00:01",
"rd":"27.0.0.21:15",
"type":[
"local",
"remote"
],
"vteps":[
{
"vtep_ip":"27.0.0.22",
"flags":[
"esr",
"active"
],
"dfPreference":32767,
"dfAlgorithm":32767
},
{
"vtep_ip":"27.0.0.23",
"flags":[
"esr",
"active"
],
"dfPreference":32767,
"dfAlgorithm":32767
}
],
"vniCount":10,
"flags":[
"up",
"advertiseEVI"
],
"originator_ip":"27.0.0.21",
"remoteVniCount":10,
"vrfCount":3,
"macipPathCount":33,
"macipGlobalPathCount":132,
"inconsistentVniVtepCount":0,
"fragments":[
{
"rd":"27.0.0.21:15",
"eviCount":10
}
]
}
cumulus@torm-11:mgmt:~$
```
After Fix:-
```
cumulus@torm-11:mgmt:~$
cumulus@torm-11:mgmt:~$ sudo vtysh -c "show bgp l2vpn evpn es
03:44:38:39:ff:ff:01:00:00:01 json"
{
"esi":"03:44:38:39:ff:ff:01:00:00:01",
"rd":"27.0.0.21:4",
"type":[
"local",
"remote"
],
"vteps":[
{
"vtep_ip":"27.0.0.22",
"flags":[
"esr",
"active"
],
"dfPreference":32767,
"dfAlgorithm":32767
},
{
"vtep_ip":"27.0.0.23",
"flags":[
"esr",
"active"
],
"dfPreference":32767,
"dfAlgorithm":32767
}
],
"vniCount":10,
"flags":[
"advertiseEVI"
],
"originator_ip":"27.0.0.21",
"remoteVniCount":10,
"vrfCount":3,
"macipPathCount":33,
"macipGlobalPathCount":132,
"inconsistentVniVtepCount":0,
"localEsDfPreference":50000, ====> Added Local ES DF preference
"fragments":[
{
"rd":"27.0.0.21:4",
"eviCount":10
}
]
}
cumulus@torm-11:mgmt:~$
```
Ticket:#
3411906
Issue:
3411906
Testing: UT done
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
Pooja Jagadeesh Doijode [Mon, 10 Apr 2023 23:03:23 +0000 (16:03 -0700)]
zebra: Install directly connected route after interface flap
Issue:
After vlan flap, zebra was not marking the selected/best route as installed.
As a result, when a static route was configured with nexthop as directly
connected interface's(vlan) IP, the static route was not being installed
in the kernel since its nexthop was unresolved. The nexthop was marked
unresolved because zebra failed to mark the best route as installed after
interface flap.
This was happening because, in dplane_route_update_internal() if the old and
new context type, and nexthop group id are the same, then zebra doesn't send
down a route replace request to kernel. But, the installed (ROUTE_ENTRY_INSTALLED)
flag is set when zebra receives a response from kernel. Since the
request to kernel was being skipped for the route entry, installed flag
was not being set
Fix:
In dplane_route_update_internal() if the old and new context type, and
nexthop group id are the same, then before returning, installed flag will
be set on the route-entry if it's not set already.
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
Donald Sharp [Mon, 10 Apr 2023 18:04:27 +0000 (14:04 -0400)]
bgpd: Do not allow a `no router bgp XXX` when autoimport is happening
When we have these sequence of events causing a crash in
evpn_type5_test_topo1:
(A) no router bgp vrf RED 100
this schedules for deletion the vrf RED instance
(B) a l3vni change event from zebra
this creates a bgp instance for VRF RED in some cases
additionally it auto imports evpn routes into VRF RED
Please note this is desired behavior to allow for the
auto importation of evpn vrf routes
(C) no router bgp 100
The code was allowing the deletion of the default
instance and causing tests to crash.
Effectively the test in bgp_vty to allow/dissallow
the removal of the default instance was not correct
for the case when (B) happens.
Let's just not allow the command to succeed in this case as that
the test was wrong.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Mon, 10 Apr 2023 17:59:48 +0000 (13:59 -0400)]
bgpd: Do not allow l3vni changes when shutting down
When a `no router bgp XXX` is issued and the bgp instance
is in the process of shutting down, do not allow a l3vni
change coming up from zebra to do anything. We can just
safely ignore it at this point in time.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Mon, 10 Apr 2023 18:02:18 +0000 (14:02 -0400)]
bgpd: Use the actual pointer type instead of a void
Let's cut to the chase, we know the pointer type and
it allows us to not to some gyrations.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Jafar Al-Gharaibeh [Mon, 10 Apr 2023 16:29:20 +0000 (11:29 -0500)]
Merge pull request #13239 from opensourcerouting/fix/enable_scripting_for_docker_alpine_build
docker: Fix --enable-scripting for Docker images
anlan_cs [Mon, 10 Apr 2023 07:20:43 +0000 (15:20 +0800)]
ripd: Simplify code for distance
Simplify the code for `rip_distance_apply()`.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
anlan_cs [Mon, 10 Apr 2023 03:04:47 +0000 (11:04 +0800)]
ripd: Correct one debug log
Correct one debug log, which wrongly mixed address and port.
Before:
```
ripd[469497]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[469497]: [VEJY5-67P5X] SEND to 224.0.0.9520
```
After:
```
ripd[471330]: [NDAGH-Z85V7] rip_send_packet 3.3.3.4 > 224.0.0.9 (enp1s0)
ripd[471330]: [T8DFR-P09JH] SEND to 224.0.0.9 port 520
```
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Chirag Shah [Sat, 8 Apr 2023 03:14:25 +0000 (20:14 -0700)]
bgpd:evpn-mh esi not active suppress ead-es route
update_type1_routes_for_evi() is called from
L3VNI/L2VNI up event, if ESI is not UP then
do not advertise EAD-ES Type-1 route.
Just like from multiple places EAD-ES route
origination checks for its oper status.
Ticket:#
3413454
Issue:
3413454
Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Donatas Abraitis [Sat, 8 Apr 2023 15:00:53 +0000 (18:00 +0300)]
tests: Copy script1.lua for make dist
This is needed for `make dist` when building Docker images with Lua support.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Sat, 8 Apr 2023 15:00:20 +0000 (18:00 +0300)]
docker: Enable Lua (scripting) for Alpine images
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Sat, 8 Apr 2023 14:59:51 +0000 (17:59 +0300)]
build: Take LUA_LIBS from pkg-config
Alpine Linux has LUA_LIB with a broken path, let's use pkg-config to grab
the LUA_LIBS properly.
checking for library containing lua_load... no
configure: error: Lua 5.3 libraries are required to build with Lua support. No other version is supported.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donald Sharp [Sat, 8 Apr 2023 13:23:22 +0000 (09:23 -0400)]
Merge pull request #13237 from LabNConsulting/chopps/fixriptest
tests: fix cause of intermittent failure
Christian Hopps [Sat, 8 Apr 2023 00:01:33 +0000 (00:01 +0000)]
tests: fix cause of intermittent failure
Signed-off-by: Christian Hopps <chopps@labn.net>
Mark Stapp [Fri, 31 Mar 2023 14:48:45 +0000 (10:48 -0400)]
ospf,ospf6: fix json key typo supoort
Fix json key 'supoort' -> 'support'; add 1-year deprecation
notice; fix topotests to use corrected json key.
Signed-off-by: Mark Stapp <mjs@labn.net>
Jafar Al-Gharaibeh [Fri, 7 Apr 2023 19:45:33 +0000 (14:45 -0500)]
Merge pull request #13109 from LabNConsulting/topotest-cleanup
minor topotest cleanup
Igor Ryzhov [Fri, 7 Apr 2023 14:56:54 +0000 (17:56 +0300)]
Merge pull request #13228 from LabNConsulting/chopps/json-via-yang
Update ripd YANG operational state (ECMP routes)
Donatas Abraitis [Mon, 3 Apr 2023 11:07:41 +0000 (14:07 +0300)]
tests: Check if RIP `allow-ecmp` command works correctly
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Thu, 6 Apr 2023 22:23:31 +0000 (18:23 -0400)]
ripd: implement new YANG operational state
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Thu, 6 Apr 2023 21:28:37 +0000 (17:28 -0400)]
ripd: yang: extend nexthops functionality in YANG model - skeleton
Signed-off-by: Christian Hopps <chopps@labn.net>
Keelan10 [Mon, 3 Apr 2023 07:41:04 +0000 (11:41 +0400)]
lib: Fix link state memory leak
Free link message data when a delete event is recorded.
Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
Donatas Abraitis [Fri, 7 Apr 2023 07:19:09 +0000 (10:19 +0300)]
Merge pull request #13162 from donaldsharp/pass_by_value_no_no_no
*: Use a `struct prefix *p` instead of a `struct prefix` in functions
Donatas Abraitis [Fri, 7 Apr 2023 07:14:54 +0000 (10:14 +0300)]
Merge pull request #13222 from donaldsharp/limit_scope
Limit scope
Christian Hopps [Fri, 7 Apr 2023 05:58:15 +0000 (05:58 +0000)]
tests: don't warn with expected results
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Fri, 24 Mar 2023 22:02:16 +0000 (18:02 -0400)]
tests: initialize parent test namespace too
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Fri, 24 Mar 2023 21:59:33 +0000 (17:59 -0400)]
tests: cleanup infra
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Fri, 24 Mar 2023 21:58:21 +0000 (17:58 -0400)]
tests: create 8 link, switch pairs, not 8 links on one switch
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Fri, 24 Mar 2023 21:58:01 +0000 (17:58 -0400)]
tests: don't flush ipv6 addresses
Signed-off-by: Christian Hopps <chopps@labn.net>
Christian Hopps [Thu, 6 Apr 2023 10:39:06 +0000 (06:39 -0400)]
yang: fix YANG lint
Signed-off-by: Christian Hopps <chopps@labn.net>
Donald Sharp [Thu, 30 Mar 2023 19:48:53 +0000 (15:48 -0400)]
*: Use a `struct prefix *p` instead of a `struct prefix` in functions
When passing a prefix into a function let's pass by address instead
of pass by value. Let's save our stack space.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Wed, 5 Apr 2023 19:25:57 +0000 (15:25 -0400)]
bgpd: Treat withdraw variable as a bool
Used as a bool, treated as a bool. Make it a bool
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark Stapp [Thu, 6 Apr 2023 17:40:23 +0000 (13:40 -0400)]
ospfd: support configuration of socket buffer sizes
Add configurable socket send and receive buffer sizes,
configured at the instance level.
Signed-off-by: Mark Stapp <mjs@labn.net>
anlan_cs [Thu, 6 Apr 2023 13:17:05 +0000 (21:17 +0800)]
ripd: Fix memory leak for ripd's route-map
When cleaning `ripd`, it should free `ctx->name` of `struct if_rmap_ctx`,
not `ctx` itself. Otherwise, it will lead to memory leak.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Donald Sharp [Wed, 5 Apr 2023 18:57:05 +0000 (14:57 -0400)]
bgpd: Limit flowspec to no attribute means a implicit withdrawal
All other parsing functions done from bgp_nlri_parse() assume
no attributes == an implicit withdrawal. Let's move
bgp_nlri_parse_flowspec() into the same alignment.
Reported-by: Matteo Memelli <mmemelli@amazon.it>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Wed, 5 Apr 2023 18:51:47 +0000 (14:51 -0400)]
bgpd: Conform bgp_packet.h with coding standards
FRR's standards state that function declarations should
have actual variable names for parameters passed in.
Let's make this so for bgp_packet.h
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donatas Abraitis [Thu, 6 Apr 2023 09:48:52 +0000 (12:48 +0300)]
Merge pull request #13214 from chiragshah6/fdev2
zebra:return empty dict in json when evpn is disabled
Jafar Al-Gharaibeh [Thu, 6 Apr 2023 03:53:00 +0000 (22:53 -0500)]
Merge pull request #13220 from mjstapp/fix_zebra_gr_client
zebra: null-check client pointer during GR processing
Mark Stapp [Wed, 5 Apr 2023 16:30:52 +0000 (12:30 -0400)]
zebra: null-check client pointer during GR processing
Add a null check.
Signed-off-by: Mark Stapp <mjs@labn.net>
rgirada [Tue, 28 Mar 2023 11:13:47 +0000 (11:13 +0000)]
mgmtd: Fixing style warnings
Description:
Fixing the style warnings in the mgmtd code.
Signed-off-by: Rajesh Girada <rgirada@vmware.com>
rgirada [Fri, 24 Mar 2023 10:09:42 +0000 (10:09 +0000)]
mgmtd: Fixing code coverity issues in mgmtd
Description:
the following list of coverity issues seen in mgmtd code.
1. CID
1536832 : Memory - corruptions (OVERLAPPING_COPY)
/mgmtd/mgmt_history.c: 85 in mgmt_history_create_cmt_rec()
2. CID
1536831 : Error handling issues (NEGATIVE_RETURNS)
/mgmtd/mgmt_be_server.c: 123 in mgmt_be_server_start()
3. CID
1536830 : Resource leaks (RESOURCE_LEAK)
/mgmtd/mgmt_history.c: 146 in mgmt_history_read_cmt_record_index()
4. CID
1536829 : Error handling issues (NEGATIVE_RETURNS)
/mgmtd/mgmt_fe_server.c: 123 in mgmt_fe_server_start()
5. CID
1536828 : Possible Control flow issues (DEADCODE)
/mgmtd/mgmt_txn.c: 1859 in mgmt_txn_get_config()
6. CID
1536827 : Null pointer dereferences (NULL_RETURNS)
/mgmtd/mgmt_ds.c: 526 in mgmt_ds_delete_data_nodes()
Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Donatas Abraitis [Wed, 5 Apr 2023 07:05:49 +0000 (10:05 +0300)]
Merge pull request #13194 from Keelan10/sharpd-memory-leak
[WIP] sharpd: fix leak
Sindhu Parvathi Gopinathan [Tue, 4 Apr 2023 12:38:28 +0000 (05:38 -0700)]
zebra:return empty dict when evpn is disabled
"show evpn json" returns nothing when evpn is disabled.
Code has been fixed to return {} when evpn is disabled or no entry
available.
Before Fix:-
```
cumulus@r2:mgmt:~$ sudo vtysh -c "show evpn json"
cumulus@r2:mgmt:~$
```
After Fix:-
```
cumulus@r1:mgmt:~$ sudo vtysh -c "show evpn json"
{
}
cumulus@r1:mgmt:~$
```
Ticket:#
3417955
Issue:
3417955
Testing: UT done
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Signed-off-by: Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
Jafar Al-Gharaibeh [Wed, 5 Apr 2023 02:10:54 +0000 (21:10 -0500)]
Merge pull request #13145 from donaldsharp/do_delete
Improve and fix zebra GR
Mark Stapp [Tue, 4 Apr 2023 20:37:38 +0000 (16:37 -0400)]
zebra: fix race during shutdown
During shutdown, the main pthread stops the dplane pthread
before exiting. Don't try to clean up any events scheduled
to the dplane pthread at that point - just let the thread
exit and clean up.
Signed-off-by: Mark Stapp <mjs@labn.net>
Jafar Al-Gharaibeh [Tue, 4 Apr 2023 18:36:28 +0000 (13:36 -0500)]
Merge pull request #13206 from opensourcerouting/fix/docker_build_alpine_protobuf
docker: Install missing dependencies for Alpine build
Jafar Al-Gharaibeh [Tue, 4 Apr 2023 18:36:03 +0000 (13:36 -0500)]
Merge pull request #13200 from kuldeepkash/socat_cleanup
tests: [topojson] multicast pimv6 socat cleanup
Jafar Al-Gharaibeh [Tue, 4 Apr 2023 18:34:51 +0000 (13:34 -0500)]
Merge pull request #13209 from LabNConsulting/chopps/log-redux
tests: lower logging level on some infra logs
Isabella de Leon [Fri, 31 Mar 2023 00:16:21 +0000 (17:16 -0700)]
doc: Add CLI documentation for new log-pdu-drops config
Update isisd docs with log-pdu-drops config.
Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
Isabella de Leon [Fri, 31 Mar 2023 00:00:39 +0000 (17:00 -0700)]
isisd: Add log-pdu-drops log functionality
If log-pdu-drops is configured, create an INFO log that displays the PDU type and drop counts when a PDU drop is detected.
Example logs:
2023/03/30 23:54:59.749 ISIS: [VAS9N-1JNNR] PDU drop detected of type: P2P IIH. 1 Total Drops; 0 L1 IIH drops; 0 L2 IIH drops; 1 P2P IIH drops; 0 L1 LSP drops; 0 L2 LSP drops; 0 FS LSP drops; 0 L1 CSNP drops; 0 L2 CSNP drops; 0 L1 PSNP drops; 0 L2 PSNP drops.
2023/03/30 23:54:59.848 ISIS: [VAS9N-1JNNR] PDU drop detected of type: P2P IIH. 2 Total Drops; 0 L1 IIH drops; 0 L2 IIH drops; 2 P2P IIH drops; 0 L1 LSP drops; 0 L2 LSP drops; 0 FS LSP drops; 0 L1 CSNP drops; 0 L2 CSNP drops; 0 L1 PSNP drops; 0 L2 PSNP drops.
Code changes:
Add a new PDU counter function that increments the drop counter and runs the logging functionality if log-pdu-drops is configured.
Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
Isabella de Leon [Thu, 30 Mar 2023 23:25:02 +0000 (16:25 -0700)]
isisd: Add log-pdu-drops CLI/YANG support
New config functionality:
r1# conf
r1(config)# router isis 1
r1(config-router)# log-
log-adjacency-changes Log changes in adjacency state
log-pdu-drops Log any dropped PDUs
r1(config-router)# log-pdu-drops
r1(config-router)# end
Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
Russ White [Tue, 4 Apr 2023 14:02:48 +0000 (10:02 -0400)]
Merge pull request #13160 from chiragshah6/fdev2
ospfd:display correct DR-BDR router-id in nbr cmd
Russ White [Tue, 4 Apr 2023 13:50:02 +0000 (09:50 -0400)]
Merge pull request #13192 from anlancs/fix/ripd-wrong-routemap
ripd: Fix malformed route-map
Russ White [Tue, 4 Apr 2023 13:48:11 +0000 (09:48 -0400)]
Merge pull request #13199 from pguibert6WIND/isis_ipv4_linklocal
isisd: consider link local ipv4 addresses as valid
Jafar Al-Gharaibeh [Tue, 4 Apr 2023 13:42:04 +0000 (08:42 -0500)]
Merge pull request #13131 from LabNConsulting/chopps/no-startup-file
mgmtd: remove startup config feature for now
Russ White [Tue, 4 Apr 2023 13:38:55 +0000 (09:38 -0400)]
Merge pull request #12969 from opensourcerouting/ospfd-nssa
ospfd: implement NSSA default routes & ranges
Russ White [Tue, 4 Apr 2023 12:20:25 +0000 (08:20 -0400)]
Merge pull request #12837 from donaldsharp/unlikely_routemap
Unlikely routemap
Christian Hopps [Tue, 4 Apr 2023 10:21:14 +0000 (10:21 +0000)]
tests: lower logging level on some infra logs
Signed-off-by: Christian Hopps <chopps@labn.net>
Donatas Abraitis [Tue, 4 Apr 2023 08:18:30 +0000 (11:18 +0300)]
docker: Install missing dependencies for Alpine build
protobuf-c-compiler
protobuf-c-dev
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>