]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoMerge pull request #2872 from donaldsharp/tcp_zebra
David Lamparter [Mon, 20 Aug 2018 18:53:26 +0000 (20:53 +0200)]
Merge pull request #2872 from donaldsharp/tcp_zebra

doc, debianpkg: Cleanup tcp-zebra configure options

5 years agodoc, debianpkg: Cleanup tcp-zebra configure options
Donald Sharp [Mon, 20 Aug 2018 17:17:34 +0000 (13:17 -0400)]
doc, debianpkg: Cleanup tcp-zebra configure options

Since we removed --enable-tcp-zebra cleanup the last
remaining vestiges of that code from the system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2814 from qlyoung/fix-ospf6d-lsa-uaf-test
David Lamparter [Mon, 20 Aug 2018 16:16:46 +0000 (18:16 +0200)]
Merge pull request #2814 from qlyoung/fix-ospf6d-lsa-uaf-test

ospf6d: fix use after free on LSA

5 years agoMerge pull request #2829 from donaldsharp/more_upstream
Lou Berger [Fri, 17 Aug 2018 15:49:44 +0000 (11:49 -0400)]
Merge pull request #2829 from donaldsharp/more_upstream

bgpd: Check for L3VNI before sending RMAC/L3 RTs

5 years agoMerge pull request #2834 from dslicenc/import-vrf-fixes
Russ White [Fri, 17 Aug 2018 13:16:26 +0000 (09:16 -0400)]
Merge pull request #2834 from dslicenc/import-vrf-fixes

bgpd: issues with vrf imports when switchd or networking restarted

5 years agoMerge pull request #2858 from Jafaral/sphinx
Quentin Young [Fri, 17 Aug 2018 03:45:14 +0000 (23:45 -0400)]
Merge pull request #2858 from Jafaral/sphinx

configure.ac: emit a config  warning if sphinx-build is missing

5 years agoMerge pull request #2856 from opensourcerouting/bfd-work
Donald Sharp [Thu, 16 Aug 2018 22:48:51 +0000 (18:48 -0400)]
Merge pull request #2856 from opensourcerouting/bfd-work

bfdd: bug fixes and improvements

5 years agoMerge pull request #2857 from donaldsharp/ptm_loves_us
Rafael Zalamena [Thu, 16 Aug 2018 21:34:59 +0000 (18:34 -0300)]
Merge pull request #2857 from donaldsharp/ptm_loves_us

zebra: When using BFD ensure that zebra thinks ptm is disabled

5 years agobfdd: fix coverity scan issue (CID 1472622)
Rafael Zalamena [Thu, 16 Aug 2018 18:47:34 +0000 (15:47 -0300)]
bfdd: fix coverity scan issue (CID 1472622)

Don't use the stack variable, but what we have recorded in our buffered
data on the heap.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: fix zebra_ptm adapter memory leak
Rafael Zalamena [Thu, 16 Aug 2018 18:23:13 +0000 (15:23 -0300)]
bfdd: fix zebra_ptm adapter memory leak

Memory leak detect with Address Sanitizer and topotests.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: improve ptm_adapter log messages
Rafael Zalamena [Wed, 15 Aug 2018 23:40:40 +0000 (20:40 -0300)]
bfdd: improve ptm_adapter log messages

Make them look like the rest of the daemon: message begins with a unique
descriptive message to help locate debug messages.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: fix coverity scan issues (1472630, 1472623)
Rafael Zalamena [Wed, 15 Aug 2018 21:00:24 +0000 (18:00 -0300)]
bfdd: fix coverity scan issues (14726301472623)

Always initialize/santize string before calling the `read` function. It
ensures that the debug function will always pick up the right thing.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoconfigure.ac: emit a config warning if sphinx-build is missing
Jafar Al-Gharaibeh [Thu, 16 Aug 2018 21:25:34 +0000 (16:25 -0500)]
configure.ac: emit a config  warning if sphinx-build is missing

  If we don't have --disabled-doc and sphinx-build is not available
  warn the user that sphinx-build is needed to build documentation
  as shown in the last line of config summary example below

