summaryrefslogtreecommitdiffstats
path: root/sharpd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sharpd: Add ability to register for nhtDonald Sharp2018-03-163-0/+103
| | | | | | | | 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>
* *: globally ignore clippy-generated sourceQuentin Young2018-03-091-1/+0
| | | | | | Tired of dealing with this Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: Add code to notify on route removal statusDonald Sharp2018-03-091-4/+22
| | | | | | | | | | | | | | 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>
* *: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger2018-03-062-4/+4
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* sharpd: Allow sharp routes to recurseDonald Sharp2018-02-271-0/+1
| | | | | | | When passing in a sharp route, allow the nexthop choosen to recurse to find a match. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: Modify notify_owner to route_notify_ownerDonald Sharp2018-02-231-3/+3
| | | | | | | | 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>
* *: Add tableid the route entry was sent toDonald Sharp2018-02-231-1/+2
| | | | | | | Add for the southbound pass back the route entries tableid used for installation. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* Merge pull request #1753 from donaldsharp/afi_vrf_labelLou Berger2018-02-163-5/+8
|\ | | | | lib, sharpd, zebra: Update the zapi_vrf_label call to add afi
| * lib, sharpd, zebra: Update the zapi_vrf_label call to add afiDonald Sharp2018-02-143-5/+8
| | | | | | | | | | | | | | | | | | 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>
* | sharpd: Add ability to build from tarballDonald Sharp2018-02-151-0/+5
|/ | | | | | | | Since sharpd is only typically built with a development build this was not noticed. Add the necessary headers to build this thingie(tm). Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* bgpd, lib, sharpd, zebra: Use MPLS_LABEL_NONEDonald Sharp2018-02-091-3/+5
| | | | | | | | | | Modify mpls.h to rename MPLS_LABEL_ILLEGAL to be MPLS_LABEL_NONE. Fix all pre-existing code that used MPLS_LABEL_ILLEGAL. Modify the zapi vrf label message to use MPLS_LABEL_NONE as the signal to remove label associated with a vrf. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* lib, sharpd, zebra: Add new enum for lsp type and pass it through.Donald Sharp2018-02-091-1/+1
| | | | | | | | | | | | | 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>
* sharpd: Consolidate commands under 'sharp' keywordDonald Sharp2018-02-091-3/+6
| | | | | | | | The commands if not careful needed a way to isolate themselves from each other and 'real' system commands so let's put them under the sharp keyword. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add some infrastructure to allow test of ZEBRA_VRF_LABELDonald Sharp2018-02-093-0/+33
| | | | | | Add some infrastructure to allow the testing of ZEBRA_VRF_LABEL Signed-off-by: Donald Sharp <sharp@cumulusnetworks.com>
* *: Track vrfs per nexthop not per route entryDonald Sharp2018-02-091-2/+1
| | | | | | | Track the vfrs on a per nexthop basis instead of on a per route entry basis. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: Send/receive the nexthop vrf_idDonald Sharp2018-01-121-0/+2
| | | | | | | Modify the code to send and receive to/from zebra the nexthops vrf_id. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: add .gitignoreQuentin Young2018-01-101-0/+18
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: make clippy usage more consistentRenato Westphal2017-12-041-0/+2
| | | | | | Fixes #1511. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* sharpd: Add Super Happy Advanced Routing ProtocolDonald Sharp2017-11-277-0/+563
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>