1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2018 Vmware
8 #include "northbound.h"
10 #include "static_nb.h"
11 #include "static_vty.h"
13 /* clang-format off */
15 const struct frr_yang_module_info frr_staticd_info
= {
16 .name
= "frr-staticd",
19 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd",
21 .cli_show
= static_cli_show
,
22 .cli_show_end
= static_cli_show_end
,
26 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list",
28 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_create
,
29 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_destroy
,
30 .cli_cmp
= static_route_list_cli_cmp
,
34 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list",
36 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_create
,
37 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_destroy
,
38 .cli_cmp
= static_path_list_cli_cmp
,
42 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/tag",
44 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_tag_modify
,
48 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop",
50 .apply_finish
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_apply_finish
,
51 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_create
,
52 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_destroy
,
53 .pre_validate
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_pre_validate
,
54 .cli_show
= static_nexthop_cli_show
,
55 .cli_cmp
= static_nexthop_cli_cmp
,
59 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/bh-type",
61 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_bh_type_modify
,
65 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/onlink",
67 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_onlink_modify
,
71 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/srte-color",
73 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_color_modify
,
74 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_color_destroy
,
78 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry",
80 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_create
,
81 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_destroy
,
86 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/label",
88 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_label_modify
,
89 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_label_destroy
,
93 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/ttl",
95 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_ttl_modify
,
96 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_ttl_destroy
,
100 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/traffic-class",
102 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_traffic_class_modify
,
103 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_traffic_class_destroy
,
107 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/bfd-monitoring",
109 .create
= route_next_hop_bfd_create
,
110 .destroy
= route_next_hop_bfd_destroy
,
114 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/bfd-monitoring/source",
116 .modify
= route_next_hop_bfd_source_modify
,
117 .destroy
= route_next_hop_bfd_source_destroy
,
121 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/bfd-monitoring/multi-hop",
123 .modify
= route_next_hop_bfd_multi_hop_modify
,
127 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/path-list/frr-nexthops/nexthop/bfd-monitoring/profile",
129 .modify
= route_next_hop_bfd_profile_modify
,
130 .destroy
= route_next_hop_bfd_profile_destroy
,
134 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list",
136 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_create
,
137 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_destroy
,
138 .cli_cmp
= static_src_list_cli_cmp
,
142 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list",
144 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_create
,
145 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_destroy
,
146 .cli_cmp
= static_path_list_cli_cmp
,
150 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/tag",
152 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_tag_modify
,
156 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop",
158 .apply_finish
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_apply_finish
,
159 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_create
,
160 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_destroy
,
161 .pre_validate
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_path_list_frr_nexthops_nexthop_pre_validate
,
162 .cli_show
= static_src_nexthop_cli_show
,
163 .cli_cmp
= static_nexthop_cli_cmp
,
167 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/bh-type",
169 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_bh_type_modify
,
173 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/onlink",
175 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_onlink_modify
,
179 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/srte-color",
181 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_color_modify
,
182 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_color_destroy
,
186 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry",
188 .create
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_create
,
189 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_destroy
,
193 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/label",
195 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_label_modify
,
196 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_label_destroy
,
200 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/ttl",
202 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_ttl_modify
,
203 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_ttl_destroy
,
207 .xpath
= "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd/route-list/src-list/path-list/frr-nexthops/nexthop/mpls-label-stack/entry/traffic-class",
209 .modify
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_traffic_class_modify
,
210 .destroy
= routing_control_plane_protocols_control_plane_protocol_staticd_route_list_src_list_path_list_frr_nexthops_nexthop_mpls_label_stack_entry_traffic_class_destroy
,