FRRouting configuration
------------------------------
FRR version             : 5.1-dev
host operating system   : linux-gnu
source code location    : .
compiler                : gcc -std=gnu11
compiler flags          :  -g -Os -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -pthread
make                    : make
linker flags            :  -rdynamic -ldl -lm -lcrypt   -ljson-c -lrt  -lreadline  -ltermcap -lm
state file directory    : /var/run
config file directory   : /usr/local/etc
example directory       : /usr/local/etc
module directory        : /usr/local/lib/frr/modules
user to run as          : frr
group to run as         : frr
group for vty sockets   :
config file mask        : 0600
log file mask           : 0600
zebra protobuf enabled  : no

The above user and group must have read/write access to the state file
directory and to the config files in the config file directory.
configure: WARNING: sphinx-build is missing but required to build documentation

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
5 years agozebra: When using BFD ensure that zebra thinks ptm is disabled
Donald Sharp [Thu, 16 Aug 2018 20:29:08 +0000 (16:29 -0400)]
zebra: When using BFD ensure that zebra thinks ptm is disabled

In order for connected routes to be installed the if_is_operative
function is called.  This function checks the status of ptm
and decides to use ptm enabled/disabled on the interface.
The call to zebra_ptm_get_enable was returning true and causing
the interface subsystem to do the wrong thing.  Modify the
internal bfd case to when checking for ptm enabled to say it
is not enabled.

Tested-by: Mark Stapp <mjs@voltanet.io>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2848 from donaldsharp/more_init
Russ White [Thu, 16 Aug 2018 15:35:52 +0000 (11:35 -0400)]
Merge pull request #2848 from donaldsharp/more_init

sharpd, staticd: Add access_list_init

5 years agoMerge pull request #2846 from donaldsharp/backet_data
Russ White [Thu, 16 Aug 2018 15:32:41 +0000 (11:32 -0400)]
Merge pull request #2846 from donaldsharp/backet_data

Backet data

5 years agoMerge pull request #2849 from patrasar/memory_leak_nht
Russ White [Thu, 16 Aug 2018 15:31:21 +0000 (11:31 -0400)]
Merge pull request #2849 from patrasar/memory_leak_nht

Fix memory leak pim nexthop creation

5 years agopimd: Fix memory leak pim nexthop creation
Sarita Patra [Thu, 16 Aug 2018 13:41:01 +0000 (06:41 -0700)]
pimd: Fix memory leak pim nexthop creation

While terminating pim instance, the memory allocated for pim nexthop
should be released before deallocating the memory of pim nexthop cache(pnc).
This resolves the memory leak detected in pnc->nexthop creation.

Signed-off-by: Sarita Patra <saritap@vmware.com>
5 years agoMerge pull request #2852 from donaldsharp/bgp_clean
Russ White [Thu, 16 Aug 2018 15:30:03 +0000 (11:30 -0400)]
Merge pull request #2852 from donaldsharp/bgp_clean

Bgp clean

5 years agoMerge pull request #2810 from chiragshah6/evpn_dev1
Russ White [Thu, 16 Aug 2018 15:29:28 +0000 (11:29 -0400)]
Merge pull request #2810 from chiragshah6/evpn_dev1

bgpd: print evpn nd ext community in route

5 years agoMerge pull request #2448 from qlyoung/error-reference-cards
David Lamparter [Thu, 16 Aug 2018 14:39:40 +0000 (16:39 +0200)]
Merge pull request #2448 from qlyoung/error-reference-cards

Error Reference Cards

5 years agobgpd: zlog_warn to assert for code that must be executed first
Donald Sharp [Thu, 16 Aug 2018 00:44:31 +0000 (20:44 -0400)]
bgpd: zlog_warn to assert for code that must be executed first

In bgp_keepalives.c, it was noticed that we were
ensuring that we called an intialization function first,
but this is a development escape in that once this
was fixed we never see it.  So if a developer moves
this assumption around, let's crash the program and
lead them to this spot instead of silently ignoring
the problem.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert warn to debug
Donald Sharp [Thu, 16 Aug 2018 00:37:45 +0000 (20:37 -0400)]
bgpd: Convert warn to debug

There exists a few places where actual debugs were being
displayed as warns.  Convert them over to debugs and
guard as appropriate.

Signed-off-by: Donald Sharp <sharpd@cumulsunetworks.com>
5 years agobgpd: Modify warn to info for deprecated commands
Donald Sharp [Thu, 16 Aug 2018 00:32:36 +0000 (20:32 -0400)]
bgpd: Modify warn to info for deprecated commands

