]>
git.proxmox.com Git - mirror_frr.git/blob - pathd/path_pcep_config.h
223dd10c82097a6e00fb417b28c48946ab368a11
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_CONFIG_H_
20 #define _PATH_PCEP_CONFIG_H_
25 #include "pathd/path_pcep.h"
27 #define PATH_NB_NO_CHANGE 0
29 #define PATH_NB_ERR -1
31 typedef int (*path_list_cb_t
)(struct path
*path
, void *arg
);
33 /* Lookup the candidate path and fill up the missing path attributes like name
34 * and type. Used for path generated from PCEP message received from the PCE
35 * so they contains more information about the candidate path. If no matching
36 * policy or candidate path is found, nothing is changed.
37 * MUST BE CALLED FROM THE MAIN THREAD */
38 void path_pcep_refine_path(struct path
*path
);
39 struct path
*path_pcep_config_get_path(struct lsp_nb_key
*key
);
40 void path_pcep_config_list_path(path_list_cb_t cb
, void *arg
);
41 int path_pcep_config_update_path(struct path
*path
);
42 struct path
*candidate_to_path(struct srte_candidate
*candidate
);
45 #endif // _PATH_PCEP_CONFIG_H_