]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
d9ff4302 | 2 | /* |
247dcce2 | 3 | * PIM-specific error messages. |
d9ff4302 DS |
4 | * Copyright (C) 2018 Cumulus Networks, Inc. |
5 | * Donald Sharp | |
d9ff4302 | 6 | */ |
247dcce2 | 7 | |
d9ff4302 DS |
8 | #include <zebra.h> |
9 | ||
247dcce2 | 10 | #include "lib/ferr.h" |
d9ff4302 DS |
11 | #include "pim_errors.h" |
12 | ||
247dcce2 | 13 | /* clang-format off */ |
85cd2f9f | 14 | static struct log_ref ferr_pim_err[] = { |
d9ff4302 | 15 | { |
298004a1 | 16 | .code = EC_PIM_MSDP_PACKET, |
d9ff4302 DS |
17 | .title = "PIM MSDP Packet Error", |
18 | .description = "PIM has received a packet from a peer that does not correctly decode", | |
19 | .suggestion = "Check MSDP peer and ensure it is correctly working" | |
20 | }, | |
21 | { | |
298004a1 | 22 | .code = EC_PIM_CONFIG, |
d9ff4302 | 23 | .title = "PIM Configuration Error", |
5e1e0166 | 24 | .description = "PIM has detected a configuration error", |
d9ff4302 DS |
25 | .suggestion = "Ensure the configuration is correct and apply correct configuration" |
26 | }, | |
27 | { | |
28 | .code = END_FERR, | |
29 | } | |
30 | }; | |
247dcce2 | 31 | /* clang-format on */ |
d9ff4302 DS |
32 | |
33 | void pim_error_init(void) | |
34 | { | |
85cd2f9f | 35 | log_ref_add(ferr_pim_err); |
d9ff4302 | 36 | } |