Modify zlog_warn to zlog_info commands for notification of
deprecated commands.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agosharpd, staticd: Add access_list_init
Donald Sharp [Thu, 16 Aug 2018 00:14:22 +0000 (20:14 -0400)]
sharpd, staticd: Add access_list_init

Add ability for sharpd and staticd to ignore access_list cli
for the moment.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agozebra: Trust backet->data
Donald Sharp [Wed, 15 Aug 2018 19:56:53 +0000 (15:56 -0400)]
zebra: Trust backet->data

The backet->data cannot be NULL, no need to check for it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Trust backet->data
Donald Sharp [Wed, 15 Aug 2018 19:56:10 +0000 (15:56 -0400)]
pimd: Trust backet->data

The backet->data cannot be NULL, no need to check for it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoospfd: trust backet->data
Donald Sharp [Wed, 15 Aug 2018 19:55:24 +0000 (15:55 -0400)]
ospfd: trust backet->data

The backet->data cannot be NULL, no need to check for it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Trust backet->data in bgp_evpn.c
Donald Sharp [Wed, 15 Aug 2018 19:27:01 +0000 (15:27 -0400)]
bgpd: Trust backet->data in bgp_evpn.c

backet->data must be non-NULL( look at hash_get ) as such
we do not need to check for NULL values for this when
we retrieve data from the backet.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: routemap.c trust backet->data
Donald Sharp [Wed, 15 Aug 2018 19:54:14 +0000 (15:54 -0400)]
lib: routemap.c trust backet->data

The backet->data cannot be NULL, no need to check for it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Update hash.h documentation
Donald Sharp [Wed, 15 Aug 2018 19:50:30 +0000 (15:50 -0400)]
lib: Update hash.h documentation

The hash_get function when called and the alloc_func returns
a NULL value, we do not create a backet nor do we insert
anything into the hash.  As such backet->data must always
be non-NULL.

Modify the description in hash_get to inform of this.
Additionally indicate that hash_walk and hash_iterate
cannot have a NULL backet->data value.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2845 from donaldsharp/cmsg_foolishness
David Lamparter [Wed, 15 Aug 2018 20:10:56 +0000 (22:10 +0200)]
Merge pull request #2845 from donaldsharp/cmsg_foolishness

lib, ripngd, zebra: Remove pre-solaris 9 special cased code

5 years agobfdd: improve docs
Rafael Zalamena [Wed, 15 Aug 2018 19:04:13 +0000 (16:04 -0300)]
bfdd: improve docs

Improvements:
* Show command line as code, to avoid confusion about single dash (`-`)
  and double dash;
* Tell the user where the BGP BFD commands can be found;
* Document OSPF/OSPF6/PIM BFD commands;
* Document JSON commands;
* Tell about session counters;

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: add new counters and command to show them
Rafael Zalamena [Mon, 13 Aug 2018 20:47:21 +0000 (17:47 -0300)]
bfdd: add new counters and command to show them

Added 3 new counters to BFD sessions:
* Session up events count;
* Session down events count;
* Zebra notifications count;

In addition to previosly available counters:
* Count of received control packets;
* Count of transmitted control packets;
* Count of received echo packets;
* Count of transmitted echo packets;

With this count we are able to visualize the BFD activity, bandwidth
usage, interface/network flapping and excess of zebra notifications.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: turn repeatable code into functions
Rafael Zalamena [Mon, 13 Aug 2018 18:28:17 +0000 (15:28 -0300)]
bfdd: turn repeatable code into functions

Turn some code that will be repeated in the next commits into functions
so we avoid that.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoMerge pull request #2838 from opensourcerouting/bfd-alpine
Donald Sharp [Wed, 15 Aug 2018 19:30:26 +0000 (15:30 -0400)]
Merge pull request #2838 from opensourcerouting/bfd-alpine

bfdd: fix alpine build

5 years agolib, ripngd, zebra: Remove pre-solaris 9 special cased code
Donald Sharp [Wed, 15 Aug 2018 19:06:53 +0000 (15:06 -0400)]
lib, ripngd, zebra: Remove pre-solaris 9 special cased code

