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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
/*
* pathd-specific error messages.
* Copyright (C) 2020 NetDEF, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; see the file COPYING; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <zebra.h>
#include "lib/ferr.h"
#include "path_errors.h"
/* clang-format off */
static struct log_ref ferr_path_err[] = {
{
.code = EC_PATH_SYSTEM_CALL,
.title = "Thread setup error",
.description = "A system call for creating, or setting up PCEP module's pthread failed",
.suggestion = "Open an Issue with all relevant log files and restart FRR"
},
{
.code = EC_PATH_PCEP_PCC_INIT,
.title = "PCC initialization error",
.description = "pceplib PCC initialization call failed",
.suggestion = "Open an Issue with all relevant log files and restart FRR"
},
{
.code = EC_PATH_PCEP_PCC_FINI,
.title = "PCC finalization error",
.description = "pceplib PCC finalization call failed",
.suggestion = "Open an Issue with all relevant log files and restart FRR"
},
{
.code = EC_PATH_PCEP_PCC_CONF_UPDATE,
.title = "PCC configuration update error",
.description = "The update of the PCC configuration failed",
.suggestion = "Open an Issue with all relevant log files and restart FRR"
},
{
.code = END_FERR,
}
};
static struct log_ref ferr_path_warn[] = {
{
.code = EC_PATH_PCEP_LIB_CONNECT,
.title = "PCC connection error",
.description = "The PCEP module failed to connected to configured PCE",
.suggestion = "Check the connectivity between the PCC and the PCE"
},
{
.code = EC_PATH_PCEP_PROTOCOL_ERROR,
.title = "PCEP protocol error",
.description = "The PCE did not respect the PCEP protocol",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_MISSING_SOURCE_ADDRESS,
.title = "PCC connection error",
.description = "The PCEP module did not try to connect because it is missing a source address",
.suggestion = "Wait for the router ID to be defined or set the PCC source address in the configuration"
},
{
.code = EC_PATH_PCEP_RECOVERABLE_INTERNAL_ERROR,
.title = "Recoverable internal error",
.description = "Some recoverable internal error",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNSUPPORTED_PCEP_FEATURE,
.title = "Unsupported PCEP feature",
.description = "Received an unsupported PCEP message",
.suggestion = "The PCC and PCE are probably not compatible. Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_PCEP_MESSAGE,
.title = "Unexpected PCEP message",
.description = "The PCEP module received an unexpected PCEP message",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_PCEPLIB_EVENT,
.title = "Unexpected pceplib event",
.description = "The PCEP module received an unexpected event from pceplib",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_PCEP_OBJECT,
.title = "Unexpected PCEP object",
.description = "The PCEP module received an unexpected PCEP object from a PCE",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_PCEP_TLV,
.title = "Unexpected PCEP TLV",
.description = "The PCEP module received an unexpected PCEP TLV from a PCE",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_PCEP_ERO_SUBOBJ,
.title = "Unexpected PCEP ERO sub-object",
.description = "The PCEP module received an unexpected PCEP ERO sub-object from a PCE",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_UNEXPECTED_SR_NAI,
.title = "Unexpected PCEP SR segment NAI",
.description = "The PCEP module received an SR segment with an unsupported NAI specification from the PCE",
.suggestion = "Open an Issue with all relevant log files"
},
{
.code = EC_PATH_PCEP_COMPUTATION_REQUEST_TIMEOUT,
.title = "Computation request timeout",
.description = "The PCE did not respond in time to the PCC computation request",
.suggestion = "The PCE is overloaded or incompatible with the PCC, try with a different PCE"
},
{
.code = END_FERR,
}
};
/* clang-format on */
void path_error_init(void)
{
log_ref_add(ferr_path_err);
log_ref_add(ferr_path_warn);
}
|