| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2024-10-29 | zebra: Add ability to import alternate tables into the MRIB | Nathan Bahr | |
| Expanded the cli command to include an mrib flag for importing to the main table MRIB instead of the main table URIB. Piped through specifying the safi through the import table functions rather than hardcoding to SAFI_UNICAST. Import still only import routes from the URIB subtable, only added the ability to import into the main table MRIB. Signed-off-by: Nathan Bahr <nbahr@atcorp.com> | |||
| 2024-01-28 | zebra: convert vrf configuration output to NB | Igor Ryzhov | |
| Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> | |||
| 2024-01-28 | zebra: convert route-map delay-timer command to NB | Igor Ryzhov | |
| Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> | |||
| 2024-01-28 | zebra: convert ip nht commands to NB | Igor Ryzhov | |
| Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> | |||
| 2024-01-28 | zebra: convert ip protocol commands to NB | Igor Ryzhov | |
| Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> | |||
| 2023-08-11 | zebra: Remove tag from zebra_rmap_obj | Donald Sharp | |
| The tag value in all cases was being set to the re->tag. re is already stored, so let's just use that. Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2023-08-11 | zebra: Remove instance from zebra_rmap_obj data structure | Donald Sharp | |
| In all cases the instance is derived from the re pointer and since the re pointer is already stored, let's just remove it from the game and cut to the chase. Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2023-08-11 | zebra: Replace source_protocol with just using re in route map object | Donald Sharp | |
| Replace the source_protocol with just saving a pointer to the re in the `struct zebra_rmap_obj` data structure. Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2023-08-11 | zebra: import table match against interface name could fail | Donald Sharp | |
| If an import table route-map is trying to match against a particular interface, The code is matching against the actual vrf the route entry is in -vs- the vrf the nexthop entry is in. Let's modify the code to actually allow the import table entry to match against the nexthops vrf. Not working: ip import-table 91 ip import-table 93 route-map FOO no service integrated-vtysh-config ! debug zebra events ! interface green ip address 192.168.4.3/24 exit ! route-map FOO permit 10 match interface green exit eva# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure K>* 0.0.0.0/0 [0/100] via 192.168.119.1, enp13s0, 1d10h07m T[91]>* 1.2.3.5/32 [15/0] via 192.168.119.1, enp13s0, 00:00:05 K>* 169.254.0.0/16 [0/1000] is directly connected, virbr0 linkdown, 1d16h34m C>* 192.168.44.0/24 is directly connected, virbr1, 01:30:51 C>* 192.168.45.0/24 is directly connected, virbr2, 01:30:51 C>* 192.168.119.0/24 is directly connected, enp13s0, 1d16h34m C>* 192.168.122.0/24 is directly connected, virbr0 linkdown, 01:30:51 eva# show ip route table 91 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF default table 91: K>* 1.2.3.5/32 [0/0] via 192.168.119.1, enp13s0, 00:00:15 eva# show ip route table 93 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF default table 93: K * 1.2.3.4/32 [0/0] via 192.168.4.5, green (vrf green), 00:03:05 Working: eva# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure K>* 0.0.0.0/0 [0/100] via 192.168.119.1, enp13s0, 00:03:09 T[93]>* 1.2.3.4/32 [15/0] via 192.168.4.5, green (vrf green), 00:02:21 T[91]>* 1.2.3.5/32 [15/0] via 192.168.119.1, enp13s0, 00:02:26 K>* 169.254.0.0/16 [0/1000] is directly connected, virbr0, 00:03:09 C>* 192.168.44.0/24 is directly connected, virbr1, 00:03:09 C>* 192.168.45.0/24 is directly connected, virbr2, 00:03:09 C>* 192.168.119.0/24 is directly connected, enp13s0, 00:03:09 C>* 192.168.122.0/24 is directly connected, virbr0, 00:03:09 eva# show ip route table 91 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF default table 91: K * 1.2.3.5/32 [0/0] via 192.168.119.1, enp13s0, 00:03:12 eva# show ip route table 93 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF default table 93: K * 1.2.3.4/32 [0/0] via 192.168.4.5, green (vrf green), 00:03:14 Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2023-02-09 | *: auto-convert to SPDX License IDs | David Lamparter | |
| Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> | |||
| 2022-12-09 | zebra: Free up routemap name memory on vrf deletion event | Donald Sharp | |
| Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2021-03-30 | zebra: North-bound implementation for zebra rmaps | Sarita Patra | |
| This commit introduces the implementation for the north-bound callbacks for the zebra-specific route-map match and set clauses. Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com> Signed-off-by: Sarita Patra <saritap@vmware.com> | |||
| 2021-01-21 | zebra: use afi_t for route-map address family arg | Mark Stapp | |
| Use afi_t in the route_map_check api Signed-off-by: Mark Stapp <mjs@voltanet.io> | |||
| 2021-01-08 | zebra: Remove uncalled function | Donald Sharp | |
| Remove the dead function zebra_route_map_write_delay_timer Signed-off-by: Donald Sharp <sharpd@nvidia.com> | |||
| 2020-03-16 | zebra: Disable rmap update thread before routemap_finish while shutting down ↵ | saravanank | |
| zebra Problem: While zebra going down, rmap update thread is being called as part of timer event. This make zebra to crash. RCA: At this time route_map_master_hash is made to 0 by sig int handler. This is causing Zebrad to crash while executing rmap update thread Fix: As part of SIGINT handler, before calling routemap_finish, thread off any routemap update scheduled at that point and make sure that it wont get scheduled again by making the timeout as 0. Signed-off-by: Saravanan K <saravanank@vmware.com> | |||
| 2019-03-25 | add cplusplus guards to all zebra headers | Emanuele Di Pascale | |
| Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io> | |||
| 2019-01-21 | zebra: consolidate how we indentify address-families in the NHT code | Renato Westphal | |
| Favor usage of the afi_t enumeration to identify address-families over using the classic AF_INET[6] constants for that. The choice to use either of the two seems to be mostly arbitrary throughout our code base, which leads to confusion and bugs like the one fixed by commit 6f95d11a1. To address this problem, favor usage of the afi_t enumeration whenever possible, since 1) it's an enumeration (helps the compilers to catch some bugs), 2) has a safi_t sibling and 3) can be used to index static arrays. AF_INET[6] should then be used only when interfacing with the kernel or external libraries like libc. The family2afi() and afi2family() functions can be used to convert between the two different representations back and forth. Signed-off-by: Renato Westphal <renato@opensourcerouting.org> | |||
| 2018-10-11 | zebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4) | vishaldhingra | |
| The new cli for show output Signed-off-by: vishaldhingra vdhingra@vmware.com | |||
| 2018-10-11 | zebra: vrf aware routmap is missing in Zebra #2802(Part 1 of 4) | vishaldhingra | |
| Work to handle the route-maps, namely the header changes in zebra_vrf.h and the mapping of using that everywhere Signed-off-by: vishaldhingra vdhingra@vmware.com | |||
| 2018-07-23 | libs, daemons: use const in route-map apply | Mark Stapp | |
| Use 'const prefix *' in route-map apply apis; led to some corresponding changes in several daemons. Signed-off-by: Mark Stapp <mjs@voltanet.io> | |||
| 2018-07-11 | zebra, libs: use const prefix ptrs in apis | Mark Stapp | |
| Add 'const' to prefix args to several zebra route update, redistribution, and route owner notification apis. Signed-off-by: Mark Stapp <mjs@voltanet.io> | |||
| 2018-05-17 | zebra: Add 'match source-instance' to allow finer grained control | Donald Sharp | |
| Add to zebra route-maps the ability to match on a source-instance route-map FOO deny 55 match source-instance 5 route-map FOO permit 60 ip protocol any route-map FOO This will match any protocol route installation with a source-instance of 5. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> | |||
| 2018-04-22 | zebra: clean up zapi organization | Quentin Young | |
| zserv.c has become something of a dumping ground for everything vaguely related to ZAPI and really needs some love. This change splits out the code fo building and consuming ZAPI messages into a separate source file, leaving the actual session and client lifecycle code in zserv.c. Unfortunately since the #include situation in Zebra has not been paid much attention I was forced to fix the headers in a lot of other source files. This is a net improvement overall though. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com> | |||
| 2017-12-13 | zebra: Make zserv.h the true api for zapi northbound | Donald Sharp | |
| zserv.c had a grab bag of function declarations that did not belong in it. Move those to where they better belong. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> | |||
| 2017-07-17 | *: reindentreindent-master-after | whitespace / reindent | |
| indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org> | |||
| 2017-06-01 | zebra: Refactor 'struct rib' to be 'struct route_entry' | Donald Sharp | |
| The 'struct rib' data structure is missnamed. It really is a 'struct route_entry' as part of the 'struct route_node'. We have 1 'struct route_entry' per route src. As such 1 route node can have multiple route entries if multiple protocols attempt to install the same route. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> | |||
| 2017-05-15 | *: make consistent & update GPLv2 file headers | David Lamparter | |
| The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> | |||
| 2016-10-07 | *: Consistently support 32-bit route tags | Christian Franke | |
| This patch improves zebra,ripd,ripngd,ospfd and bgpd so that they can make use of 32-bit route tags in the case of zebra,ospf,bgp or 16-bit route-tags in the case of ripd,ripngd. It is based on the following patch: commit d25764028829a3a30cdbabe85f32408a63cccadf Author: Paul Jakma <paul.jakma@hpe.com> Date: Fri Jul 1 14:23:45 2016 +0100 *: Widen width of Zserv routing tag field. But also contains the changes which make this actually useful for all the daemons. Signed-off-by: Christian Franke <chris@opensourcerouting.org> | |||
| 2016-05-12 | zebra: Add route-map support to ip import-table | Don Slice | |
| Added the ability to supply a route-map to the ip import-table command, which greatly improves filtering between the kernel prefixes in a non-default table that are imported into the zebra rib. Ticket:CM-8168 Signed-off-by: Donald Slice Reviewed By: Donald Sharp | |||
| 2015-08-26 | Create override for quagga reinstall of originated routes | Donald Sharp | |
| Ticket: CM-7026 Reviewed by: CCR-3315 Testing: See bug Quagga-dev suggested these changes for the quagga override of originated routes. | |||