The CMSG_FIRSTHDR was broken on solaris pre version 9.  Version 9
was released in May of 2002 and EOL'ed in 2014.  Version 8 EOL'ed
in 2012.  Remove special case code for a little used platform
that has not seen the light of day in a very long time.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2844 from donaldsharp/unused
Rafael Zalamena [Wed, 15 Aug 2018 18:49:05 +0000 (15:49 -0300)]
Merge pull request #2844 from donaldsharp/unused

bfdd: Fix `don't assign to value to ourself` compiler warning

5 years agobfdd: Fix `don't assign to value to ourself` compiler warning
Donald Sharp [Wed, 15 Aug 2018 17:48:09 +0000 (13:48 -0400)]
bfdd: Fix `don't assign to value to ourself` compiler warning

We were attempting to get around a unused value by setting
a variable to itself, but it runs afoul of a different
compiler and a message about not setting a variable to
itself.  So let's mark the ttl value as unused.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2837 from ppmathis/cidr-style
Quentin Young [Wed, 15 Aug 2018 16:37:58 +0000 (12:37 -0400)]
Merge pull request #2837 from ppmathis/cidr-style

bgpd: Always show CIDR mask when displaying routes

5 years agoMerge pull request #2840 from opensourcerouting/snap-bfdd
Donald Sharp [Wed, 15 Aug 2018 11:54:50 +0000 (07:54 -0400)]
Merge pull request #2840 from opensourcerouting/snap-bfdd

snapcraft: Add bfdd to snap package

5 years agoMerge pull request #2843 from LabNConsulting/working/lb/doc-solo
Donald Sharp [Wed, 15 Aug 2018 11:54:08 +0000 (07:54 -0400)]
Merge pull request #2843 from LabNConsulting/working/lb/doc-solo

bgpd: document how to avoid reflecting advertised information back to originator

5 years agouser: document neighbor ... solo config
Lou Berger [Wed, 15 Aug 2018 03:58:25 +0000 (23:58 -0400)]
user: document neighbor ... solo config

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobfdd: fix alpine build
Rafael Zalamena [Tue, 14 Aug 2018 18:10:25 +0000 (15:10 -0300)]
bfdd: fix alpine build

Move `recvmsg` parameter option initialization to function, initialize
the parameter struct with zeroes and access field by name.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agobfdd: fix downtime display
Rafael Zalamena [Mon, 13 Aug 2018 13:26:55 +0000 (10:26 -0300)]
bfdd: fix downtime display

BFD peer status show command was using the wrong variable to display the
downtime counter.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agosnapcraft: Add bfdd to snap package
Martin Winter [Tue, 14 Aug 2018 20:31:54 +0000 (13:31 -0700)]
snapcraft: Add bfdd to snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoospf6d: sanity check refcount correctness
Quentin Young [Tue, 14 Aug 2018 20:08:50 +0000 (20:08 +0000)]
ospf6d: sanity check refcount correctness

Coverity warns about a possible double free; add an assert to make sure
we never hit it, and hopefully silence Coverity.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: frr_elevate_privs whitespace fixes
David Lamparter [Mon, 13 Aug 2018 17:52:57 +0000 (19:52 +0200)]
*: frr_elevate_privs whitespace fixes

(... and one superfluous variable removed)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agozebra: fix warnings from frr_elevate_privs()
David Lamparter [Fri, 10 Aug 2018 17:55:51 +0000 (19:55 +0200)]
zebra: fix warnings from frr_elevate_privs()

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: use frr_elevate_privs() (2/2: manual)
David Lamparter [Fri, 10 Aug 2018 16:46:07 +0000 (18:46 +0200)]
*: use frr_elevate_privs() (2/2: manual)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: use frr_elevate_privs() (1/2: coccinelle)
David Lamparter [Fri, 10 Aug 2018 16:36:43 +0000 (18:36 +0200)]
*: use frr_elevate_privs() (1/2: coccinelle)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: add frr_elevate_privs() wrapper
David Lamparter [Fri, 10 Aug 2018 15:35:29 +0000 (17:35 +0200)]
lib: add frr_elevate_privs() wrapper

Used as:
  frr_elevate_privs(&my_privs) {
    ... code ...
  }
