summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
AgeCommit message (Collapse)Author
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-12-03sharpd: return check (Coverity 1475198)F. Aragon
Signed-off-by: F. Aragon <paco@voltanet.io>
2018-11-12*: Replace zclient_new with zclient_new_notifyDonald Sharp
It's been a year since we added the new optional parameters to instantiation. Let's switch over to the new name. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05sharpd: Modify route install to allow v6 nexthopsDonald Sharp
Allow the user to create a v4 route with a v6 nexthop. 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-03-08*: Add code to notify on route removal statusDonald Sharp
If a interested party removes one of it's routes let it know that it has happened as asked for. Add a ZAPI_ROUTE_REMOVED to the send of the route_notify_owner Add a ZAPI_ROUTE_REMOVE_FAIL to the send of the route_notify_owner Add code in sharpd to notice this and to allow it to keep track of routes removed for that invocation and give timing results. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-03-06*: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2018-02-26sharpd: Allow sharp routes to recurseDonald Sharp
When passing in a sharp route, allow the nexthop choosen to recurse to find a match. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-23*: Modify notify_owner to route_notify_ownerDonald Sharp
In the future we are going to have a rule_notify_owner so make the distinction between the two types of notification clearer. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-23*: Add tableid the route entry was sent toDonald Sharp
Add for the southbound pass back the route entries tableid used for installation. 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-08lib, sharpd, zebra: Add new enum for lsp type and pass it through.Donald Sharp
Add the ability to pass the lsp owner type through the zapi and in addition add a new label type for the sharp protocol for testing. Finally modify zebra_mpls.h to not have defaults specified for the enum. That way when we add a new LSP type the compile fails and the person doing the addition knows where he has to touch shit. 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>
2018-02-08*: Track vrfs per nexthop not per route entryDonald Sharp
Track the vfrs on a per nexthop basis instead of on a per route entry basis. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-12*: Send/receive the nexthop vrf_idDonald Sharp
Modify the code to send and receive to/from zebra the nexthops vrf_id. Signed-off-by: Donald Sharp <sharpd@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>