summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_errors.c
blob: 12ad7c6b68bd3c8a98941e8c65ed9e6a31e3adba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * NHRP-specific error messages.
 * Copyright (C) 2018 Cumulus Networks, Inc.
 *               Donald Sharp
 */

#include <zebra.h>

#include "lib/ferr.h"
#include "nhrp_errors.h"

/* clang-format off */
static struct log_ref ferr_nhrp_err[] = {
	{
		.code = EC_NHRP_SWAN,
		.title = "NHRP Strong Swan Error",
		.description = "NHRP has detected a error with the Strongswan code",
		.suggestion = "Ensure that StrongSwan is configured correctly.  Restart StrongSwan and FRR"
	},
	{
		.code = END_FERR,
	}
};
/* clang-format on */

void nhrp_error_init(void)
{
	log_ref_add(ferr_nhrp_err);
}