and handles privilege raise/lower automatically in conjunction with the
C expression block.  This makes it impossible to accidentally exit a
function with privileges raised (and then running a whole bunch of other
code with privs.)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: rename ferr_zlog -> flog_err_sys
Quentin Young [Mon, 6 Aug 2018 16:36:50 +0000 (16:36 +0000)]
*: rename ferr_zlog -> flog_err_sys

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: rename ferr_ref -> log_ref
Quentin Young [Fri, 3 Aug 2018 18:07:23 +0000 (18:07 +0000)]
*: rename ferr_ref -> log_ref

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: rename zlog_fer -> flog_err
Quentin Young [Fri, 3 Aug 2018 18:03:29 +0000 (18:03 +0000)]
*: rename zlog_fer -> flog_err

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib: remove still reachable blocks in ferr.c
Quentin Young [Wed, 25 Jul 2018 17:47:10 +0000 (17:47 +0000)]
lib: remove still reachable blocks in ferr.c

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib, vtysh: fixup style nits for error refs
Quentin Young [Fri, 6 Jul 2018 16:39:30 +0000 (16:39 +0000)]
lib, vtysh: fixup style nits for error refs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agozebra: add missing include
Quentin Young [Thu, 28 Jun 2018 17:22:00 +0000 (17:22 +0000)]
zebra: add missing include

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: correct typos in error reference cards
Quentin Young [Wed, 27 Jun 2018 19:21:35 +0000 (19:21 +0000)]
*: correct typos in error reference cards

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agozebra: Cleanup compile issues discovered by ci
Donald Sharp [Wed, 20 Jun 2018 11:37:58 +0000 (07:37 -0400)]
zebra: Cleanup compile issues discovered by ci

Include a couple of missed headers.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years ago*: remove \n from error code texts
Quentin Young [Wed, 20 Jun 2018 19:00:43 +0000 (19:00 +0000)]
*: remove \n from error code texts

Should be handled by pager

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib: add 'show error all json'
Quentin Young [Wed, 20 Jun 2018 18:51:04 +0000 (18:51 +0000)]
lib: add 'show error all json'

* Add 'all' option
* Add 'json' option

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobabeld: fix erroneous lib init
Quentin Young [Wed, 20 Jun 2018 18:49:38 +0000 (18:49 +0000)]
babeld: fix erroneous lib init

Babel was screwing up lib initialization causing double inits of many
things.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: stop double initialization of ferr
Quentin Young [Wed, 20 Jun 2018 18:48:35 +0000 (18:48 +0000)]
*: stop double initialization of ferr

* Stop double init of ferr
* Fixup bugs in zebra ferr
* Add missing init in ospfd

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: fix source file headers & includes for errcodes
Quentin Young [Tue, 19 Jun 2018 20:58:44 +0000 (20:58 +0000)]
*: fix source file headers & includes for errcodes

* Use the correct license header
* Stop headers from including themselves
* Use uniform relative include conventions
* Ensure that sources include what they use
* Turn off clang-format around struct array blocks

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoospfd: zlog_ferr facility
Chirag Shah [Tue, 19 Jun 2018 20:41:28 +0000 (16:41 -0400)]
ospfd: zlog_ferr facility

Ticket:CM-21333

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Convert zlog_err for clippy build
Donald Sharp [Tue, 19 Jun 2018 20:28:45 +0000 (16:28 -0400)]
lib: Convert zlog_err for clippy build

The clippy code does not need to log the error messages
as errors as that it is only run as part of the build
itself and as long as we see the notifications we are good.

So convert zlog_err to zlog_notice so that we do not think
we have any zlog_err's in lib anymore

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Remove unnecessary zebra.h include
Donald Sharp [Tue, 19 Jun 2018 20:28:04 +0000 (16:28 -0400)]
lib: Remove unnecessary zebra.h include

