]> git.proxmox.com Git - mirror_frr.git/blame - pathd/path_nb.h
Merge pull request #12816 from gpnaveen/stc_rte_err_msg
[mirror_frr.git] / pathd / path_nb.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
4d7b695d
SM
2/*
3 * Copyright (C) 2020 NetDEF, Inc.
4d7b695d
SM
4 */
5
6#ifndef _FRR_PATH_NB_H_
7#define _FRR_PATH_NB_H_
8
9#include "pathd/pathd.h"
10
11extern const struct frr_yang_module_info frr_pathd_info;
12
13/* Mandatory callbacks. */
14int pathd_srte_segment_list_create(struct nb_cb_create_args *args);
15int pathd_srte_segment_list_destroy(struct nb_cb_destroy_args *args);
16
17const void *pathd_srte_segment_list_get_next(struct nb_cb_get_next_args *args);
18int pathd_srte_segment_list_get_keys(struct nb_cb_get_keys_args *args);
19const void *
20pathd_srte_segment_list_lookup_entry(struct nb_cb_lookup_entry_args *args);
21
22int pathd_srte_segment_list_segment_create(struct nb_cb_create_args *args);
23int pathd_srte_segment_list_segment_destroy(struct nb_cb_destroy_args *args);
24int pathd_srte_segment_list_protocol_origin_modify(
25 struct nb_cb_modify_args *args);
26int pathd_srte_segment_list_originator_modify(struct nb_cb_modify_args *args);
27int pathd_srte_segment_list_segment_sid_value_modify(
28 struct nb_cb_modify_args *args);
29int pathd_srte_segment_list_segment_nai_destroy(
30 struct nb_cb_destroy_args *args);
31void pathd_srte_segment_list_segment_nai_apply_finish(
32 struct nb_cb_apply_finish_args *args);
f2b9485d
JG
33int pathd_srte_segment_list_segment_sid_value_destroy(
34 struct nb_cb_destroy_args *args);
4d7b695d
SM
35int pathd_srte_policy_create(struct nb_cb_create_args *args);
36int pathd_srte_policy_destroy(struct nb_cb_destroy_args *args);
37const void *pathd_srte_policy_get_next(struct nb_cb_get_next_args *args);
38int pathd_srte_policy_get_keys(struct nb_cb_get_keys_args *args);
39const void *
40pathd_srte_policy_lookup_entry(struct nb_cb_lookup_entry_args *args);
41int pathd_srte_policy_name_modify(struct nb_cb_modify_args *args);
42int pathd_srte_policy_name_destroy(struct nb_cb_destroy_args *args);
43int pathd_srte_policy_binding_sid_modify(struct nb_cb_modify_args *args);
44int pathd_srte_policy_binding_sid_destroy(struct nb_cb_destroy_args *args);
45struct yang_data *
46pathd_srte_policy_is_operational_get_elem(struct nb_cb_get_elem_args *args);
47int pathd_srte_policy_candidate_path_create(struct nb_cb_create_args *args);
48int pathd_srte_policy_candidate_path_destroy(struct nb_cb_destroy_args *args);
49int pathd_srte_policy_candidate_path_name_modify(
50 struct nb_cb_modify_args *args);
51const void *
52pathd_srte_policy_candidate_path_get_next(struct nb_cb_get_next_args *args);
53int pathd_srte_policy_candidate_path_get_keys(struct nb_cb_get_keys_args *args);
54const void *pathd_srte_policy_candidate_path_lookup_entry(
55 struct nb_cb_lookup_entry_args *args);
56void pathd_srte_policy_candidate_path_bandwidth_apply_finish(
57 struct nb_cb_apply_finish_args *args);
58int pathd_srte_policy_candidate_path_bandwidth_destroy(
59 struct nb_cb_destroy_args *args);
60int pathd_srte_policy_candidate_path_exclude_any_modify(
61 struct nb_cb_modify_args *args);
62int pathd_srte_policy_candidate_path_exclude_any_destroy(
63 struct nb_cb_destroy_args *args);
64int pathd_srte_policy_candidate_path_include_any_modify(
65 struct nb_cb_modify_args *args);
66int pathd_srte_policy_candidate_path_include_any_destroy(
67 struct nb_cb_destroy_args *args);
68int pathd_srte_policy_candidate_path_include_all_modify(
69 struct nb_cb_modify_args *args);
70int pathd_srte_policy_candidate_path_include_all_destroy(
71 struct nb_cb_destroy_args *args);
72int pathd_srte_policy_candidate_path_metrics_destroy(
73 struct nb_cb_destroy_args *args);
74void pathd_srte_policy_candidate_path_metrics_apply_finish(
75 struct nb_cb_apply_finish_args *args);
76int pathd_srte_policy_candidate_path_objfun_destroy(
77 struct nb_cb_destroy_args *args);
78void pathd_srte_policy_candidate_path_objfun_apply_finish(
79 struct nb_cb_apply_finish_args *args);
80struct yang_data *
81pathd_srte_policy_candidate_path_is_best_candidate_path_get_elem(
82 struct nb_cb_get_elem_args *args);
83int pathd_srte_policy_candidate_path_protocol_origin_modify(
84 struct nb_cb_modify_args *args);
85int pathd_srte_policy_candidate_path_originator_modify(
86 struct nb_cb_modify_args *args);
87struct yang_data *pathd_srte_policy_candidate_path_discriminator_get_elem(
88 struct nb_cb_get_elem_args *args);
89int pathd_srte_policy_candidate_path_type_modify(
90 struct nb_cb_modify_args *args);
91int pathd_srte_policy_candidate_path_segment_list_name_modify(
92 struct nb_cb_modify_args *args);
93int pathd_srte_policy_candidate_path_segment_list_name_destroy(
94 struct nb_cb_destroy_args *args);
95
96/* Optional 'apply_finish' callbacks. */
97void pathd_apply_finish(struct nb_cb_apply_finish_args *args);
98
99/* Optional 'cli_show' callbacks. */
25605051 100void cli_show_srte_segment_list(struct vty *vty, const struct lyd_node *dnode,
4d7b695d 101 bool show_defaults);
25605051
IR
102void cli_show_srte_segment_list_end(struct vty *vty,
103 const struct lyd_node *dnode);
104void cli_show_srte_segment_list_segment(struct vty *vty,
105 const struct lyd_node *dnode,
4d7b695d 106 bool show_defaults);
25605051 107void cli_show_srte_policy(struct vty *vty, const struct lyd_node *dnode,
4d7b695d 108 bool show_defaults);
25605051
IR
109void cli_show_srte_policy_end(struct vty *vty, const struct lyd_node *dnode);
110void cli_show_srte_policy_name(struct vty *vty, const struct lyd_node *dnode,
4d7b695d 111 bool show_defaults);
25605051
IR
112void cli_show_srte_policy_binding_sid(struct vty *vty,
113 const struct lyd_node *dnode,
4d7b695d
SM
114 bool show_defaults);
115void cli_show_srte_policy_candidate_path(struct vty *vty,
25605051 116 const struct lyd_node *dnode,
4d7b695d 117 bool show_defaults);
07679ad9 118void cli_show_srte_policy_candidate_path_end(struct vty *vty,
25605051 119 const struct lyd_node *dnode);
4d7b695d
SM
120
121/* Utility functions */
122typedef void (*of_pref_cp_t)(enum objfun_type type, void *arg);
123void iter_objfun_prefs(const struct lyd_node *dnode, const char *path,
124 of_pref_cp_t fun, void *arg);
125
126#endif /* _FRR_PATH_NB_H_ */