From 49ecb8b807eb429d8d09afb07b1af5e1b5408be4 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 31 Mar 2022 09:34:14 +0300 Subject: bgpd: Show `match script SCRIPT` in running config Before: ``` route-map lua permit 10 exit ``` After: ``` route-map lua permit 10 match script rm exit ``` Signed-off-by: Donatas Abraitis --- lib/routemap_cli.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/routemap_cli.c') diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index 2685bd2d79..5597064d20 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -635,6 +635,11 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, yang_dnode_get_string( dnode, "./rmap-match-condition/frr-bgp-route-map:alias")); + } else if (IS_MATCH_SCRIPT(condition)) { + vty_out(vty, " match script %s\n", + yang_dnode_get_string( + dnode, + "./rmap-match-condition/frr-bgp-route-map:script")); } else if (IS_MATCH_ORIGIN(condition)) { vty_out(vty, " match origin %s\n", yang_dnode_get_string( -- cgit v1.2.3