lib_errors.c does not need to include zebra.h, so remove

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoripd: Add RIP_ERR_XXX to move from zlog_err to zlog_ferr
Donald Sharp [Tue, 19 Jun 2018 20:13:45 +0000 (16:13 -0400)]
ripd: Add RIP_ERR_XXX to move from zlog_err to zlog_ferr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agowatchfrr: Add WATCHFRR_ERR_XXX for zlog_err to zlog_ferr
Donald Sharp [Tue, 19 Jun 2018 19:59:44 +0000 (15:59 -0400)]
watchfrr: Add WATCHFRR_ERR_XXX for zlog_err to zlog_ferr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Fix Spelling mistake
Donald Sharp [Tue, 19 Jun 2018 19:50:55 +0000 (15:50 -0400)]
lib: Fix Spelling mistake

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoeigrpd: Add EIGRP_ERR_XXX for zlog_err to zlog_ferr
Donald Sharp [Tue, 19 Jun 2018 19:39:45 +0000 (15:39 -0400)]
eigrpd: Add EIGRP_ERR_XXX for zlog_err to zlog_ferr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agonhrpd: Add NHRP_ERR_XXXX for zlog_err to zlog_ferr conversion
Donald Sharp [Tue, 19 Jun 2018 19:28:01 +0000 (15:28 -0400)]
nhrpd: Add NHRP_ERR_XXXX for zlog_err to zlog_ferr conversion

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Add some FLowspec specific Error Codes.
Donald Sharp [Tue, 19 Jun 2018 18:57:19 +0000 (14:57 -0400)]
bgpd: Add some FLowspec specific Error Codes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert to using LIB_ERR_XXX where possible
Donald Sharp [Tue, 19 Jun 2018 18:42:55 +0000 (14:42 -0400)]
bgpd: Convert to using LIB_ERR_XXX where possible

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agozebra, lib: error references for zebra
Quentin Young [Tue, 19 Jun 2018 18:29:05 +0000 (18:29 +0000)]
zebra, lib: error references for zebra

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoisisd: Cleanup compile issue
Donald Sharp [Tue, 19 Jun 2018 14:52:08 +0000 (10:52 -0400)]
isisd: Cleanup compile issue

cleanup compile with missnamed enum usage.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoisisd: Add isis_errors and generate custom Error Codes
Donald Sharp [Mon, 18 Jun 2018 18:56:15 +0000 (14:56 -0400)]
isisd: Add isis_errors and generate custom Error Codes

Generate appropriate error codes for ISIS.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoisisd: Convert to use LIB_ERR_XXX
Donald Sharp [Mon, 18 Jun 2018 18:27:21 +0000 (14:27 -0400)]
isisd: Convert to use LIB_ERR_XXX

Where an obvious choice could be made about converting
to a LIB_ERR_XXX function do so.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobabeld: Convert all zlog_err to zlog_ferr and add appropriate info
Donald Sharp [Mon, 18 Jun 2018 18:08:34 +0000 (14:08 -0400)]
babeld: Convert all zlog_err to zlog_ferr and add appropriate info

Convert babeld to use zlog_ferr and add appropriate BABEL_ERR_XXX
information.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobabeld: Add BABEL_ERR_XXX error messages.
Donald Sharp [Mon, 18 Jun 2018 17:38:21 +0000 (13:38 -0400)]
babeld: Add BABEL_ERR_XXX error messages.

Add some BABEL_ERR_XXX error messages and convert over to using
zlog_ferr instead of zlog_err.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Add pim_errors and define some pim specific errors
Donald Sharp [Mon, 18 Jun 2018 17:21:27 +0000 (13:21 -0400)]
pimd: Add pim_errors and define some pim specific errors

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Cleanup initialization of bgp_errors.c
Donald Sharp [Mon, 18 Jun 2018 17:06:31 +0000 (13:06 -0400)]
bgpd: Cleanup initialization of bgp_errors.c

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: implement zlog_ferr facility for enhance error messages in bgp
Don Slice [Fri, 15 Jun 2018 21:08:53 +0000 (21:08 +0000)]
bgpd: implement zlog_ferr facility for enhance error messages in bgp

Signed-off-by: Don Slice <dslice@cumulusnetworks.com<
5 years agoldpd: Convert to using LIB_ERR_XXX and zlog_ferr
Donald Sharp [Mon, 18 Jun 2018 14:59:27 +0000 (10:59 -0400)]
ldpd: Convert to using LIB_ERR_XXX and zlog_ferr

convert ldpd over to using zlog_ferr and LIB_ERR_XXX
where appropriate.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoeigrpd: Convert to use LIB_ERR_XXX for zlog_err
Donald Sharp [Mon, 18 Jun 2018 14:58:43 +0000 (10:58 -0400)]
eigrpd: Convert to use LIB_ERR_XXX for zlog_err

