Skip to content

Commit

Permalink
Merge pull request #15122 from opensourcerouting/fix/drop_packet_send…
Browse files Browse the repository at this point in the history
…_debugs

bgpd: Change printing format show debugging for debug bgp updates
  • Loading branch information
donaldsharp authored Jan 9, 2024
2 parents 6c87068 + 546fe31 commit 153ab6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions bgpd/bgp_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ static void bgp_debug_list_print(struct vty *vty, const char *desc,
vty_out(vty, "%s", desc);

if (list && !list_isempty(list)) {
vty_out(vty, " for");
vty_out(vty, " for:\n");
for (ALL_LIST_ELEMENTS(list, node, nnode, filter)) {
if (filter->host)
vty_out(vty, " %s", filter->host);
vty_out(vty, " %s", filter->host);

if (filter->plist_name)
vty_out(vty, " with prefix-list %s",
Expand All @@ -247,6 +247,8 @@ static void bgp_debug_list_print(struct vty *vty, const char *desc,
bgp_debug_print_evpn_prefix(vty, "", filter->p);
else if (filter->p)
vty_out(vty, " %pFX", filter->p);

vty_out(vty, "\n");
}
}

Expand Down
3 changes: 0 additions & 3 deletions bgpd/bgp_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ struct bgp_debug_filter {
#define BGP_DEBUG_EVPN_MH_ES 0x01
#define BGP_DEBUG_EVPN_MH_RT 0x02

#define BGP_DEBUG_PACKET_SEND 0x01
#define BGP_DEBUG_PACKET_SEND_DETAIL 0x02

#define BGP_DEBUG_GRACEFUL_RESTART 0x01

#define BGP_DEBUG_BFD_LIB 0x01
Expand Down

0 comments on commit 153ab6e

Please sign in to comment.