summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.h
AgeCommit message (Collapse)Author
2024-10-28sharpd: Allow sharpd to watch nexthops in the mribDonald Sharp
Nothing special here, just allow sharpd to ask to watch nexthops in the mrib. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2024-01-26sharpd: Add ability to turn off watching of redistributionDonald Sharp
Wanted to do some testing of redistribute without having to restart sharpd over and over. Added ability to turn off the `sharp watch redistribute XX` functionality. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2024-01-22sharpd: Allow sharpd to listen to neighbor eventsDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-11-13sharpd: Clean up memory leaks on shutdownDonald Sharp
a) The cleanup of zclient on shutdown was not being done b) Cleanup vrf shutdown c) Cleanup some lists Signed-off-by: Donald Sharp <sharpd@nvidia.com> sharpd: Cleanup shutdown of vrf and some lists Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-06-23sharpd: support opaque zapi notificationsMark Stapp
Add cli and support to sharpd to exercise the zapi opaque 'notification' features. Signed-off-by: Mark Stapp <mjs@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-11-22sharpd: traffic control PoCSiger Yang
This commit adds a command to sharpd to validate the proof of concept for traffic control on specific interface with specific filters. Signed-off-by: Siger Yang <siger.yang@outlook.com>
2022-03-09sharpd: add support for setting protodownStephen Worley
Add support for setting protodown via sharpd. This is just useful for testing. We can make use of this in topotests. Signed-off-by: Stephen Worley <sworley@nvidia.com>
2021-06-02bgpd,sharpd,zebra: fix code styleHiroki Shirokura
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-06-02*: fix code format accourding to checkpatchHiroki Shirokura
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-06-02sharpd: support create/delete srv6-locator (step2)Hiroki Shirokura
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-06-02sharpd: install_routes_helper support ZAPI_ROUTE flags (step1)Hiroki Shirokura
current route addition mechanism on shaprd support only ipv4/v6 nexthop routes simply. so It doesn't need to ensure flags of zapi_routes. Then when we want to configure more complicated routing feature (like a srv6), we will want to control flags of zapi_route. In this patch, it will supports to configure flags of zapi_route when sharpd calls ZEBRA_ROUTE_ADD. Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-05-03sharpd: add v4 redistribute watchingDonald Sharp
Add the ability for sharpd to watch v4 redistribution events Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-03-23sharpd: Add Traffic Engineering Database (TED)Olivier Dugeon
Add new feature and commands to sharpd in order to collect Traffic Engineering Database information from an IGP (OSPF or IS-IS) though the ZAPI Opaque Message and the support of the Link State Library. This feature serves as an example of how to code a Traffic Engineering Database consumer and tests the mechanism. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2020-12-08sharpd, zebra: Pass and display opaque data as PoCDonald Sharp
Pass data from sharpd to zebra as opaque data and display it as part of the detailed route data. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-11-15sharpd: Re-arrange route_add|deleteDonald Sharp
These functions are never called outside of sharp_zebra.c, re-arrange a little to make the inclusions in sharp_zebra.h not needed and to also have these functions return whether or not the underlying buffering system was invoked in stream sending. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-09-28lib,zebra,sharpd: add code for backup proto-NHs but disabledStephen Worley
Add the zapi code for encoding/decoding of backup nexthops for when we are ready for it, but disable it for now so that we revert to the old way with them. When zebra gets a proto-NHG with a backup in it, we early fail and tell the upper level proto. In this case sharpd. Sharpd then reverts to the old way of installation with the route. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
2020-09-28sharpd: add abilty to send a nhg to zebraDonald Sharp
Modify the sharpd program to have the ability to pass down a NHG and then operate on it for route installation. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-08-12sharpd: add a command to send ARP/NDP requestsJakub Urbańczyk
Signed-off-by: Jakub Urbańczyk <xthaid@gmail.com>
2020-08-04sharpd: support 'update lsp' zapi testingMark Stapp
Add 'update' support so that sharpd can exercise add, update, and delete zapi exchanges for LSPs. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-16sharpd: add zclient session create and deleteMark Stapp
Add a couple of clis and some simple support that allows sharpd to create extra zapi client sessions. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-10sharpd,zebra: unicast support for zapi messagesMark Stapp
Distinguish between unicast and broadcast opaque messages in zebra handler code. Add cli and internal api changes to have sharpd send unicast opaque messages. Add opaque cli commands to the sharp user doc. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-02sharpd: send opaque message registrationsMark Stapp
For testing, add cli to sharpd to send opaque message registration and un-registration messages. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-02sharpd: send new OPAQUE messagesMark Stapp
Add a simple cli to exercise the new OPAQUE messages. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-01sharpd: include backup nh info with lspsMark Stapp
If present in a configured nexthop_group, include backup nexthop/nhlfe info with LSP zapi add/update messages. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-03-27sharpd: support backup nexthopsMark Stapp
Add cli and zapi support for backup nexthops for sharpd routes. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-25sharpd: add support for install/remove lspsMark Stapp
First round of support for exercising the lsp and ftn paths using sharpd. This supports lsp-only, and binding to ipv4 prefix. Also use the common lib nexthop-to-zapi helper api instead of sharpd's open-coded version. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2019-03-01sharpd: Add ability to pass vrf we want to watchDonald Sharp
Add the ability for the sharp zebra code to pass down the vrf that we want to watch. At this point in time, we cannot use it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-03-01sharpd: Setup route installation to be able to select vrf to useDonald Sharp
Modify the sharp code to allow for vrf route installation. At this point in time the code is nascent. Future commits will turn on this behavior. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-02-13sharpd: Allow the registration of import checks to zebraDonald Sharp
Minor code modification to allow the sharp_zebra.c code to differentiate between import check or nexthop watch types. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-02-07sharpd: Allow nhop tracking to specify connectedDonald Sharp
Allow the sharp daemon to specify whether or not a watched nexthop should be connected or not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-01-02sharpd: Abstract the route install/delete functions a bitDonald Sharp
Abstract the route install/delete functions a bit to allow me to expand on them in the with future commits. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-01-02sharp: Modify route install to take nexthop groupsDonald Sharp
Modify the route_add function to take nexthop groups. Future commits will allow sharpd to use nexthop groups as the install mechanism for routes. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-17sharp: Allow the specification of instance when adding/deleting routesDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-03-16sharpd: Add ability to register for nhtDonald Sharp
Add code to sharpd to allow it to register for nexthop tracking and then to display when it receives information about the nexthop it is watching. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-14lib, sharpd, zebra: Update the zapi_vrf_label call to add afiDonald Sharp
Add the ability to pass in an afi to zebra. zebra_vrf keeps track of the afi/label tuple and then does the right thing before we call down. AF_MPLS does not care about v4 or v6 it just knows label and what device to use for lookup. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-08sharpd: Add some infrastructure to allow test of ZEBRA_VRF_LABELDonald Sharp
Add some infrastructure to allow the testing of ZEBRA_VRF_LABEL Signed-off-by: Donald Sharp <sharp@cumulusnetworks.com>
2017-11-27sharpd: Add Super Happy Advanced Routing ProtocolDonald Sharp
Add a daemon that will allow us to test the zapi as well as test route install/removal times from the kernel. The current commands are: install route <starting ip address> nexthop <nexthop> (1-1000000) This command starts installing at <starting ip address>/32 (1-100000) routes that it auto-increments by 1 Installation start time is noted in the log and finish time is noted as well. remove routes <starting ip address> (1-1000000) This command removes routes at <starting ip address>/32 and removes (1-100000) routes created by the install route command. This code can be considered experimental and *is not* something that should be run in a production environment. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>