Convert, where appropriate, to using LIB_ERR_XXX for zlog_ferr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Update error ranges to include all daemons
Donald Sharp [Mon, 18 Jun 2018 14:45:27 +0000 (10:45 -0400)]
lib: Update error ranges to include all daemons

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Convert over to use LIB_ERR_XXX for zlog_err
Donald Sharp [Mon, 18 Jun 2018 14:17:36 +0000 (10:17 -0400)]
pimd: Convert over to use LIB_ERR_XXX for zlog_err

Convert, where appropriate, the zlog_err functions to zlog_ferr
for the LIB_ERR_XXX enums

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoripngd: Convert over to using LIB_ERR_XXXX for zlog_ferr
Donald Sharp [Mon, 18 Jun 2018 14:05:16 +0000 (10:05 -0400)]
ripngd: Convert over to using LIB_ERR_XXXX for zlog_ferr

Convert over those zlog_err functions to zlog_ferr that
are appropriate for the LIB_ERR_XXX.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoripd: Convert zlog_err to zlog_ferr for LIB_ERR_XXX
Donald Sharp [Mon, 18 Jun 2018 13:50:29 +0000 (09:50 -0400)]
ripd: Convert zlog_err to zlog_ferr for LIB_ERR_XXX

For those errors that can be traced to LIB_ERR_XXX
convert to using those in ripd.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoospf6d: Update OSPFv3 to use new zlog_ferr
Donald Sharp [Mon, 18 Jun 2018 13:46:19 +0000 (09:46 -0400)]
ospf6d: Update OSPFv3 to use new zlog_ferr

Update OSPFv3 to use the new zlog_ferr messages

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Cleanup some missed LIB_ERR_SYSTEM_CALL
Donald Sharp [Mon, 18 Jun 2018 13:29:27 +0000 (09:29 -0400)]
lib: Cleanup some missed LIB_ERR_SYSTEM_CALL

libfrr.c had some detection for system call issues.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_ZMQ
Donald Sharp [Mon, 18 Jun 2018 13:25:03 +0000 (09:25 -0400)]
lib: Add LIB_ERR_ZMQ

Add new error event for when we detect an issue within
the ZMQ subsystem.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_DEVELOPMENT
Donald Sharp [Mon, 18 Jun 2018 13:13:37 +0000 (09:13 -0400)]
lib: Add LIB_ERR_DEVELOPMENT

Sometimes a error state is detected when we have added
new code to FRR, but not updated all the places that
we should have.  Consider this a developmental escape
that needs to be fixed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_NS to error subsystem
Donald Sharp [Mon, 18 Jun 2018 12:55:06 +0000 (08:55 -0400)]
lib: Add LIB_ERR_NS to error subsystem

Add additional information about NameSpace errors that
may happen.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib, zebra: Add LIB_ERR_INTERFACE
Donald Sharp [Mon, 18 Jun 2018 12:49:36 +0000 (08:49 -0400)]
lib, zebra: Add LIB_ERR_INTERFACE

Add a error type that allows us to track bad interface states.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd, lib, zebra: Convert LIB_ERR_PRIVILEGES
Donald Sharp [Thu, 14 Jun 2018 14:38:40 +0000 (10:38 -0400)]
bgpd, lib, zebra: Convert LIB_ERR_PRIVILEGES

For all the places we zlog_err about raising/lowering privileges, use
zlog_ferr.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_SNMP
Donald Sharp [Thu, 14 Jun 2018 13:35:09 +0000 (09:35 -0400)]
lib: Add LIB_ERR_SNMP

Add code to indicate a SNMP error of some sort that needs to be
handled and addressed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_VTY
Donald Sharp [Thu, 14 Jun 2018 13:21:11 +0000 (09:21 -0400)]
lib: Add LIB_ERR_VTY

Add a error code for when the vty subsystem detects
an error.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add LIB_ERR_SYSTEM_CALL and convert VRF_SOCKET to SOCKET
Donald Sharp [Thu, 14 Jun 2018 13:13:18 +0000 (09:13 -0400)]
lib: Add LIB_ERR_SYSTEM_CALL and convert VRF_SOCKET to SOCKET

Add a new error code LIB_ERR_SYSTEM_CALL to the ferr subsystem.
Additionally convert LIB_ERR_VRF_SOCKET to a more generic
LIB_ERR_SOCKET.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>