summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_message.h (unfollow)
Commit message (Collapse)AuthorFilesLines
5 dayspimd: always write cand-rp group config even when rp is inactiveJafar Al-Gharaibeh1-7/+5
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 dayslib: fix new (incorrect) CLANG SA warningsChristian Hopps3-10/+12
Signed-off-by: Christian Hopps <chopps@labn.net>
5 daystests: add datastore notification testChristian Hopps4-27/+207
Signed-off-by: Christian Hopps <chopps@labn.net>
5 daysmgmtd: add notify selectors to filter datastore notificationsChristian Hopps10-51/+335
- Additionally push the selectors down to the backends Signed-off-by: Christian Hopps <chopps@labn.net>
5 dayslib: notify on datastore (oper-state) changesChristian Hopps4-3/+540
Signed-off-by: Christian Hopps <chopps@labn.net>
5 dayslib: if: track oper-state inlineChristian Hopps4-17/+154
Signed-off-by: Christian Hopps <chopps@labn.net>
5 dayslib: vrf: track oper-state inlineChristian Hopps3-3/+50
Signed-off-by: Christian Hopps <chopps@labn.net>
5 dayslib: northbound: add basic oper-state update functionsChristian Hopps6-0/+391
Signed-off-by: Christian Hopps <chopps@labn.net>
5 daystools: fix frr-reload for nbr deletion of no form cmdsChirag Shah1-1/+5
When a bgp neighbor removed from associated to peer-group, the neighbor is fully deleted, subsequent deletion of any configuration related to the neighbor leads to failure in frr-reload. Handle any 'no neighbor ...' part of lines_to_del list Testing: Below first line would delete the neighbor swp1.10, the existing code before the change handles to remove config starts with 'neighbor swp1.10 ...' but not 'no neighbor swp1.10 ...'. (Pdb) (lines_to_del) (('router bgp 100',), 'neighbor swp1.10 interface peer-group dpeergrp_2'), (('router bgp 100',), 'neighbor swp1.10 advertisement-interval 1'), (('router bgp 100',), 'neighbor swp1.10 timers 3 9'), (('router bgp 100',), 'neighbor swp1.10 timers connect 1'), (('router bgp 100',), 'no neighbor swp1.10 capability dynamic'), Before fix: (Pdb) (lines_to_del) [(('router bgp 100',), 'neighbor swp1.10 interface peer-group dpeergrp_2'), (('router bgp 100',), 'no neighbor swp1.10 capability dynamic')] frr-reload log: 2025-01-13 05:13:11,172 INFO: Executed "router bgp 100 no neighbor swp1.10 interface peer-group dpeergrp_2 exit" 2025-01-13 05:13:11,227 ERROR: Failed to execute router bgp 100 neighbor swp1.10 capability dynamic exit 2025-01-13 05:13:11,228 ERROR: "router bgp 100 -- neighbor swp1.10 capability dynamic -- exit" we failed to remove this command After fix: (Pdb)(lines_to_del) [(('router bgp 100',), 'neighbor swp1.10 interface peer-group dpeergrp_2')] Signed-off-by: Chirag Shah <chirag@nvidia.com>
5 daysdoc: building html/pdf user and developer documentationJafar Al-Gharaibeh2-0/+63
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 daysdoc: fix LaTex warning when building pdf docsJafar Al-Gharaibeh2-14/+14
LaTex doesn't like the Unicon character `≥` which should be represented by the special sequnce `$\leq$`. Since this is buried all in Sphinx, and we also have a scrip that look for the character, the easiest fix is to just use `>=` instead which works without warnings, and without asking to ignore every warning about the use of every instance of the special char. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 dayspimd: explicitly ensure the RP src is BSRJafar Al-Gharaibeh1-1/+1
With the recent suppoort of multiple sources of RPs, we can assume non static RPs are BSR RPs. Just make the check explicit for BSR. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 dayspimd: fix BSR RPs timing outJafar Al-Gharaibeh1-11/+16
On the BSR node itself, RPs shouldn't timeout, becase we know the node is the BSR, and it is active! fixes:#17587 Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 dayslib: Adopt Lua stuff for Lua 5.4Donatas Abraitis1-0/+2
lua_pcall() returns LUA_ERRGCMM in 5.3 which is already deprecated. The constant LUA_ERRGCMM was removed. Errors in finalizers are never propagated; instead, they generate a warning. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
5 daysconfigure: Adopt for Lua 5.4Donatas Abraitis1-17/+36
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
6 daysm4: Update ax_lua to support Lua 5.4Donatas Abraitis1-31/+61
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
6 daystests: update munet to 0.15.4Christian Hopps5-14/+353
- add readline and waitline functions for use with popen objects - other non-topotest (munet native) run changes - vm/qemu support booting cloud images (rocky, ubuntu, debian) - native topology init commands Signed-off-by: Christian Hopps <chopps@labn.net>
7 daysdocker: add ubuntu24-ci docker image supportChristian Hopps3-4/+70
Signed-off-by: Christian Hopps <chopps@labn.net>
7 daysdoc: add building for ubuntu 24.04, and refactorChristian Hopps4-321/+168
- All 3 ubutu 2x (20.04, 22.04 and 24.04) have the same instructions so put them in one include file. Signed-off-by: Christian Hopps <chopps@labn.net>
7 daysbgpd: remove unused safi in bgp_aggregate structureEnke Chen2-4/+1
Remove the unused safi field in bgp_aggregate structure. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
7 daysbgpd: fix churn of aggregate routes from duplicate configEnke Chen1-0/+26
Currently when an aggregate-address is configured, the existing entry is always removed regardless whether any change is involved. This would create unnecessary churn of the aggregate route when the same config is applied for the aggregate address. The fix is to check for duplicate aggregate-address config. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
8 daystests: remove unnecessary wildcard fields from pim acl testJafar Al-Gharaibeh1-16/+0
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
8 dayszebra: Optimize invoking nhg compare funcRajasekar Raja1-2/+2
In some cases, the old_re nhe and the newnhe is same and there is no point in comparing them both since they are the same. Skip comparing in such cases. Ex: 2025/01/09 23:49:27.489020 ZEBRA: [W4Z4R-NTSMD] zebra_nhg_rib_find_nhe: => nhe 0x555f611d30c0 (44[38/39/45]) 2025/01/09 23:49:27.489021 ZEBRA: [ZH3FQ-TE9NV] zebra_nhg_rib_compare_old_nhe: 0.0.0.0/0 new id: 44 old id: 44 2025/01/09 23:49:27.489021 ZEBRA: [YB8HE-Z86GN] zebra_nhg_rib_compare_old_nhe: 0.0.0.0/0 NEW 0x555f611d30c0 (44[38/39/45]) 2025/01/09 23:49:27.489023 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 20.1.1.9[0] vrf default(0) wgt 1, with flags 2025/01/09 23:49:27.489024 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 30.1.2.9[0] vrf default(0) wgt 1, with flags 2025/01/09 23:49:27.489025 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 20.1.1.2[4] vrf default(0) wgt 1, with flags ACTIVE 2025/01/09 23:49:27.489026 ZEBRA: [ZM3BX-HPETZ] zebra_nhg_rib_compare_old_nhe: 0.0.0.0/0 OLD 0x555f611d30c0 (44[38/39/45]) 2025/01/09 23:49:27.489027 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 20.1.1.9[0] vrf default(0) wgt 1, with flags 2025/01/09 23:49:27.489028 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 30.1.2.9[0] vrf default(0) wgt 1, with flags 2025/01/09 23:49:27.489028 ZEBRA: [ZSB1Z-XM2V3] 0.0.0.0/0: NH 20.1.1.2[4] vrf default(0) wgt 1, with flags ACTIVE Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
9 daysospfd: avoid the redundant timersanlan_cs1-2/+1
Since the timer thread for ```OSPF_ROUTE_AGGR_DEL``` has been created, the subsequent "no summary-address" commands shouldn't trigger redundant timers. Signed-off-by: anlan_cs <anlan_cs@126.com>
9 daysospf6d: guard a couple of debugsJafar Al-Gharaibeh1-2/+5
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
9 daysbgpd: fix memory leak in bgp_aggregate_install()Enke Chen1-1/+8
Potential memory leak with as-set and matching-MED-only config. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
9 daysbgpd: Fix showing default `timers bgp x y`Donatas Abraitis3-15/+16
Fixes: ef4a9215b912c885498715614ee01b43dc861c1a ("bgpd: Reuse defined constants for BGP timers") Fixes: ab3535fbcf37b59ec02332fa021142c5b7d6dd3e ("bgpd: Implement connect retry backoff") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
9 daystests: avoid nondeterministic routeJafar Al-Gharaibeh4-36/+15
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
9 daysbgpd: use igpmetric in bgp_aigp_metric_total()Enke Chen1-3/+4
Use igpmetric from bgp_path_info in bgp_igp_metric_total() to be consistent with all other cases, e.g., as in bgp_path_info_cmp(). Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
9 daystests: bgp_srv6l3vpn_to_bgp_vrf3 needs more timeDonald Sharp1-3/+3
The test starts with checking for rib insertion of routes that may take some time after system startup to come up. Under heavy load this may cause this test to just fail. Give it more time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
9 dayslib: remove interface dead codeLouis Scalbert1-41/+0
Remove interface dead code. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
9 daysbgpd: fix crash in displaying json orf prefix-listLouis Scalbert1-1/+2
bgpd crashes when there is several entries in the prefix-list. No backtrace is provided because the issue was catched from a code review. Fixes: 856ca177c4 ("Added json formating support to show-...-neighbors-... bgp commands.") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
9 daysbgpd: fix bgp orf prefix-list json prefixLouis Scalbert1-6/+1
0x<address>FX was displayed instead of the prefix. Fixes: b219dda129 ("lib: Convert usage of strings to %pFX and %pRN") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
9 dayszebra: Fix leaked nheDonald Sharp1-5/+14
During route processing in zebra, Zebra will create a nexthop group that matches the nexthops passed down from the routing protocol. Then Zebra will look to see if it can re-use a nhe from a previous version of the route entry( say a interface goes down ). If Zebra decides to re-use an nhe it was just dropping the route entry created. Which led to nexthop group's that had a refcount of 0 and in some cases these nexthop groups were installed into the kernel. Add a bit of code to see if the returned entry is not being used and it has no reference count and if so, properly dispose of it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
9 daystests: bgp_srv6_sid_reachability should give more timeDonald Sharp1-1/+1
The test starts right in on check_pings with a 10 second time out. Any type of delay on startup is going to cause problems. Give the first check_ping significant time for the test to be fully brought up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
10 daysbgpd: apply route-map for aggregate before attribute comparisonEnke Chen1-78/+24
Currently when re-evaluating an aggregate route, the full attribute of the aggregate route is not compared with the existing one in the BGP table. That can result in unnecessary churns (un-install and then install) of the aggregate route when a more specific route is added or deleted, or when the route-map for the aggregate changes. The churn would impact route installation and route advertisement. The fix is to apply the route-map for the aggregate first and then compare the attribute. Here is an example of the churn: debug bgp aggregate prefix 5.5.5.0/24 ! route-map set-comm permit 10 set community 65004:200 ! router bgp 65001 address-family ipv4 unicast redistribute static aggregate-address 5.5.5.0/24 route-map set-comm ! Step 1: ip route 5.5.5.1/32 Null0 Jan 8 10:28:49 enke-vm1 bgpd[285786]: [J7PXJ-A7YA2] bgp_aggregate_install: aggregate 5.5.5.0/24, count 1 Jan 8 10:28:49 enke-vm1 bgpd[285786]: [Y444T-HEVNG] aggregate 5.5.5.0/24: installed Step 2: ip route 5.5.5.2/32 Null0 Jan 8 10:29:03 enke-vm1 bgpd[285786]: [J7PXJ-A7YA2] bgp_aggregate_install: aggregate 5.5.5.0/24, count 2 Jan 8 10:29:03 enke-vm1 bgpd[285786]: [S2EH5-EQSX6] aggregate 5.5.5.0/24: existing, removed Jan 8 10:29:03 enke-vm1 bgpd[285786]: [Y444T-HEVNG] aggregate 5.5.5.0/24: installed --- Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
10 daystests: Check if allowas-in works when importing between local VRFsDonatas Abraitis4-0/+225
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
10 daysbgpd: Respect allowas-in value from the source VRF's peerDonatas Abraitis3-19/+21
If the peer which has allowas-in enabled and then reimports the routes to another local VRF, respect that value. This was working with < 10.2 releases. Fixes: d4426b62d221f4e15810dbe578de05df8991c991 ("bgpd: copy source vrf ASN to leaked route and block loops") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
10 daysRevert "bgpd: Reinstall aggregated routes if using route-maps and it was ↵Enke Chen3-6/+2
changed" This reverts commit ee1986f1b5ae6b94b446b12e1b77cc30d8f5f46d. The fix is incomplete, and is no longer needed with the fix that applies the route-map for an aggregate and then compares the attribute. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
10 dayslibs: remove deprecated 'clear thread' cliMark Stapp1-12/+0
Remove a deprecated 'clear thread cpu' command. Signed-off-by: Mark Stapp <mjs@cisco.com>
11 dayslib: Fix privs syscaps (pset_t) allocationMartin Buck1-1/+1
Don't over-allocate syscaps in zcaps2sys(): This is just a single struct (pset_t) with a count and a pointer to an array of capabilities, not an array. So only allocate a single pset_t, not num copies of it. The allocation size of syscaps->caps then needs to be based on the number of Linux capabilities (count), but that is already handled properly a few lines below. Note that this fix is mostly cosmetic and for correctness. There was no potential for memory corruption, because num is guaranteed to be nonzero. So at least the one required pset_t was always allocated (but potentially much more). Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
11 daysbgpd: add debugging command for route aggregationEnke Chen4-4/+163
Add a new debugging command: debug bgp aggregate [prefix <A.B.C.D/M|X:X::X:X/M>] Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
11 daysdoc: add bmp import-vrf-view on the bmp user guidePhilippe Guibert1-0/+5
Add the bmp import-vrf-view command on the bmp user guide. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daystopotests: bmp, test syncro for pre/post-policy of imported bgpsPhilippe Guibert5-39/+199
Add a test that controls that the configuration of an imported BGP instance triggers a re-syncronisation. Ensure that changing an attribute like route distinguisher triggers also a re-syncronisation. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd: bmp, handle imported bgp instances in bmp end of ribPhilippe Guibert2-10/+10
Modify the bmp_eor() function to send end of rib messages for each peer of the current BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd: add sync for monitored afi/safi of imported bgpsPhilippe Guibert2-33/+142
If an imported BGP is configured after BGP updates have been received, then BMP will not detect those updates in the monitor messages. Syncronisation is also needed for separate instances. For each imported bgp instance, syncronisation is re-done for monitored afi/safis for ALL available instances. - upon configuring an afi/safi (as previously) - when configuring an imported view Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd: rework bmp end of rib processingPhilippe Guibert1-13/+16
Move the end of rib processing code of a given BGP instance in a separate function. This code prepares the next commit, it avoids having the following warning: > WARNING: Too many leading tabs - consider code refactoring Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd: fix access to invalid memory zonePhilippe Guibert1-0/+1
> ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f73891cb146 bp 0x7ffca86584c0 sp 0x7ffca8658490 T0) > ==837617==The signal is caused by a READ memory access. > ==837617==Hint: address points to the zero page. > #0 0x7f73891cb146 in bmp_targets_const_next bgpd/bgp_bmp.c:149 > #1 0x7f73891cb1a5 in bmp_targets_next bgpd/bgp_bmp.c:149 > #2 0x7f73891e875a in _bmp_vrf_state_changed_internal bgpd/bgp_bmp.c:3520 > #3 0x7f73891e8922 in bmp_vrf_itf_state_changed bgpd/bgp_bmp.c:3566 > #4 0x55e511af8d1b in hook_call_bgp_vrf_status_changed bgpd/bgp_zebra.c:64 > #5 0x55e511afa304 in bgp_ifp_up bgpd/bgp_zebra.c:234 > #6 0x7f738981c193 in hook_call_if_up lib/if.c:57 > #7 0x7f738981d09a in if_up_via_zapi lib/if.c:203 > #8 0x7f73899d6f54 in zclient_interface_up lib/zclient.c:2671 > #9 0x7f73899e3e5a in zclient_read lib/zclient.c:4624 > #10 0x7f738998078d in event_call lib/event.c:1996 > #11 0x7f7389848933 in frr_run lib/libfrr.c:1232 > #12 0x55e5117f7ae1 in main bgpd/bgp_main.c:557 > #13 0x7f7389229d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 > #14 0x7f7389229e3f in __libc_start_main_impl ../csu/libc-start.c:392 > #15 0x55e5117f4234 in _start (/usr/lib/frr/bgpd+0x2ec234) Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd, topotests: bmp imported bgp, send peer up events when config param changedPhilippe Guibert2-1/+98
When a BGP instance is created or becomes valid, and when a parameter is updated (router-id, route distinguisher), the peer up messages other than loc rib peer up messages, are sent. Add a test that controls if peer down and peer up messages are sent accordingly with correct route distinguisher values. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
11 daysbgpd, topotests: bmp, send peer down when unconfiguring imported vrfPhilippe Guibert2-21/+79
When unconfiguring an imported BGP instance, a peer down should be sent to notify BMP collector that the BGP instance is leaving. Add a test that controls the presence of the peer down loc-rib message. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>