summaryrefslogtreecommitdiffstats
path: root/alpine/APKBUILD.in (unfollow)
Commit message (Collapse)AuthorFilesLines
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>
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>
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 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 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>
12 daystests: ospf6_ecmp_inter_area, no shutdown r7/r8 eth3Martin Buck2-6/+0
Drop eth3 shutdown from ospf6d.conf - it doesn't do anything there. And it actually shouldn't do anything: eth3 on r7/r8 are used as loopback-like interfaces to inject the address on eth2 into OSPFv3. So they need to be up for eth2 to work as expected. Based on original PR#16811 commit: eth3 shutdown is not applied because it is ospf6d.conf. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
12 daystests: ospf6_ecmp_inter_area, use router_json_cmpMartin Buck4-48/+448
Use router_json_cmp when checking for proper nexthops to get better diagnostics in case of mismatches. Add step() messages to see which check failed. Based on original PR#16811 commit: expect_num_nexthops() errors are not understandable. Use router_json_cmp. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
12 daystests: add test for new northbound get functionChristian Hopps3-4/+52
Signed-off-by: Christian Hopps <chopps@labn.net>
12 dayslib: if.c use new get() oper callbackChristian Hopps1-59/+59
Signed-off-by: Christian Hopps <chopps@labn.net>
12 daystests: fe-client: only pick mgmtd FE notify selectors onceChristian Hopps1-5/+37
- adapt fe_client to new notification message format Signed-off-by: Christian Hopps <chopps@labn.net>
12 dayslib: add impl of NOTIF message ops (notif, replace, delete, patch)Christian Hopps1-19/+73
- needed for supporting backend datastore notifications Signed-off-by: Christian Hopps <chopps@labn.net>
12 dayslib: add NOTIF message ops (notification, replace, delete, patch)Christian Hopps2-3/+26
- needed for supporting backend datastore notifications Signed-off-by: Christian Hopps <chopps@labn.net>
12 daystools: add new-style get operation callback supportChristian Hopps1-17/+55
Signed-off-by: Christian Hopps <chopps@labn.net>
12 dayslib: northbound: add new get() callback to add lyd_node direcltyChristian Hopps3-18/+49
This allows eliminating the superfluous yang_data object (which is getting created used to call lyd_new_term then deleted). Instead just call lyd_new_term() in the callback directly. Signed-off-by: Christian Hopps <chopps@labn.net>
12 daystools: we specifically added %Lu to our sprintfrr so allow itChristian Hopps1-7/+8
Signed-off-by: Christian Hopps <chopps@labn.net>
12 daystests: add unit test case for keyless list xpath queriesChristian Hopps2-0/+46
Signed-off-by: Christian Hopps <chopps@labn.net>
12 dayslib: northbound oper: fix keyless position predicate queriesChristian Hopps1-43/+113
- i.e., `show /foos/foo[1]` Signed-off-by: Christian Hopps <chopps@labn.net>
12 daysbgpd: fix a bug in peer_allowas_in_set()Enke Chen1-2/+2
Fix a bug in peer_allowas_in_set() so that the config takes effect for peer-group members. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
12 daysospfd: fix wrong check for two commandsanlan_cs1-4/+8
The users would know the failure of some case for the two commands, just return the error ```CMD_WARNING_CONFIG_FAILED```. Signed-off-by: anlan_cs <anlan_cs@126.com>
12 daysdoc: fix building-for-alpine package pathfamfo1-2/+2
Signed-off-by: famfo <famfo@famfo.xyz>
13 daystests: improve test reliabilityChristian Hopps2-2/+24
Test for presence of IPv6 kernel routes too. Signed-off-by: Christian Hopps <chopps@labn.net>
13 dayslib: change and improve walk finish callback function APIChristian Hopps3-33/+37
Signed-off-by: Christian Hopps <chopps@labn.net>
13 daysmgmtd: improve debug statementChristian Hopps1-2/+2
Signed-off-by: Christian Hopps <chopps@labn.net>
13 daysbgpd: Show ifindex for every BGP nexthop cache entryDonatas Abraitis1-17/+26
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
13 daysbgpd: Use unique value for BGP_NEXTHOP_EVPN_INCOMPLETE flagDonatas Abraitis1-1/+1
This was reused with BGP_NEXTHOP_ULTIMATE by error. Fixes: 93fd9cbb5022e0c40827cd6d6ef339624a8b5daa ("bgpd: Validate imported routes next-hop that is in a default VRF") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
13 dayszebra: Fix ip protocol route-map issue.Sougata Barik4-20/+20
"ip/ipv6 protocol any route-map <route map>" cli is setting wrong route type ( ZEBRA_ROUTE_MAX ), It should set route type ZEBRA_ROUTE_ALL. Ticket: #4101560 Signed-off-by: Sougata Barik <sougatab@nvidia.com>
2025-01-03zebra: fix dpdk compilation errorRajasekar Raja1-111/+9
Fixing compilation error in a switch statement case Fixes :aa4786642c9a65c282d0fd5247a35b0f14fa1c3c Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
2025-01-03ospfd: Correct one wordanlan_cs6-13/+13
Signed-off-by: anlan_cs <anlan_cs@126.com>
2025-01-03tools: Add missing rpki keyword to vrf in frr-reloadJonathan Voss1-1/+1
When reloading the following configuration: ``` vrf red rpki rpki cache tcp 172.65.0.2 8282 preference 1 exit exit-vrf ``` frr-reload.py does not properly enter the `rpki` context within a `vrf`. Because of this, it fails to apply RPKI configurations. Signed-off-by: Jonathan Voss <jvoss@onvox.net>