From 902a8d1fd320e71d291e6cded960bf8d3c0fd194 Mon Sep 17 00:00:00 2001 From: Farid Mihoub Date: Wed, 14 Jun 2023 16:16:55 +0200 Subject: bgpd: add set extended-comm-list <> delete command Signed-off-by: Farid Mihoub Signed-off-by: Philippe Guibert --- lib/routemap_cli.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/routemap_cli.c') diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index c1bdd28eab..a5e66880a7 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -1186,6 +1186,16 @@ void route_map_action_show(struct vty *vty, const struct lyd_node *dnode, assert(acl); vty_out(vty, " set large-comm-list %s delete\n", acl); + } else if (IS_SET_EXTCOMM_LIST_DEL(action)) { + acl = NULL; + ln = yang_dnode_get(dnode, "./rmap-set-action/frr-bgp-route-map:comm-list-name"); + + if (ln) + acl = yang_dnode_get_string(ln, NULL); + + assert(acl); + + vty_out(vty, " set extended-comm-list %s delete\n", acl); } else if (IS_SET_LCOMMUNITY(action)) { if (yang_dnode_exists( dnode, -- cgit v1.2.3