diff options
| author | Farid Mihoub <farid.mihoub@6wind.com> | 2023-06-14 16:16:55 +0200 |
|---|---|---|
| committer | Farid Mihoub <farid.mihoub@6wind.com> | 2023-07-31 11:52:36 +0200 |
| commit | 902a8d1fd320e71d291e6cded960bf8d3c0fd194 (patch) | |
| tree | 6fabf4c96d2ef838a5537acf4f4fa96784d1b92f /lib/routemap_cli.c | |
| parent | 1aa34e5fb79ed2ccc3bf333d19ac1e1ba972e53f (diff) | |
bgpd: add set extended-comm-list <> delete command
Signed-off-by: Farid Mihoub <farid.mihoub@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/routemap_cli.c')
| -rw-r--r-- | lib/routemap_cli.c | 10 |
1 files changed, 10 insertions, 0 deletions
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, |
