2 * Copyright (C) 2020 NetDEF, Inc.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along
15 * with this program; see the file COPYING; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef _PATH_PCEP_DEBUG_H_
20 #define _PATH_PCEP_DEBUG_H_
22 #include "pathd/path_debug.h"
23 #include "pceplib/pcep_pcc_api.h"
24 #include "pceplib/pcep_msg_objects.h"
25 #include "pathd/path_pcep.h"
26 #include "pathd/path_pcep_controller.h"
27 #include "pathd/path_pcep_pcc.h"
28 #include "pathd/path_pcep_lib.h"
30 const char *pcc_status_name(enum pcc_status status
);
32 const char *pcep_error_type_name(enum pcep_error_type error_type
);
33 const char *pcep_error_value_name(enum pcep_error_type error_type
,
34 enum pcep_error_value error_value
);
35 const char *pcep_event_type_name(pcep_event_type event_type
);
36 const char *pcep_message_type_name(enum pcep_message_types pcep_message_type
);
37 const char *pcep_object_class_name(enum pcep_object_classes obj_class
);
38 const char *pcep_object_type_name(enum pcep_object_classes obj_class
,
39 enum pcep_object_types obj_type
);
40 const char *pcep_lsp_status_name(enum pcep_lsp_operational_status status
);
41 const char *pcep_tlv_type_name(enum pcep_object_tlv_types tlv_type
);
42 const char *pcep_ro_type_name(enum pcep_ro_subobj_types ro_type
);
43 const char *pcep_nai_type_name(enum pcep_sr_subobj_nai nai_type
);
44 const char *pcep_metric_type_name(enum pcep_metric_types type
);
45 const char *pcep_nopath_tlv_err_code_name(enum pcep_nopath_tlv_err_codes code
);
47 const char *format_objfun_set(uint32_t flags
);
48 const char *format_pcc_opts(struct pcc_opts
*ops
);
49 const char *format_pcc_state(struct pcc_state
*state
);
50 const char *format_ctrl_state(struct ctrl_state
*state
);
51 const char *format_path(struct path
*path
);
52 const char *format_pcep_event(pcep_event
*event
);
53 const char *format_pcep_message(struct pcep_message
*msg
);
54 const char *format_yang_dnode(struct lyd_node
*dnode
);
56 #endif // _PATH_PCEP_DEBUG_H_