summaryrefslogtreecommitdiffstats
path: root/sharpd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sharpd: Add code to allow nexthops to be watched from non-default vrfDonald Sharp2019-03-011-6/+32
| | | | | | | Add a bit of code to the sharp cli to allow it to specify a non-default vrf. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add ability to pass vrf we want to watchDonald Sharp2019-03-013-6/+8
| | | | | | | | 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>
* sharpd: Add cli to allow vrf route installationDonald Sharp2019-03-011-5/+25
| | | | | | | Add a bit of code to allow the end user to specify a [vrf NAME] for route installation/deletion. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Setup route installation to be able to select vrf to useDonald Sharp2019-03-014-22/+32
| | | | | | | | 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>
* Merge pull request #3797 from donaldsharp/allow_in_dir_buildDavid Lamparter2019-02-181-0/+10
|\ | | | | build: non-recursive sharpd
| * build: non-recursive sharpdDonald Sharp2019-02-131-0/+10
| | | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | sharpd: Add ability to track import-check nexthopsDonald Sharp2019-02-131-4/+19
| | | | | | | | | | | | | | Add the ability to sharp to track import-check type routes from the cli. Update docs too. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | sharpd: Allow the registration of import checks to zebraDonald Sharp2019-02-133-8/+19
|/ | | | | | | | 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>
* sharpd: Add 'sharp data nexthop' data dumpDonald Sharp2019-02-077-0/+138
| | | | | | | Add some basic data dumping about what we have watched from the vty/vtysh cli for nexthops. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add 'sharp data route" dump commandDonald Sharp2019-02-072-0/+23
| | | | | | | | When you are using the install/remove routes command, the output goes to a log file. This command allows for ease of dump of timing information from the vty or vtysh. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Move route global variables into the global data structureDonald Sharp2019-02-074-65/+68
| | | | | | Clean up the route global variables into a global data structure. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add start of global data structuresDonald Sharp2019-02-073-1/+38
| | | | | | | | | | | | We have a bit of a mess with globals in the sharp daemon. Let's start formalizing it a bit. Future commits will take advantage of this, as that we need to have the ability to start dumping stats about commands we have issued. These changes will be useful for debugging and understanding what is going on. Signed-off-by: Donald sharp <sharpd@cumulusnetworks.com>
* sharpd: Allow nhop tracking to specify connectedDonald Sharp2019-02-073-9/+12
| | | | | | | 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>
* build: fix a whole bunch of *FLAGSDavid Lamparter2019-01-301-1/+1
| | | | | | | | | - some target_CFLAGS that needed to include AM_CFLAGS didn't do so - libyang/sysrepo/sqlite3/confd CFLAGS + LIBS weren't used at all - consistently use $(FOO_CFLAGS) instead of @FOO_CFLAGS@ - 2 dependencies were missing for clippy Signed-off-by: David Lamparter <equinox@diac24.net>
* sharpd: Clean up vtysh warning about insufficient doc stringDonald Sharp2019-01-111-2/+3
| | | | | | | Not sure why this wasn't caught by our CI system. I thought it would. My screw up this should have been right from the start. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
* sharpd: Do addition/subtraction for meDonald Sharp2019-01-111-2/+13
| | | | | | | Write a bit of code to track the start/stop times and do subtraction! In the future we expect this code to slice and dice as well. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Allow route install/removal of v6 routes.Donald Sharp2019-01-112-13/+44
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add code to allow install/uninstall repeatedlyDonald Sharp2019-01-032-25/+45
| | | | | | | | | | | | Add a bit of test code to allow the tester to install/uninstall the routes via: sharp install routes A.B.C.D nexthop Y.Z.M.D 1000000 repeat 100 This will install 1000000 routes wait for them to be finished then uninstall them then start installation over 100 times. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
* sharpd: Abstract the route install/delete functions a bitDonald Sharp2019-01-023-19/+63
| | | | | | | 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>
* sharpd: Allow sharpd to accept nexthop group as part of route installDonald Sharp2019-01-021-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When installing routes via sharpd 'sharp install route... ' command add the ability to specify a nexthop-group to use. This will allow sharpd to create ECMP routes into zebra. Nexthop-group: ! nexthop-group JANELLE nexthop 192.168.209.1 nexthop 192.168.210.1 ! The install: donna.cumulusnetworks.com# sharp install routes 10.0.50.0 nexthop-group JANELLE 10 donna.cumulusnetworks.com# end donna.cumulusnetworks.com# 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 K>* 0.0.0.0/0 [0/106] via 10.0.2.2, enp0s3, 00:20:38 C>* 10.0.2.0/24 is directly connected, enp0s3, 00:20:38 D>* 10.0.50.0/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.1/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.2/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.3/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.4/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.5/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.6/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.7/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.8/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 D>* 10.0.50.9/32 [150/0] via 192.168.209.1, enp0s8, 00:00:02 * via 192.168.210.1, enp0s9, 00:00:02 C>* 192.168.209.0/24 is directly connected, enp0s8, 00:20:38 C>* 192.168.210.0/24 is directly connected, enp0s9, 00:20:38 donna.cumulusnetworks.com# Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd/vtysh: Allow sharpd to use nexthop-groupsDonald Sharp2019-01-021-0/+1
| | | | | | | | | Allow the sharp daemon to understand and use nexthop-groups. This commit is merely to allow sharpd to understand them when accepted in a future commit Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharp: Modify route install to take nexthop groupsDonald Sharp2019-01-024-9/+41
| | | | | | | | 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>
* sharpd: return check (Coverity 1475198)F. Aragon2018-12-031-1/+3
| | | | Signed-off-by: F. Aragon <paco@voltanet.io>
* *: Replace zclient_new with zclient_new_notifyDonald Sharp2018-11-121-1/+1
| | | | | | | 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>
* *: add empty array of YANG modulesRenato Westphal2018-10-271-1/+5
| | | | | | | | | | FRR_DAEMON_INFO should now contain an array of 'frr_yang_module_info' structures describing the YANG modules implemented by the daemon. This array will be used by frr_init() function to load all YANG modules and initialize the northbound callbacks during the daemon initialization. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* build: fix not building docs w/o sphinxDavid Lamparter2018-09-091-1/+1
| | | | | | Can't build manpages without sphinx-build, oops... Signed-off-by: David Lamparter <equinox@diac24.net>
* *: cleanup .gitignore filesDavid Lamparter2018-09-081-15/+0
| | | | Signed-off-by: David Lamparter <equinox@diac24.net>
* build: move vtysh & manpage listings to subdir.amDavid Lamparter2018-09-081-0/+2
| | | | | | | Since we're now building through one large Makefile, we can easily put things with their daemons and crossreference nicely. Signed-off-by: David Lamparter <equinox@diac24.net>
* Merge pull request #2989 from donaldsharp/static_debugDavid Lamparter2018-09-081-0/+15
|\ | | | | Static debug
| * sharpd: Fix missing 'show debug' commandDonald Sharp2018-09-071-0/+15
| | | | | | | | | | | | | | The sharp daemon was not properly handling 'show debug' commands. Fix. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | sharpd: Modify route install to allow v6 nexthopsDonald Sharp2018-09-062-6/+12
|/ | | | | | Allow the user to create a v4 route with a v6 nexthop. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: add a vrf update hook to be informed of the vrf namePhilippe Guibert2018-08-281-1/+1
| | | | | | | | The Vrf aliases can be known with a specific hook. That hook will then, from zebra propagate the information to the relevant zapi clients. The registration hook function is the same for all daemons. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* sharpd, staticd: Add access_list_initDonald Sharp2018-08-161-0/+1
| | | | | | | Add ability for sharpd and staticd to ignore access_list cli for the moment. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Does not need any special priv'sDonald Sharp2018-06-211-1/+0
| | | | | | | Remove the unnecessary privs that we were requesting for the sharp daemon. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharp: Allow the specification of instance when adding/deleting routesDonald Sharp2018-05-173-11/+16
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* sharpd: Add some ability to ignore route-map commandsDonald Sharp2018-05-171-0/+2
| | | | | | | Add some ability for sharpd to ignore the route-map commands when using a integrated config. signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* 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>