Skip to content

Commit

Permalink
bgpd: Fix the cmd warning with correct 'return' value
Browse files Browse the repository at this point in the history
Changes:

   - when command is executed by user with !json and brief arg return
     CMD_WARNING

Ticket: #4080566
Signed-off-by: Ashwini Reddy <[email protected]>
  • Loading branch information
ashred-lnx authored and donaldsharp committed Dec 18, 2024
1 parent cc92edb commit b3091c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -11234,7 +11234,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t sa

if (brief && !use_json) {
vty_out(vty, "Brief cmd must be used only with json\n");
return CMD_SUCCESS;
return CMD_WARNING;
}

if (output_cum && *output_cum != 0)
Expand Down

0 comments on commit b3091c2

Please sign in to comment.