summaryrefslogtreecommitdiffstats
path: root/lib/routemap_northbound.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-09-30 20:01:46 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-02-04 18:05:43 +0100
commit2b3e4807ecf4d2586fe4d651b904967ea8d759c0 (patch)
tree4aff697d2864eeae02c96d8395cfa47ee3ecc091 /lib/routemap_northbound.c
parentlib: implement route map northbound (diff)
downloadfrr-2b3e4807ecf4d2586fe4d651b904967ea8d759c0.tar.xz
frr-2b3e4807ecf4d2586fe4d651b904967ea8d759c0.zip
lib: implement new route map CLI
Use the northbound back-end instead of the old route map CLI. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/routemap_northbound.c')
-rw-r--r--lib/routemap_northbound.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/routemap_northbound.c b/lib/routemap_northbound.c
index 02eb75633..b9ac01e86 100644
--- a/lib/routemap_northbound.c
+++ b/lib/routemap_northbound.c
@@ -1218,6 +1218,8 @@ const struct frr_yang_module_info frr_route_map_info = {
.cbs = {
.create = lib_route_map_entry_create,
.destroy = lib_route_map_entry_destroy,
+ .cli_show = route_map_instance_show,
+ .cli_show_end = route_map_instance_show_end,
}
},
{
@@ -1225,6 +1227,7 @@ const struct frr_yang_module_info frr_route_map_info = {
.cbs = {
.modify = lib_route_map_entry_description_modify,
.destroy = lib_route_map_entry_description_destroy,
+ .cli_show = route_map_description_show,
}
},
{
@@ -1238,12 +1241,14 @@ const struct frr_yang_module_info frr_route_map_info = {
.cbs = {
.modify = lib_route_map_entry_call_modify,
.destroy = lib_route_map_entry_call_destroy,
+ .cli_show = route_map_call_show,
}
},
{
.xpath = "/frr-route-map:lib/route-map/entry/exit-policy",
.cbs = {
.modify = lib_route_map_entry_exit_policy_modify,
+ .cli_show = route_map_exit_policy_show,
}
},
{
@@ -1258,6 +1263,7 @@ const struct frr_yang_module_info frr_route_map_info = {
.cbs = {
.create = lib_route_map_entry_match_condition_create,
.destroy = lib_route_map_entry_match_condition_destroy,
+ .cli_show = route_map_condition_show,
}
},
{
@@ -1321,6 +1327,7 @@ const struct frr_yang_module_info frr_route_map_info = {
.cbs = {
.create = lib_route_map_entry_set_action_create,
.destroy = lib_route_map_entry_set_action_destroy,
+ .cli_show = route_map_action_show,
}
},
{