summaryrefslogtreecommitdiff
path: root/bgpd/bgp_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 13:06:31 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 20:02:05 +0000
commitdef31c1305673c29f6428a8a0eaea0dd40ea7000 (patch)
treef7de1a6366e415a5198c092f4c3e11636e42ffa4 /bgpd/bgp_errors.c
parent14454c9fdd59340bbd71766b925f3ebb8fba13ba (diff)
bgpd: Cleanup initialization of bgp_errors.c
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_errors.c')
-rw-r--r--bgpd/bgp_errors.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/bgpd/bgp_errors.c b/bgpd/bgp_errors.c
index c69035cac9..71b19238f6 100644
--- a/bgpd/bgp_errors.c
+++ b/bgpd/bgp_errors.c
@@ -21,7 +21,7 @@
#include <zebra.h>
#include <bgp_errors.h>
-static struct ferr_ref ferr_lib_err[] = {
+static struct ferr_ref ferr_bgp_err[] = {
{
.code = BGP_ERR_ATTR_FLAG,
.title = "BGP attribute flag is incorrect",
@@ -65,12 +65,6 @@ static struct ferr_ref ferr_lib_err[] = {
.suggestion = "Determine the soure of the update and determine why the PMSI tunnel\nattribute length has been set incorrectly"
},
{
- .code = BGP_ERR_NH_SEND_LEN,
- .title = "BGP nethop length is invalid sending to peer",
- .description = "BGP update has invalid length for nexthop sending to peer",
- .suggestion = "Determine why the nexthop length has been set incorrectly"
- },
- {
.code = BGP_ERR_PEER_GROUP,
.title = "BGP peergroup operated on in error",
.description = "BGP operating on peer-group instead of peers included",
@@ -227,7 +221,7 @@ static struct ferr_ref ferr_lib_err[] = {
},
{
.code = BGP_ERR_VNI,
- title = "BGP VNI creation issue",
+ .title = "BGP VNI creation issue",
.description = "BGP could not create a new VNI",
.suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
},
@@ -297,13 +291,12 @@ static struct ferr_ref ferr_lib_err[] = {
.description = "BGP configuration has AS and process name mismatch",
.suggestion = "Correct the configuration so that the BGP AS number and instance\nname are consistent"
},
-{
- .code = END_FERR,
-}
-}
-;
+ {
+ .code = END_FERR,
+ }
+};
-void BGP_error_init(void)
+void bgp_error_init(void)
{
ferr_ref_init();