summaryrefslogtreecommitdiff
path: root/zebra/debug.c
AgeCommit message (Collapse)Author
2024-10-28zebra: add 'debug zebra srv6' commandPhilippe Guibert
Add a specific debug command to handle srv6 troubleshooting. Move the srv6 traces that initially were under 'debug zebra packet' debug. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-12-28zebra: add zebra to mgmtd oper-stateChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-02-09*: auto-convert to SPDX License IDsDavid 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-13zebra: fix flags used for debug dpdkMark Stapp
Use the correct flags for debug zebra dataplane dpdk options. Signed-off-by: Mark Stapp <mjs@labn.net>
2022-11-22zebra: traffic control state managementSiger Yang
This allows Zebra to manage QDISC, TCLASS, TFILTER in kernel and do cleaning jobs when it starts up. Signed-off-by: Siger Yang <siger.yang@outlook.com>
2022-10-26build, vtysh: extract vtysh commands from .xrefDavid Lamparter
Rather than running selected source files through the preprocessor and a bunch of perl regex'ing to get the list of all DEFUNs, use the data collected in frr.xref. This not only eliminates issues we've been having with preprocessor failures due to nonexistent header files, but is also much faster. Where extract.pl would take 5s, this now finishes in 0.2s. And since this is a non-parallelizable build step towards the end of the build (dependent on a lot of other things being done already), the speedup is actually noticeable. Also files containing CLI no longer need to be listed in `vtysh_scan` since the .xref data covers everything. `#ifndef VTYSH_EXTRACT_PL` checks are equally obsolete. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-07*: Create and use infrastructure to show debugs in libDonald Sharp
There are lib debugs being set but never show up in `show debug` commands because there was no way to show that they were being used. Add a bit of infrastructure to allow this and then use it for `debug route-map` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-06-27zebra: infastructure for the new dataplane pluginAnuradha Karuppiah
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2022-06-27zebra: add support for maintaining local neigh entriesAnuradha Karuppiah
Currently specific local neighbors (attached to SVIs) are maintatined in an EVPN specific database. There is a need to maintain L3 neighbors for other purposes including MAC resolution for PBR nexthops. Signed-off-by: Donald Sharp <sharpd@nvidia.com> Cleanup compile and fix crash Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2021-08-06zebra: `debug zebra kernel msgdump` is linux specificDonald Sharp
The command `debug zebra kernel msgdump is netlink specific. There is no point at all to allow this to be configed on non netlink platforms. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-04-30zebra: storage of gre information in zebra layerPhilippe Guibert
zebra is able to get information about gre tunnels. zebra_gre file is created to handle hooks, but is not yet used. also, debug zebra gre command is done to add gre traces. A zebra_gre file is used for complementary actions that may be needed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-29zebra: msgdump debug strangeness cleanupDonald Sharp
a) `debug zebra kernel` turns off `debug zebra kernel msgdump....` this is odd and bad b) `debug zebra kernel msgdump send` turns off receive and vice versa this is counter intuitive as well c) `no zebra kernel msgdump ...` turns off all kernel level debugging we should only turn off msgdump specific debugs d) `no debug zebra kernel` turns off all kernel level debugging we should leave msgdump on. e) Fix `show run` and show debug output Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-04-05zebra: add 'detail' mpls debug settingMark Stapp
Add setting and cli for 'debug zebra mpls detail'. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-02-01zebra: add some debugging for PBR events in zebraStephen Worley
Add some debugging for PBR events internal to zebra, specifically ADD/UPDATE/DELETE of pbr rules. Signed-off-by: Stephen Worley <sworley@nvidia.com>
2020-10-02*: move "show debugging ..." commands to enable nodeIgor Ryzhov
Use the same node for "show debugging" commands in all daemons. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2020-08-05zebra: debug flags for MAC-IP syncAnuradha Karuppiah
Filters for zebra debug logs. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
2020-08-05zebra: debug flags for evpn-mh ES and MAC-ECMPAnuradha Karuppiah
Filters for MH debug logs Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
2020-04-16*: move CLI node names to cmd_node->nameDavid Lamparter
And again for the name. Why on earth would we centralize this, just so people can forget to update it? Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-16*: remove second parameter on install_node()David Lamparter
There is really no reason to not put this in the cmd_node. And while we're add it, rename from pointless ".func" to ".config_write". [v2: fix forgotten ldpd config_write] Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-16*: remove cmd_node->vtyshDavid Lamparter
The only nodes that have this as 0 don't have a "->func" anyway, so the entire thing is really just pointless. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-16*: clean up cmd_node initializersDavid Lamparter
... and use named assignments everywhere (so I can change the struct.) Signed-off-by: David Lamparter <equinox@diac24.net>
2020-02-14zebra: mlag debug was not being persistedAnuradha Karuppiah
Added the mlag keyword to the config level also (in addition to the view level). Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
2020-01-21zebra: include zebra nexthop debug in show runnMark Stapp
Add show output for 'debug zebra nexthop [detail]' category. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2019-12-23zebra: add a debug category for nexthopsMark Stapp
Add a category for nexthops and nh-groups, since we've got quite a bit of code in there now. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2019-03-27zebra: Add detailed debugging command for NHT trackingDonald Sharp
Add a detailed debugging command for NHT tracking and add the detailed output to the log about why we make some decisions that we are. I tried to model this like the rib processing detailed debugs that we added a few months back. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-01-31zebra: Add code to allow us to add debug for mlagDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-10-25zebra: resolve style issues in dplane commitMark Stapp
Resolve (most) style issues in the initial zebra dataplane commit branch. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2018-09-19zebra: fix debug dplane cliMark Stapp
Fix debug dplane cli doc text; mismatch caused a vtysh error. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2018-09-19zebra: add 'debug dplane' support and cliMark Stapp
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2018-05-25zebra: PBR show debugging IPSET/IPTABLE hooks declaredPhilippe Guibert
This hook can be used if the plugin module wrap_script is used. This hook is called to dump the debugging status of this module, on the vty. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2018-03-06*: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2017-10-24*: add missing \n in some help stringsRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-09-27Merge branch 'master' into bgpd-debug-updates-prefixDaniel Walton
2017-09-26zebra: Display if we are debugging zebra vxlan or notDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-19zebra: return CMD_SUCCESS when enabling debugsDaniel Walton
2017-08-21*: Add 'show debugging' command from vtyshDonald Sharp
Allow vtysh to query every daemon about its debugging status in one go. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-09zebra: fix pseudowire code re. upstream changesDavid Lamparter
- VTY_NEWLINE is out - thread API changed with the extra arg - struct rib got renamed to struct route_entry - MPLS_NO_LABEL was removed - RB-tree implementation has some extra args Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-09zebra: add pseudowire managerßingen
Base framework for supporting MPLS pseudowires in FRR. A consistent zserv interface is provided so that any client daemon (e.g. ldpd, bgpd) can install/uninstall pseudowires in a standard way. Static pseudowires can also be implemented by using the same interface. When zebra receives a request to install a pseudowire and the installation in the kernel or hardware fails, a notification is sent back to the client daemon and a new install attempt is made every 60 seconds (until it succeeds). Support for external dataplanes is provided by the use of hooks to install/uninstall pseudowires. Signed-off-by: ßingen <bingen@voltanet.io> Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-07-25zebra: debug cleanupDaniel Walton
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2017-07-17*: reindentreindent-master-afterwhitespace / reindent
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14bgpd, zebra: Cleanup warnings from new codeDonald Sharp
1) Clean up VTY_NEWLINE -> \n 2) Remove usages of VTY_GET_INTEGER Signed-off-by: Donald Sharp
2017-07-14Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attrDonald Sharp
2017-07-14Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attrDonald Sharp
2017-07-14Merge remote-tracking branch 'frr/master' into newline-reduxDavid Lamparter
Lots of conflicts from CMD_WARNING_CONFIG_FAILED... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14*: remove VTYNL, part 4 of 6David Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14*: remove VTYNL, part 2 of 6David Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-13vtysh: return non-zero for configuration failuresDaniel Walton
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> This allows frr-reload.py (or anything else that scripts via vtysh) to know if the vtysh command worked or hit an error.
2017-07-12zebra: VNI and VTEP handlingvivek
Implement fundamental handling for VNIs and VTEPs: - Handle EVPN enable/disable by client (advertise-all-vni) - Create/update/delete VNIs based on VxLAN interface events and inform client - Handle VTEP add/delete from client and install into kernel - New debug command for VxLAN/EVPN - kernel interface (Linux/netlink only) Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-06-29*: s/VTY_NEWLINE/VTYNL/gQuentin Young
Should be able to fit more vty_out onto one line now Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-15*: make consistent & update GPLv2 file headersDavid 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>