mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 11:18:59 +00:00
bgpd: Display extended communities in debug log
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
8557760ca8
commit
a463860968
@ -39,6 +39,7 @@
|
|||||||
#include "bgpd/bgp_community.h"
|
#include "bgpd/bgp_community.h"
|
||||||
#include "bgpd/bgp_updgrp.h"
|
#include "bgpd/bgp_updgrp.h"
|
||||||
#include "bgpd/bgp_mplsvpn.h"
|
#include "bgpd/bgp_mplsvpn.h"
|
||||||
|
#include "bgpd/bgp_ecommunity.h"
|
||||||
|
|
||||||
unsigned long conf_bgp_debug_as4;
|
unsigned long conf_bgp_debug_as4;
|
||||||
unsigned long conf_bgp_debug_neighbor_events;
|
unsigned long conf_bgp_debug_neighbor_events;
|
||||||
@ -423,6 +424,10 @@ bgp_dump_attr (struct attr *attr, char *buf, size_t size)
|
|||||||
snprintf (buf + strlen (buf), size - strlen (buf), ", community %s",
|
snprintf (buf + strlen (buf), size - strlen (buf), ", community %s",
|
||||||
community_str (attr->community));
|
community_str (attr->community));
|
||||||
|
|
||||||
|
if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_EXT_COMMUNITIES)))
|
||||||
|
snprintf (buf + strlen (buf), size - strlen (buf), ", extcommunity %s",
|
||||||
|
ecommunity_str (attr->extra->ecommunity));
|
||||||
|
|
||||||
if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_ATOMIC_AGGREGATE)))
|
if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_ATOMIC_AGGREGATE)))
|
||||||
snprintf (buf + strlen (buf), size - strlen (buf), ", atomic-aggregate");
|
snprintf (buf + strlen (buf), size - strlen (buf), ", atomic-aggregate");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user