]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fixes bmp stats send-experimental configuration 16007/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 May 2024 12:52:23 +0000 (14:52 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 May 2024 12:54:19 +0000 (14:54 +0200)
Unconfiguring the send-experimental stats in BMP has no effect
on the current behavior.

Fixes this by swapping the configuration boolean.

Fixes: 7ba991cf963f ("bgpd: add 'bmp stat send-experimental' command")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_bmp.c

index 2f3be0bc9d75e78bf15fa7f0375eb5923f73d9c3..bf08e30509af7f2475233e99890fc98305a40e47 100644 (file)
@@ -2496,7 +2496,7 @@ DEFPY(bmp_stats_send_experimental,
 {
        VTY_DECLVAR_CONTEXT_SUB(bmp_targets, bt);
 
-       bt->stats_send_experimental = !!no;
+       bt->stats_send_experimental = !no;
 
        return CMD_SUCCESS;
 }