2 * Copyright (C) 2020 Vmware
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along
16 * with this program; see the file COPYING; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "northbound.h"
22 #include "zebra_routemap_nb.h"
24 /* clang-format off */
25 const struct frr_yang_module_info frr_zebra_route_map_info
= {
26 .name
= "frr-zebra-route-map",
29 .xpath
= "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:ipv4-prefix-length",
31 .modify
= lib_route_map_entry_match_condition_rmap_match_condition_ipv4_prefix_length_modify
,
32 .destroy
= lib_route_map_entry_match_condition_rmap_match_condition_ipv4_prefix_length_destroy
,
36 .xpath
= "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:ipv6-prefix-length",
38 .modify
= lib_route_map_entry_match_condition_rmap_match_condition_ipv6_prefix_length_modify
,
39 .destroy
= lib_route_map_entry_match_condition_rmap_match_condition_ipv6_prefix_length_destroy
,
43 .xpath
= "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:source-instance",
45 .modify
= lib_route_map_entry_match_condition_rmap_match_condition_source_instance_modify
,
46 .destroy
= lib_route_map_entry_match_condition_rmap_match_condition_source_instance_destroy
,
50 .xpath
= "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:source-protocol",
52 .modify
= lib_route_map_entry_match_condition_rmap_match_condition_source_protocol_modify
,
53 .destroy
= lib_route_map_entry_match_condition_rmap_match_condition_source_protocol_destroy
,
57 .xpath
= "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-zebra-route-map:ipv4-src-address",
59 .modify
= lib_route_map_entry_set_action_rmap_set_action_ipv4_src_address_modify
,
60 .destroy
= lib_route_map_entry_set_action_rmap_set_action_ipv4_src_address_destroy
,
64 .xpath
= "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-zebra-route-map:ipv6-src-address",
66 .modify
= lib_route_map_entry_set_action_rmap_set_action_ipv6_src_address_modify
,
67 .destroy
= lib_route_map_entry_set_action_rmap_set_action_ipv6_src_address_destroy
,