]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
e71627cb SP |
2 | /* |
3 | * Copyright (C) 2020 Vmware | |
4 | * Sarita Patra | |
e71627cb SP |
5 | */ |
6 | ||
1f8031f7 DL |
7 | #include <zebra.h> |
8 | ||
e71627cb SP |
9 | #include "northbound.h" |
10 | #include "libfrr.h" | |
11 | #include "zebra_routemap_nb.h" | |
12 | ||
13 | /* clang-format off */ | |
14 | const struct frr_yang_module_info frr_zebra_route_map_info = { | |
15 | .name = "frr-zebra-route-map", | |
16 | .nodes = { | |
17 | { | |
18 | .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:ipv4-prefix-length", | |
19 | .cbs = { | |
20 | .modify = lib_route_map_entry_match_condition_rmap_match_condition_ipv4_prefix_length_modify, | |
21 | .destroy = lib_route_map_entry_match_condition_rmap_match_condition_ipv4_prefix_length_destroy, | |
22 | } | |
23 | }, | |
24 | { | |
25 | .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:ipv6-prefix-length", | |
26 | .cbs = { | |
27 | .modify = lib_route_map_entry_match_condition_rmap_match_condition_ipv6_prefix_length_modify, | |
28 | .destroy = lib_route_map_entry_match_condition_rmap_match_condition_ipv6_prefix_length_destroy, | |
29 | } | |
30 | }, | |
31 | { | |
32 | .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:source-instance", | |
33 | .cbs = { | |
34 | .modify = lib_route_map_entry_match_condition_rmap_match_condition_source_instance_modify, | |
35 | .destroy = lib_route_map_entry_match_condition_rmap_match_condition_source_instance_destroy, | |
36 | } | |
37 | }, | |
38 | { | |
39 | .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-zebra-route-map:source-protocol", | |
40 | .cbs = { | |
41 | .modify = lib_route_map_entry_match_condition_rmap_match_condition_source_protocol_modify, | |
42 | .destroy = lib_route_map_entry_match_condition_rmap_match_condition_source_protocol_destroy, | |
43 | } | |
44 | }, | |
45 | { | |
46 | .xpath = "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-zebra-route-map:ipv4-src-address", | |
47 | .cbs = { | |
48 | .modify = lib_route_map_entry_set_action_rmap_set_action_ipv4_src_address_modify, | |
49 | .destroy = lib_route_map_entry_set_action_rmap_set_action_ipv4_src_address_destroy, | |
50 | } | |
51 | }, | |
52 | { | |
53 | .xpath = "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-zebra-route-map:ipv6-src-address", | |
54 | .cbs = { | |
55 | .modify = lib_route_map_entry_set_action_rmap_set_action_ipv6_src_address_modify, | |
56 | .destroy = lib_route_map_entry_set_action_rmap_set_action_ipv6_src_address_destroy, | |
57 | } | |
58 | }, | |
59 | { | |
60 | .xpath = NULL, | |
61 | }, | |
62 | } | |
63 | }; |