summaryrefslogtreecommitdiff
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-14 18:32:00 +0100
committerGitHub <noreply@github.com>2018-03-14 18:32:00 +0100
commit6ca96cc6ada990d052fcfc48cffeef454ae64a10 (patch)
treeac2a6fe6b32adf6df9b1e570837b890c0fdbe82b /bgpd/bgp_debug.c
parent73394c711a29d8a5240a8c1dd2af8787143c4a67 (diff)
parent88fbc36fcb74f5cc3d009802b6aac537916164d1 (diff)
Merge pull request #1821 from vivek-cumulus/pmsi-parse-display
bgpd: Parse PMSI Tunnel Attribute and display
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index e89f399e41..2580d2e5a5 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -160,7 +160,6 @@ static const struct message bgp_notify_capability_msg[] = {
const char *bgp_origin_str[] = {"i", "e", "?"};
const char *bgp_origin_long_str[] = {"IGP", "EGP", "incomplete"};
-
/* Given a string return a pointer the corresponding peer structure */
static struct peer *bgp_find_peer(struct vty *vty, const char *peer_str)
{
@@ -415,6 +414,10 @@ int bgp_dump_attr(struct attr *attr, char *buf, size_t size)
inet_ntoa(attr->cluster->list[i]));
}
+ if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_PMSI_TUNNEL)))
+ snprintf(buf + strlen(buf), size - strlen(buf),
+ ", pmsi tnltype %u", attr->pmsi_tnl_type);
+
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AS_PATH)))
snprintf(buf + strlen(buf), size - strlen(buf), ", path %s",
aspath_print(attr->aspath));